Interface PolicyGrantPrincipal.Builder
- All Superinterfaces:
Buildable,CopyableBuilder<PolicyGrantPrincipal.Builder,,PolicyGrantPrincipal> SdkBuilder<PolicyGrantPrincipal.Builder,,PolicyGrantPrincipal> SdkPojo
- Enclosing class:
PolicyGrantPrincipal
-
Method Summary
Modifier and TypeMethodDescriptiondefault PolicyGrantPrincipal.BuilderdomainUnit(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.BuilderThe group of the policy grant principal.group(GroupPolicyGrantPrincipal group) The group of the policy grant principal.default PolicyGrantPrincipal.BuilderThe project of the policy grant principal.project(ProjectPolicyGrantPrincipal project) The project of the policy grant principal.default PolicyGrantPrincipal.BuilderThe 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
copyMethods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, buildMethods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, 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.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:
-
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.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:
-
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.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:
-
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.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:
-