Interface DomainUnitOwnerProperties.Builder
- All Superinterfaces:
Buildable
,CopyableBuilder<DomainUnitOwnerProperties.Builder,
,DomainUnitOwnerProperties> SdkBuilder<DomainUnitOwnerProperties.Builder,
,DomainUnitOwnerProperties> SdkPojo
- Enclosing class:
DomainUnitOwnerProperties
@Mutable
@NotThreadSafe
public static interface DomainUnitOwnerProperties.Builder
extends SdkPojo, CopyableBuilder<DomainUnitOwnerProperties.Builder,DomainUnitOwnerProperties>
-
Method Summary
Modifier and TypeMethodDescriptionIndicates that the domain unit owner is a group.group
(DomainUnitGroupProperties group) Indicates that the domain unit owner is a group.Indicates that the domain unit owner is a user.user
(DomainUnitUserProperties user) Indicates that the domain unit owner is a user.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
-
group
Indicates that the domain unit owner is a group.
- Parameters:
group
- Indicates that the domain unit owner is a group.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
group
Indicates that the domain unit owner is a group.
This is a convenience method that creates an instance of theDomainUnitGroupProperties.Builder
avoiding the need to create one manually viaDomainUnitGroupProperties.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed togroup(DomainUnitGroupProperties)
.- Parameters:
group
- a consumer that will call methods onDomainUnitGroupProperties.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
user
Indicates that the domain unit owner is a user.
- Parameters:
user
- Indicates that the domain unit owner is a user.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
user
Indicates that the domain unit owner is a user.
This is a convenience method that creates an instance of theDomainUnitUserProperties.Builder
avoiding the need to create one manually viaDomainUnitUserProperties.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed touser(DomainUnitUserProperties)
.- Parameters:
user
- a consumer that will call methods onDomainUnitUserProperties.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-