Interface Entitlement.Builder
- All Superinterfaces:
Buildable,CopyableBuilder<Entitlement.Builder,,Entitlement> SdkBuilder<Entitlement.Builder,,Entitlement> SdkPojo
- Enclosing class:
Entitlement
@Mutable
@NotThreadSafe
public static interface Entitlement.Builder
extends SdkPojo, CopyableBuilder<Entitlement.Builder,Entitlement>
-
Method Summary
Modifier and TypeMethodDescriptiondefault Entitlement.BuilderprincipalRole(Consumer<PrincipalRoleEntitlement.Builder> principalRole) The principal-to-role mapping for the entitlement.principalRole(PrincipalRoleEntitlement principalRole) The principal-to-role mapping for the entitlement.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, sdkFieldNameToField, sdkFields
-
Method Details
-
principalRole
The principal-to-role mapping for the entitlement.
- Parameters:
principalRole- The principal-to-role mapping for the entitlement.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
principalRole
The principal-to-role mapping for the entitlement.
This is a convenience method that creates an instance of thePrincipalRoleEntitlement.Builderavoiding the need to create one manually viaPrincipalRoleEntitlement.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed toprincipalRole(PrincipalRoleEntitlement).- Parameters:
principalRole- a consumer that will call methods onPrincipalRoleEntitlement.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-