Interface LifecyclePolicyDetailAction.Builder
- All Superinterfaces:
Buildable,CopyableBuilder<LifecyclePolicyDetailAction.Builder,,LifecyclePolicyDetailAction> SdkBuilder<LifecyclePolicyDetailAction.Builder,,LifecyclePolicyDetailAction> SdkPojo
- Enclosing class:
LifecyclePolicyDetailAction
-
Method Summary
Modifier and TypeMethodDescriptionincludeResources(Consumer<LifecyclePolicyDetailActionIncludeResources.Builder> includeResources) Specifies which underlying resources the action extends to beyond the Image Builder image resource itself: distributed AMIs, their snapshots, or distributed container images.includeResources(LifecyclePolicyDetailActionIncludeResources includeResources) Specifies which underlying resources the action extends to beyond the Image Builder image resource itself: distributed AMIs, their snapshots, or distributed container images.Specifies the lifecycle action to take.Specifies the lifecycle action to take.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
-
type
Specifies the lifecycle action to take.
DELETEdeletes the image resource and, withincludeResources, also removes distributed AMIs, snapshots, or container images.DEPRECATEandDISABLEset the corresponding status on the image resource and, ifincludeResources.amisis set, on its distributed AMIs.- Parameters:
type- Specifies the lifecycle action to take.DELETEdeletes the image resource and, withincludeResources, also removes distributed AMIs, snapshots, or container images.DEPRECATEandDISABLEset the corresponding status on the image resource and, ifincludeResources.amisis set, on its distributed AMIs.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
type
Specifies the lifecycle action to take.
DELETEdeletes the image resource and, withincludeResources, also removes distributed AMIs, snapshots, or container images.DEPRECATEandDISABLEset the corresponding status on the image resource and, ifincludeResources.amisis set, on its distributed AMIs.- Parameters:
type- Specifies the lifecycle action to take.DELETEdeletes the image resource and, withincludeResources, also removes distributed AMIs, snapshots, or container images.DEPRECATEandDISABLEset the corresponding status on the image resource and, ifincludeResources.amisis set, on its distributed AMIs.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
includeResources
LifecyclePolicyDetailAction.Builder includeResources(LifecyclePolicyDetailActionIncludeResources includeResources) Specifies which underlying resources the action extends to beyond the Image Builder image resource itself: distributed AMIs, their snapshots, or distributed container images.
DELETErules can include all three,DEPRECATEandDISABLErules can include AMIs only, and you can only include snapshots together with AMIs.- Parameters:
includeResources- Specifies which underlying resources the action extends to beyond the Image Builder image resource itself: distributed AMIs, their snapshots, or distributed container images.DELETErules can include all three,DEPRECATEandDISABLErules can include AMIs only, and you can only include snapshots together with AMIs.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
includeResources
default LifecyclePolicyDetailAction.Builder includeResources(Consumer<LifecyclePolicyDetailActionIncludeResources.Builder> includeResources) Specifies which underlying resources the action extends to beyond the Image Builder image resource itself: distributed AMIs, their snapshots, or distributed container images.
This is a convenience method that creates an instance of theDELETErules can include all three,DEPRECATEandDISABLErules can include AMIs only, and you can only include snapshots together with AMIs.LifecyclePolicyDetailActionIncludeResources.Builderavoiding the need to create one manually viaLifecyclePolicyDetailActionIncludeResources.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed toincludeResources(LifecyclePolicyDetailActionIncludeResources).- Parameters:
includeResources- a consumer that will call methods onLifecyclePolicyDetailActionIncludeResources.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-