Interface TargetResource.Builder
-
- All Superinterfaces:
Buildable,CopyableBuilder<TargetResource.Builder,TargetResource>,SdkBuilder<TargetResource.Builder,TargetResource>,SdkPojo
- Enclosing class:
- TargetResource
public static interface TargetResource.Builder extends SdkPojo, CopyableBuilder<TargetResource.Builder,TargetResource>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description TargetResource.Builderregion(String region)The Amazon Web Services Region where the target resource is located.default TargetResource.BuildertargetIdentifier(Consumer<TargetIdentifier.Builder> targetIdentifier)A target identifier is a pair of identifying information for a resource that is included in a target.TargetResource.BuildertargetIdentifier(TargetIdentifier targetIdentifier)A target identifier is a pair of identifying information for a resource that is included in a target.-
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
-
targetIdentifier
TargetResource.Builder targetIdentifier(TargetIdentifier targetIdentifier)
A target identifier is a pair of identifying information for a resource that is included in a target. A target identifier includes the target ID and the target type.
- Parameters:
targetIdentifier- A target identifier is a pair of identifying information for a resource that is included in a target. A target identifier includes the target ID and the target type.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
targetIdentifier
default TargetResource.Builder targetIdentifier(Consumer<TargetIdentifier.Builder> targetIdentifier)
A target identifier is a pair of identifying information for a resource that is included in a target. A target identifier includes the target ID and the target type.
This is a convenience method that creates an instance of theTargetIdentifier.Builderavoiding the need to create one manually viaTargetIdentifier.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed totargetIdentifier(TargetIdentifier).- Parameters:
targetIdentifier- a consumer that will call methods onTargetIdentifier.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
targetIdentifier(TargetIdentifier)
-
region
TargetResource.Builder region(String region)
The Amazon Web Services Region where the target resource is located.
- Parameters:
region- The Amazon Web Services Region where the target resource is located.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
-