diff --git a/google-cloud-storage/src/main/java/com/google/cloud/storage/BucketInfo.java b/google-cloud-storage/src/main/java/com/google/cloud/storage/BucketInfo.java index bee76fd0f..7e06de27b 100644 --- a/google-cloud-storage/src/main/java/com/google/cloud/storage/BucketInfo.java +++ b/google-cloud-storage/src/main/java/com/google/cloud/storage/BucketInfo.java @@ -662,7 +662,9 @@ public StorageClass apply(String storageClass) { .setDaysSinceNoncurrentTime(condition.getDaysSinceNoncurrentTime()) .setNoncurrentTimeBefore(condition.getNoncurrentTimeBefore()) .setCustomTimeBefore(condition.getCustomTimeBefore()) - .setDaysSinceCustomTime(condition.getDaysSinceCustomTime()); + .setDaysSinceCustomTime(condition.getDaysSinceCustomTime()) + .setMatchesPrefix(condition.getMatchesPrefix()) + .setMatchesSuffix(condition.getMatchesSuffix()); return new LifecycleRule(lifecycleAction, conditionBuilder.build()); }