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