Interface ResourceMapping.Builder
- All Superinterfaces:
Buildable,CopyableBuilder<ResourceMapping.Builder,,ResourceMapping> SdkBuilder<ResourceMapping.Builder,,ResourceMapping> SdkPojo
- Enclosing class:
ResourceMapping
@Mutable
@NotThreadSafe
public static interface ResourceMapping.Builder
extends SdkPojo, CopyableBuilder<ResourceMapping.Builder,ResourceMapping>
-
Method Summary
Modifier and TypeMethodDescriptiondefault ResourceMapping.Builderdestination(Consumer<ResourceLocation.Builder> destination) The destination stackStackNameandLogicalResourceIdfor the resource being refactored.destination(ResourceLocation destination) The destination stackStackNameandLogicalResourceIdfor the resource being refactored.default ResourceMapping.Buildersource(Consumer<ResourceLocation.Builder> source) The source stackStackNameandLogicalResourceIdfor the resource being refactored.source(ResourceLocation source) The source stackStackNameandLogicalResourceIdfor the resource being refactored.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
-
source
The source stack
StackNameandLogicalResourceIdfor the resource being refactored.- Parameters:
source- The source stackStackNameandLogicalResourceIdfor the resource being refactored.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
source
The source stack
This is a convenience method that creates an instance of theStackNameandLogicalResourceIdfor the resource being refactored.ResourceLocation.Builderavoiding the need to create one manually viaResourceLocation.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed tosource(ResourceLocation).- Parameters:
source- a consumer that will call methods onResourceLocation.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
destination
The destination stack
StackNameandLogicalResourceIdfor the resource being refactored.- Parameters:
destination- The destination stackStackNameandLogicalResourceIdfor the resource being refactored.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
destination
The destination stack
This is a convenience method that creates an instance of theStackNameandLogicalResourceIdfor the resource being refactored.ResourceLocation.Builderavoiding the need to create one manually viaResourceLocation.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed todestination(ResourceLocation).- Parameters:
destination- a consumer that will call methods onResourceLocation.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-