public static interface LifecycleRuleFilter.Builder extends CopyableBuilder<LifecycleRuleFilter.Builder,LifecycleRuleFilter>
Modifier and Type | Method and Description |
---|---|
default LifecycleRuleFilter.Builder |
and(Consumer<LifecycleRuleAndOperator.Builder> and)
Sets the value of the And property for this object.
|
LifecycleRuleFilter.Builder |
and(LifecycleRuleAndOperator and)
Sets the value of the And property for this object.
|
LifecycleRuleFilter.Builder |
prefix(String prefix)
Prefix identifying one or more objects to which the rule applies.
|
default LifecycleRuleFilter.Builder |
tag(Consumer<Tag.Builder> tag)
This tag must exist in the object's tag set in order for the rule to apply.
|
LifecycleRuleFilter.Builder |
tag(Tag tag)
This tag must exist in the object's tag set in order for the rule to apply.
|
copy
apply, build
LifecycleRuleFilter.Builder prefix(String prefix)
prefix
- Prefix identifying one or more objects to which the rule applies.LifecycleRuleFilter.Builder tag(Tag tag)
tag
- This tag must exist in the object's tag set in order for the rule to apply.default LifecycleRuleFilter.Builder tag(Consumer<Tag.Builder> tag)
Tag.Builder
avoiding the need to create one manually via
Tag.builder()
.
When the Consumer
completes, SdkBuilder.build()
is called immediately and its result is
passed to tag(Tag)
.tag
- a consumer that will call methods on Tag.Builder
tag(Tag)
LifecycleRuleFilter.Builder and(LifecycleRuleAndOperator and)
and
- The new value for the And property for this object.default LifecycleRuleFilter.Builder and(Consumer<LifecycleRuleAndOperator.Builder> and)
LifecycleRuleAndOperator.Builder
avoiding the
need to create one manually via LifecycleRuleAndOperator.builder()
.
When the Consumer
completes, SdkBuilder.build()
is called immediately
and its result is passed to and(LifecycleRuleAndOperator)
.and
- a consumer that will call methods on LifecycleRuleAndOperator.Builder
and(LifecycleRuleAndOperator)
Copyright © 2017 Amazon Web Services, Inc. All Rights Reserved.