Interface CreateRoleAssociationResponse.Builder
- All Superinterfaces:
AwsResponse.Builder,Buildable,CopyableBuilder<CreateRoleAssociationResponse.Builder,,CreateRoleAssociationResponse> RedshiftServerlessResponse.Builder,SdkBuilder<CreateRoleAssociationResponse.Builder,,CreateRoleAssociationResponse> SdkPojo,SdkResponse.Builder
- Enclosing class:
CreateRoleAssociationResponse
@Mutable
@NotThreadSafe
public static interface CreateRoleAssociationResponse.Builder
extends RedshiftServerlessResponse.Builder, SdkPojo, CopyableBuilder<CreateRoleAssociationResponse.Builder,CreateRoleAssociationResponse>
-
Method Summary
Modifier and TypeMethodDescriptionprincipal(Consumer<PrincipalOutput.Builder> principal) The associated principal, including its resolved unique ID.principal(PrincipalOutput principal) The associated principal, including its resolved unique ID.The system-defined role the principal is associated with.The Amazon Resource Name (ARN) of the default endpoint.Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copyMethods inherited from interface software.amazon.awssdk.services.redshiftserverless.model.RedshiftServerlessResponse.Builder
build, responseMetadata, responseMetadataMethods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, buildMethods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFieldNameToField, sdkFieldsMethods inherited from interface software.amazon.awssdk.core.SdkResponse.Builder
sdkHttpResponse, sdkHttpResponse
-
Method Details
-
targetArn
The Amazon Resource Name (ARN) of the default endpoint.
- Parameters:
targetArn- The Amazon Resource Name (ARN) of the default endpoint.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
roleType
The system-defined role the principal is associated with.
- Parameters:
roleType- The system-defined role the principal is associated with.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
principal
The associated principal, including its resolved unique ID.
- Parameters:
principal- The associated principal, including its resolved unique ID.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
principal
default CreateRoleAssociationResponse.Builder principal(Consumer<PrincipalOutput.Builder> principal) The associated principal, including its resolved unique ID.
This is a convenience method that creates an instance of thePrincipalOutput.Builderavoiding the need to create one manually viaPrincipalOutput.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed toprincipal(PrincipalOutput).- Parameters:
principal- a consumer that will call methods onPrincipalOutput.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-