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.Builder
destination
(Consumer<ResourceLocation.Builder> destination) The destination stackStackName
andLogicalResourceId
for the resource being refactored.destination
(ResourceLocation destination) The destination stackStackName
andLogicalResourceId
for the resource being refactored.default ResourceMapping.Builder
source
(Consumer<ResourceLocation.Builder> source) The source stackStackName
andLogicalResourceId
for the resource being refactored.source
(ResourceLocation source) The source stackStackName
andLogicalResourceId
for the resource being refactored.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
-
source
The source stack
StackName
andLogicalResourceId
for the resource being refactored.- Parameters:
source
- The source stackStackName
andLogicalResourceId
for 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 theStackName
andLogicalResourceId
for the resource being refactored.ResourceLocation.Builder
avoiding the need to create one manually viaResourceLocation.builder()
.When the
Consumer
completes,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
StackName
andLogicalResourceId
for the resource being refactored.- Parameters:
destination
- The destination stackStackName
andLogicalResourceId
for 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 theStackName
andLogicalResourceId
for the resource being refactored.ResourceLocation.Builder
avoiding the need to create one manually viaResourceLocation.builder()
.When the
Consumer
completes,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:
-