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