Interface LifecyclePolicyDetailExclusionRulesAmis.Builder
- All Superinterfaces:
Buildable,CopyableBuilder<LifecyclePolicyDetailExclusionRulesAmis.Builder,,LifecyclePolicyDetailExclusionRulesAmis> SdkBuilder<LifecyclePolicyDetailExclusionRulesAmis.Builder,,LifecyclePolicyDetailExclusionRulesAmis> SdkPojo
- Enclosing class:
LifecyclePolicyDetailExclusionRulesAmis
-
Method Summary
Modifier and TypeMethodDescriptionConfigures whether public AMIs are excluded from the lifecycle action.Configures Image Builder to exclude AMIs that were launched within the specified time period from lifecycle actions.Configures Image Builder to exclude AMIs that were launched within the specified time period from lifecycle actions.Configures Amazon Web Services Regions that are excluded from the lifecycle action.regions(Collection<String> regions) Configures Amazon Web Services Regions that are excluded from the lifecycle action.sharedAccounts(String... sharedAccounts) The lifecycle action doesn't apply to AMIs that are shared with any of the specified Amazon Web Services accounts.sharedAccounts(Collection<String> sharedAccounts) The lifecycle action doesn't apply to AMIs that are shared with any of the specified Amazon Web Services accounts.Lifecycle actions don't apply to AMIs that have any of these tags.Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copyMethods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, buildMethods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFieldNameToField, sdkFields
-
Method Details
-
isPublic
Configures whether public AMIs are excluded from the lifecycle action.
- Parameters:
isPublic- Configures whether public AMIs are excluded from the lifecycle action.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
regions
Configures Amazon Web Services Regions that are excluded from the lifecycle action.
- Parameters:
regions- Configures Amazon Web Services Regions that are excluded from the lifecycle action.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
regions
Configures Amazon Web Services Regions that are excluded from the lifecycle action.
- Parameters:
regions- Configures Amazon Web Services Regions that are excluded from the lifecycle action.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
lastLaunched
LifecyclePolicyDetailExclusionRulesAmis.Builder lastLaunched(LifecyclePolicyDetailExclusionRulesAmisLastLaunched lastLaunched) Configures Image Builder to exclude AMIs that were launched within the specified time period from lifecycle actions. AMIs with no recorded last-launched time aren't excluded by this rule.
- Parameters:
lastLaunched- Configures Image Builder to exclude AMIs that were launched within the specified time period from lifecycle actions. AMIs with no recorded last-launched time aren't excluded by this rule.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
lastLaunched
default LifecyclePolicyDetailExclusionRulesAmis.Builder lastLaunched(Consumer<LifecyclePolicyDetailExclusionRulesAmisLastLaunched.Builder> lastLaunched) Configures Image Builder to exclude AMIs that were launched within the specified time period from lifecycle actions. AMIs with no recorded last-launched time aren't excluded by this rule.
This is a convenience method that creates an instance of theLifecyclePolicyDetailExclusionRulesAmisLastLaunched.Builderavoiding the need to create one manually viaLifecyclePolicyDetailExclusionRulesAmisLastLaunched.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed tolastLaunched(LifecyclePolicyDetailExclusionRulesAmisLastLaunched).- Parameters:
lastLaunched- a consumer that will call methods onLifecyclePolicyDetailExclusionRulesAmisLastLaunched.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
tagMap
Lifecycle actions don't apply to AMIs that have any of these tags. Both the key and the value must match.
- Parameters:
tagMap- Lifecycle actions don't apply to AMIs that have any of these tags. Both the key and the value must match.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-