Interface PolicyGrantPrincipal.Builder
- All Superinterfaces:
Buildable
,CopyableBuilder<PolicyGrantPrincipal.Builder,
,PolicyGrantPrincipal> SdkBuilder<PolicyGrantPrincipal.Builder,
,PolicyGrantPrincipal> SdkPojo
- Enclosing class:
PolicyGrantPrincipal
-
Method Summary
Modifier and TypeMethodDescriptiondefault PolicyGrantPrincipal.Builder
domainUnit
(Consumer<DomainUnitPolicyGrantPrincipal.Builder> domainUnit) The domain unit of the policy grant principal.domainUnit
(DomainUnitPolicyGrantPrincipal domainUnit) The domain unit of the policy grant principal.default PolicyGrantPrincipal.Builder
The group of the policy grant principal.group
(GroupPolicyGrantPrincipal group) The group of the policy grant principal.default PolicyGrantPrincipal.Builder
The project of the policy grant principal.project
(ProjectPolicyGrantPrincipal project) The project of the policy grant principal.default PolicyGrantPrincipal.Builder
The user of the policy grant principal.user
(UserPolicyGrantPrincipal user) The user of the policy grant principal.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
-
domainUnit
The domain unit of the policy grant principal.
- Parameters:
domainUnit
- The domain unit of the policy grant principal.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
domainUnit
default PolicyGrantPrincipal.Builder domainUnit(Consumer<DomainUnitPolicyGrantPrincipal.Builder> domainUnit) The domain unit of the policy grant principal.
This is a convenience method that creates an instance of theDomainUnitPolicyGrantPrincipal.Builder
avoiding the need to create one manually viaDomainUnitPolicyGrantPrincipal.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed todomainUnit(DomainUnitPolicyGrantPrincipal)
.- Parameters:
domainUnit
- a consumer that will call methods onDomainUnitPolicyGrantPrincipal.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
group
The group of the policy grant principal.
- Parameters:
group
- The group of the policy grant principal.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
group
The group of the policy grant principal.
This is a convenience method that creates an instance of theGroupPolicyGrantPrincipal.Builder
avoiding the need to create one manually viaGroupPolicyGrantPrincipal.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed togroup(GroupPolicyGrantPrincipal)
.- Parameters:
group
- a consumer that will call methods onGroupPolicyGrantPrincipal.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
project
The project of the policy grant principal.
- Parameters:
project
- The project of the policy grant principal.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
project
The project of the policy grant principal.
This is a convenience method that creates an instance of theProjectPolicyGrantPrincipal.Builder
avoiding the need to create one manually viaProjectPolicyGrantPrincipal.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed toproject(ProjectPolicyGrantPrincipal)
.- Parameters:
project
- a consumer that will call methods onProjectPolicyGrantPrincipal.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
user
The user of the policy grant principal.
- Parameters:
user
- The user of the policy grant principal.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
user
The user of the policy grant principal.
This is a convenience method that creates an instance of theUserPolicyGrantPrincipal.Builder
avoiding the need to create one manually viaUserPolicyGrantPrincipal.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed touser(UserPolicyGrantPrincipal)
.- Parameters:
user
- a consumer that will call methods onUserPolicyGrantPrincipal.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-