Interface RuleTarget.Builder
- All Superinterfaces:
Buildable
,CopyableBuilder<RuleTarget.Builder,
,RuleTarget> SdkBuilder<RuleTarget.Builder,
,RuleTarget> SdkPojo
- Enclosing class:
RuleTarget
@Mutable
@NotThreadSafe
public static interface RuleTarget.Builder
extends SdkPojo, CopyableBuilder<RuleTarget.Builder,RuleTarget>
-
Method Summary
Modifier and TypeMethodDescriptiondefault RuleTarget.Builder
domainUnitTarget
(Consumer<DomainUnitTarget.Builder> domainUnitTarget) The ID of the domain unit.domainUnitTarget
(DomainUnitTarget domainUnitTarget) The ID of the domain unit.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
-
domainUnitTarget
The ID of the domain unit.
- Parameters:
domainUnitTarget
- The ID of the domain unit.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
domainUnitTarget
The ID of the domain unit.
This is a convenience method that creates an instance of theDomainUnitTarget.Builder
avoiding the need to create one manually viaDomainUnitTarget.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed todomainUnitTarget(DomainUnitTarget)
.- Parameters:
domainUnitTarget
- a consumer that will call methods onDomainUnitTarget.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-