Interface PolicyGrantPrincipal.Builder
-
- All Superinterfaces:
Buildable,CopyableBuilder<PolicyGrantPrincipal.Builder,PolicyGrantPrincipal>,SdkBuilder<PolicyGrantPrincipal.Builder,PolicyGrantPrincipal>,SdkPojo
- Enclosing class:
- PolicyGrantPrincipal
public static interface PolicyGrantPrincipal.Builder extends SdkPojo, CopyableBuilder<PolicyGrantPrincipal.Builder,PolicyGrantPrincipal>
-
-
Method Summary
-
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, sdkFields
-
-
-
-
Method Detail
-
domainUnit
PolicyGrantPrincipal.Builder domainUnit(DomainUnitPolicyGrantPrincipal 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.Builderavoiding the need to create one manually viaDomainUnitPolicyGrantPrincipal.builder().When the
Consumercompletes,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:
domainUnit(DomainUnitPolicyGrantPrincipal)
-
group
PolicyGrantPrincipal.Builder group(GroupPolicyGrantPrincipal 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
default PolicyGrantPrincipal.Builder group(Consumer<GroupPolicyGrantPrincipal.Builder> group)
The group of the policy grant principal.
This is a convenience method that creates an instance of theGroupPolicyGrantPrincipal.Builderavoiding the need to create one manually viaGroupPolicyGrantPrincipal.builder().When the
Consumercompletes,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:
group(GroupPolicyGrantPrincipal)
-
project
PolicyGrantPrincipal.Builder project(ProjectPolicyGrantPrincipal 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
default PolicyGrantPrincipal.Builder project(Consumer<ProjectPolicyGrantPrincipal.Builder> project)
The project of the policy grant principal.
This is a convenience method that creates an instance of theProjectPolicyGrantPrincipal.Builderavoiding the need to create one manually viaProjectPolicyGrantPrincipal.builder().When the
Consumercompletes,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:
project(ProjectPolicyGrantPrincipal)
-
user
PolicyGrantPrincipal.Builder user(UserPolicyGrantPrincipal 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
default PolicyGrantPrincipal.Builder user(Consumer<UserPolicyGrantPrincipal.Builder> user)
The user of the policy grant principal.
This is a convenience method that creates an instance of theUserPolicyGrantPrincipal.Builderavoiding the need to create one manually viaUserPolicyGrantPrincipal.builder().When the
Consumercompletes,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:
user(UserPolicyGrantPrincipal)
-
-