Interface LifecyclePolicyDetailExclusionRulesAmis.Builder
-
- All Superinterfaces:
Buildable,CopyableBuilder<LifecyclePolicyDetailExclusionRulesAmis.Builder,LifecyclePolicyDetailExclusionRulesAmis>,SdkBuilder<LifecyclePolicyDetailExclusionRulesAmis.Builder,LifecyclePolicyDetailExclusionRulesAmis>,SdkPojo
- Enclosing class:
- LifecyclePolicyDetailExclusionRulesAmis
public static interface LifecyclePolicyDetailExclusionRulesAmis.Builder extends SdkPojo, CopyableBuilder<LifecyclePolicyDetailExclusionRulesAmis.Builder,LifecyclePolicyDetailExclusionRulesAmis>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description LifecyclePolicyDetailExclusionRulesAmis.BuilderisPublic(Boolean isPublic)Configures whether public AMIs are excluded from the lifecycle action.default LifecyclePolicyDetailExclusionRulesAmis.BuilderlastLaunched(Consumer<LifecyclePolicyDetailExclusionRulesAmisLastLaunched.Builder> lastLaunched)Specifies configuration details for Image Builder to exclude the most recent resources from lifecycle actions.LifecyclePolicyDetailExclusionRulesAmis.BuilderlastLaunched(LifecyclePolicyDetailExclusionRulesAmisLastLaunched lastLaunched)Specifies configuration details for Image Builder to exclude the most recent resources from lifecycle actions.LifecyclePolicyDetailExclusionRulesAmis.Builderregions(String... regions)Configures Amazon Web Services Regions that are excluded from the lifecycle action.LifecyclePolicyDetailExclusionRulesAmis.Builderregions(Collection<String> regions)Configures Amazon Web Services Regions that are excluded from the lifecycle action.LifecyclePolicyDetailExclusionRulesAmis.BuildersharedAccounts(String... sharedAccounts)Specifies Amazon Web Services accounts whose resources are excluded from the lifecycle action.LifecyclePolicyDetailExclusionRulesAmis.BuildersharedAccounts(Collection<String> sharedAccounts)Specifies Amazon Web Services accounts whose resources are excluded from the lifecycle action.LifecyclePolicyDetailExclusionRulesAmis.BuildertagMap(Map<String,String> tagMap)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, sdkFields
-
-
-
-
Method Detail
-
isPublic
LifecyclePolicyDetailExclusionRulesAmis.Builder isPublic(Boolean 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
LifecyclePolicyDetailExclusionRulesAmis.Builder regions(Collection<String> 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
LifecyclePolicyDetailExclusionRulesAmis.Builder regions(String... 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.
-
sharedAccounts
LifecyclePolicyDetailExclusionRulesAmis.Builder sharedAccounts(Collection<String> sharedAccounts)
Specifies Amazon Web Services accounts whose resources are excluded from the lifecycle action.
- Parameters:
sharedAccounts- Specifies Amazon Web Services accounts whose resources are excluded from the lifecycle action.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
sharedAccounts
LifecyclePolicyDetailExclusionRulesAmis.Builder sharedAccounts(String... sharedAccounts)
Specifies Amazon Web Services accounts whose resources are excluded from the lifecycle action.
- Parameters:
sharedAccounts- Specifies Amazon Web Services accounts whose resources 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.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:
lastLaunched(LifecyclePolicyDetailExclusionRulesAmisLastLaunched)
-
tagMap
LifecyclePolicyDetailExclusionRulesAmis.Builder tagMap(Map<String,String> 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.
-
-