Interface TargetResource.Builder
- All Superinterfaces:
Buildable,CopyableBuilder<TargetResource.Builder,,TargetResource> SdkBuilder<TargetResource.Builder,,TargetResource> SdkPojo
- Enclosing class:
TargetResource
@Mutable
@NotThreadSafe
public static interface TargetResource.Builder
extends SdkPojo, CopyableBuilder<TargetResource.Builder,TargetResource>
-
Method Summary
Modifier and TypeMethodDescriptionThe Amazon Web Services Region for the scope.default TargetResource.BuildertargetIdentifier(Consumer<TargetIdentifier.Builder> targetIdentifier) A target identifier is a pair of identifying information for a scope.targetIdentifier(TargetIdentifier targetIdentifier) A target identifier is a pair of identifying information for a scope.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
-
targetIdentifier
A target identifier is a pair of identifying information for a scope. A target identifier is made up of a targetID (currently always an account ID) and a targetType (currently always an account).
- Parameters:
targetIdentifier- A target identifier is a pair of identifying information for a scope. A target identifier is made up of a targetID (currently always an account ID) and a targetType (currently always an account).- 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 scope. A target identifier is made up of a targetID (currently always an account ID) and a targetType (currently always an account).
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:
-
region
The Amazon Web Services Region for the scope.
- Parameters:
region- The Amazon Web Services Region for the scope.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-