Interface PrincipalRoleEntitlementSummary.Builder
- All Superinterfaces:
Buildable,CopyableBuilder<PrincipalRoleEntitlementSummary.Builder,,PrincipalRoleEntitlementSummary> SdkBuilder<PrincipalRoleEntitlementSummary.Builder,,PrincipalRoleEntitlementSummary> SdkPojo
- Enclosing class:
PrincipalRoleEntitlementSummary
@Mutable
@NotThreadSafe
public static interface PrincipalRoleEntitlementSummary.Builder
extends SdkPojo, CopyableBuilder<PrincipalRoleEntitlementSummary.Builder,PrincipalRoleEntitlementSummary>
-
Method Summary
Modifier and TypeMethodDescriptionThe 12-digit Amazon Web Services account ID where the IAM role resides.accountName(String accountName) The friendly name of the Amazon Web Services account where the IAM role resides.principal(Consumer<Principal.Builder> principal) The principal (user or group) that is granted access to assume the IAM role.The principal (user or group) that is granted access to assume the IAM role.The ARN of the IAM role that the principal can assume.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
-
principal
The principal (user or group) that is granted access to assume the IAM role.
- Parameters:
principal- The principal (user or group) that is granted access to assume the IAM role.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
principal
The principal (user or group) that is granted access to assume the IAM role.
This is a convenience method that creates an instance of thePrincipal.Builderavoiding the need to create one manually viaPrincipal.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed toprincipal(Principal).- Parameters:
principal- a consumer that will call methods onPrincipal.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
roleArn
The ARN of the IAM role that the principal can assume.
- Parameters:
roleArn- The ARN of the IAM role that the principal can assume.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
account
The 12-digit Amazon Web Services account ID where the IAM role resides.
- Parameters:
account- The 12-digit Amazon Web Services account ID where the IAM role resides.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
accountName
The friendly name of the Amazon Web Services account where the IAM role resides.
- Parameters:
accountName- The friendly name of the Amazon Web Services account where the IAM role resides.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-