Interface StackRefactorAction.Builder
-
- All Superinterfaces:
Buildable,CopyableBuilder<StackRefactorAction.Builder,StackRefactorAction>,SdkBuilder<StackRefactorAction.Builder,StackRefactorAction>,SdkPojo
- Enclosing class:
- StackRefactorAction
@Mutable @NotThreadSafe public static interface StackRefactorAction.Builder extends SdkPojo, CopyableBuilder<StackRefactorAction.Builder,StackRefactorAction>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description StackRefactorAction.Builderaction(String action)The action that CloudFormation takes on the stack.StackRefactorAction.Builderaction(StackRefactorActionType action)The action that CloudFormation takes on the stack.StackRefactorAction.Builderdescription(String description)A description to help you identify the refactor.StackRefactorAction.Builderdetection(String detection)The detection type is one of the following:StackRefactorAction.Builderdetection(StackRefactorDetection detection)The detection type is one of the following:StackRefactorAction.BuilderdetectionReason(String detectionReason)The description of the detection type.StackRefactorAction.Builderentity(String entity)The type that will be evaluated in theStackRefactorAction.StackRefactorAction.Builderentity(StackRefactorActionEntity entity)The type that will be evaluated in theStackRefactorAction.StackRefactorAction.BuilderphysicalResourceId(String physicalResourceId)The name or unique identifier associated with the physical instance of the resource.StackRefactorAction.BuilderresourceIdentifier(String resourceIdentifier)A key-value pair that identifies the target resource.default StackRefactorAction.BuilderresourceMapping(Consumer<ResourceMapping.Builder> resourceMapping)The mapping for the stack resourceSourceand stack resourceDestination.StackRefactorAction.BuilderresourceMapping(ResourceMapping resourceMapping)The mapping for the stack resourceSourceand stack resourceDestination.StackRefactorAction.BuildertagResources(Collection<Tag> tagResources)Assigns one or more tags to specified resources.StackRefactorAction.BuildertagResources(Consumer<Tag.Builder>... tagResources)Assigns one or more tags to specified resources.StackRefactorAction.BuildertagResources(Tag... tagResources)Assigns one or more tags to specified resources.StackRefactorAction.BuilderuntagResources(String... untagResources)Removes one or more tags to specified resources.StackRefactorAction.BuilderuntagResources(Collection<String> untagResources)Removes one or more tags to specified resources.-
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 Detail
-
action
StackRefactorAction.Builder action(String action)
The action that CloudFormation takes on the stack.
- Parameters:
action- The action that CloudFormation takes on the stack.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
StackRefactorActionType,StackRefactorActionType
-
action
StackRefactorAction.Builder action(StackRefactorActionType action)
The action that CloudFormation takes on the stack.
- Parameters:
action- The action that CloudFormation takes on the stack.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
StackRefactorActionType,StackRefactorActionType
-
entity
StackRefactorAction.Builder entity(String entity)
The type that will be evaluated in the
StackRefactorAction. The following are potentialEntitytypes:-
Stack -
Resource
- Parameters:
entity- The type that will be evaluated in theStackRefactorAction. The following are potentialEntitytypes:-
Stack -
Resource
-
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
StackRefactorActionEntity,StackRefactorActionEntity
-
-
entity
StackRefactorAction.Builder entity(StackRefactorActionEntity entity)
The type that will be evaluated in the
StackRefactorAction. The following are potentialEntitytypes:-
Stack -
Resource
- Parameters:
entity- The type that will be evaluated in theStackRefactorAction. The following are potentialEntitytypes:-
Stack -
Resource
-
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
StackRefactorActionEntity,StackRefactorActionEntity
-
-
physicalResourceId
StackRefactorAction.Builder physicalResourceId(String physicalResourceId)
The name or unique identifier associated with the physical instance of the resource.
- Parameters:
physicalResourceId- The name or unique identifier associated with the physical instance of the resource.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
resourceIdentifier
StackRefactorAction.Builder resourceIdentifier(String resourceIdentifier)
A key-value pair that identifies the target resource. The key is an identifier property (for example,
BucketNameforAWS::S3::Bucketresources) and the value is the actual property value (for example,MyS3Bucket).- Parameters:
resourceIdentifier- A key-value pair that identifies the target resource. The key is an identifier property (for example,BucketNameforAWS::S3::Bucketresources) and the value is the actual property value (for example,MyS3Bucket).- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
description
StackRefactorAction.Builder description(String description)
A description to help you identify the refactor.
- Parameters:
description- A description to help you identify the refactor.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
detection
StackRefactorAction.Builder detection(String detection)
The detection type is one of the following:
-
Auto: CloudFormation figured out the mapping on its own.
-
Manual: The customer provided the mapping in the
ResourceMappingparameter.
- Parameters:
detection- The detection type is one of the following:-
Auto: CloudFormation figured out the mapping on its own.
-
Manual: The customer provided the mapping in the
ResourceMappingparameter.
-
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
StackRefactorDetection,StackRefactorDetection
-
-
detection
StackRefactorAction.Builder detection(StackRefactorDetection detection)
The detection type is one of the following:
-
Auto: CloudFormation figured out the mapping on its own.
-
Manual: The customer provided the mapping in the
ResourceMappingparameter.
- Parameters:
detection- The detection type is one of the following:-
Auto: CloudFormation figured out the mapping on its own.
-
Manual: The customer provided the mapping in the
ResourceMappingparameter.
-
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
StackRefactorDetection,StackRefactorDetection
-
-
detectionReason
StackRefactorAction.Builder detectionReason(String detectionReason)
The description of the detection type.
- Parameters:
detectionReason- The description of the detection type.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
tagResources
StackRefactorAction.Builder tagResources(Collection<Tag> tagResources)
Assigns one or more tags to specified resources.
- Parameters:
tagResources- Assigns one or more tags to specified resources.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
tagResources
StackRefactorAction.Builder tagResources(Tag... tagResources)
Assigns one or more tags to specified resources.
- Parameters:
tagResources- Assigns one or more tags to specified resources.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
tagResources
StackRefactorAction.Builder tagResources(Consumer<Tag.Builder>... tagResources)
Assigns one or more tags to specified resources.
This is a convenience method that creates an instance of theTag.Builderavoiding the need to create one manually viaTag.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed to#tagResources(List.) - Parameters:
tagResources- a consumer that will call methods onTag.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
#tagResources(java.util.Collection)
-
untagResources
StackRefactorAction.Builder untagResources(Collection<String> untagResources)
Removes one or more tags to specified resources.
- Parameters:
untagResources- Removes one or more tags to specified resources.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
untagResources
StackRefactorAction.Builder untagResources(String... untagResources)
Removes one or more tags to specified resources.
- Parameters:
untagResources- Removes one or more tags to specified resources.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
resourceMapping
StackRefactorAction.Builder resourceMapping(ResourceMapping resourceMapping)
The mapping for the stack resource
Sourceand stack resourceDestination.- Parameters:
resourceMapping- The mapping for the stack resourceSourceand stack resourceDestination.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
resourceMapping
default StackRefactorAction.Builder resourceMapping(Consumer<ResourceMapping.Builder> resourceMapping)
The mapping for the stack resource
This is a convenience method that creates an instance of theSourceand stack resourceDestination.ResourceMapping.Builderavoiding the need to create one manually viaResourceMapping.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed toresourceMapping(ResourceMapping).- Parameters:
resourceMapping- a consumer that will call methods onResourceMapping.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
resourceMapping(ResourceMapping)
-
-