Interface CreateMembershipRequest.Builder
- All Superinterfaces:
AwsRequest.Builder,Buildable,CopyableBuilder<CreateMembershipRequest.Builder,,CreateMembershipRequest> SdkBuilder<CreateMembershipRequest.Builder,,CreateMembershipRequest> SdkPojo,SdkRequest.Builder,SecurityAgentRequest.Builder
- Enclosing class:
CreateMembershipRequest
@Mutable
@NotThreadSafe
public static interface CreateMembershipRequest.Builder
extends SecurityAgentRequest.Builder, SdkPojo, CopyableBuilder<CreateMembershipRequest.Builder,CreateMembershipRequest>
-
Method Summary
Modifier and TypeMethodDescriptionagentSpaceId(String agentSpaceId) The unique identifier of the agent space to grant access to.applicationId(String applicationId) The unique identifier of the application that contains the agent space.default CreateMembershipRequest.Builderconfig(Consumer<MembershipConfig.Builder> config) The configuration for the membership, such as the user role.config(MembershipConfig config) The configuration for the membership, such as the user role.membershipId(String membershipId) The unique identifier for the membership.memberType(String memberType) The type of member.memberType(MembershipType memberType) The type of member.overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) Add an optional request override configuration.overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration) Add an optional request override configuration.Methods inherited from interface software.amazon.awssdk.awscore.AwsRequest.Builder
overrideConfigurationMethods 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, sdkFieldsMethods inherited from interface software.amazon.awssdk.services.securityagent.model.SecurityAgentRequest.Builder
build
-
Method Details
-
applicationId
The unique identifier of the application that contains the agent space.
- Parameters:
applicationId- The unique identifier of the application that contains the agent space.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
agentSpaceId
The unique identifier of the agent space to grant access to.
- Parameters:
agentSpaceId- The unique identifier of the agent space to grant access to.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
membershipId
The unique identifier for the membership.
- Parameters:
membershipId- The unique identifier for the membership.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
memberType
The type of member. Currently, only USER is supported.
- Parameters:
memberType- The type of member. Currently, only USER is supported.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
memberType
The type of member. Currently, only USER is supported.
- Parameters:
memberType- The type of member. Currently, only USER is supported.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
config
The configuration for the membership, such as the user role.
- Parameters:
config- The configuration for the membership, such as the user role.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
config
The configuration for the membership, such as the user role.
This is a convenience method that creates an instance of theMembershipConfig.Builderavoiding the need to create one manually viaMembershipConfig.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed toconfig(MembershipConfig).- Parameters:
config- a consumer that will call methods onMembershipConfig.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
overrideConfiguration
CreateMembershipRequest.Builder overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration) Description copied from interface:AwsRequest.BuilderAdd an optional request override configuration.- Specified by:
overrideConfigurationin interfaceAwsRequest.Builder- Parameters:
overrideConfiguration- The override configuration.- Returns:
- This object for method chaining.
-
overrideConfiguration
CreateMembershipRequest.Builder overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) Description copied from interface:AwsRequest.BuilderAdd an optional request override configuration.- Specified by:
overrideConfigurationin interfaceAwsRequest.Builder- Parameters:
builderConsumer- AConsumerto which an emptyAwsRequestOverrideConfiguration.Builderwill be given.- Returns:
- This object for method chaining.
-