Interface LifecyclePolicyDetailExclusionRulesAmis.Builder
- All Superinterfaces:
Buildable
,CopyableBuilder<LifecyclePolicyDetailExclusionRulesAmis.Builder,
,LifecyclePolicyDetailExclusionRulesAmis> SdkBuilder<LifecyclePolicyDetailExclusionRulesAmis.Builder,
,LifecyclePolicyDetailExclusionRulesAmis> SdkPojo
- Enclosing class:
LifecyclePolicyDetailExclusionRulesAmis
@Mutable
@NotThreadSafe
public static interface LifecyclePolicyDetailExclusionRulesAmis.Builder
extends SdkPojo, CopyableBuilder<LifecyclePolicyDetailExclusionRulesAmis.Builder,LifecyclePolicyDetailExclusionRulesAmis>
-
Method Summary
Modifier and TypeMethodDescriptionConfigures whether public AMIs are excluded from the lifecycle action.Specifies configuration details for Image Builder to exclude the most recent resources from lifecycle actions.Specifies configuration details for Image Builder to exclude the most recent resources 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) Specifies Amazon Web Services accounts whose resources are excluded from the lifecycle action.sharedAccounts
(Collection<String> sharedAccounts) Specifies Amazon Web Services accounts whose resources are excluded from the lifecycle action.Lists tags that should be excluded from lifecycle actions for the AMIs that have them.Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
Methods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, build
Methods 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) Specifies configuration details for Image Builder to exclude the most recent resources from lifecycle actions.
- Parameters:
lastLaunched
- Specifies configuration details for Image Builder to exclude the most recent resources from lifecycle actions.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
lastLaunched
default LifecyclePolicyDetailExclusionRulesAmis.Builder lastLaunched(Consumer<LifecyclePolicyDetailExclusionRulesAmisLastLaunched.Builder> lastLaunched) Specifies configuration details for Image Builder to exclude the most recent resources from lifecycle actions.
This is a convenience method that creates an instance of theLifecyclePolicyDetailExclusionRulesAmisLastLaunched.Builder
avoiding the need to create one manually viaLifecyclePolicyDetailExclusionRulesAmisLastLaunched.builder()
.When the
Consumer
completes,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
Lists tags that should be excluded from lifecycle actions for the AMIs that have them.
- Parameters:
tagMap
- Lists tags that should be excluded from lifecycle actions for the AMIs that have them.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-