Interface TargetIdentifier.Builder
- All Superinterfaces:
Buildable
,CopyableBuilder<TargetIdentifier.Builder,
,TargetIdentifier> SdkBuilder<TargetIdentifier.Builder,
,TargetIdentifier> SdkPojo
- Enclosing class:
TargetIdentifier
@Mutable
@NotThreadSafe
public static interface TargetIdentifier.Builder
extends SdkPojo, CopyableBuilder<TargetIdentifier.Builder,TargetIdentifier>
-
Method Summary
Modifier and TypeMethodDescriptiondefault TargetIdentifier.Builder
targetId
(Consumer<TargetId.Builder> targetId) The identifier for a target.The identifier for a target.targetType
(String targetType) The type of a target.targetType
(TargetType targetType) The type of 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 Details
-
targetId
The identifier for a target.
- Parameters:
targetId
- The identifier for a target.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
targetId
The identifier for a target.
This is a convenience method that creates an instance of theTargetId.Builder
avoiding the need to create one manually viaTargetId.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed totargetId(TargetId)
.- Parameters:
targetId
- a consumer that will call methods onTargetId.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
targetType
The type of a target. A target type is currently always
ACCOUNT
because a target is currently a single Amazon Web Services account.- Parameters:
targetType
- The type of a target. A target type is currently alwaysACCOUNT
because a target is currently a single Amazon Web Services account.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
targetType
The type of a target. A target type is currently always
ACCOUNT
because a target is currently a single Amazon Web Services account.- Parameters:
targetType
- The type of a target. A target type is currently alwaysACCOUNT
because a target is currently a single Amazon Web Services account.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-