Interface CreateProposalRequest.Builder
-
- All Superinterfaces:
AwsRequest.Builder,Buildable,CopyableBuilder<CreateProposalRequest.Builder,CreateProposalRequest>,ManagedBlockchainRequest.Builder,SdkBuilder<CreateProposalRequest.Builder,CreateProposalRequest>,SdkPojo,SdkRequest.Builder
- Enclosing class:
- CreateProposalRequest
public static interface CreateProposalRequest.Builder extends ManagedBlockchainRequest.Builder, SdkPojo, CopyableBuilder<CreateProposalRequest.Builder,CreateProposalRequest>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default CreateProposalRequest.Builderactions(Consumer<ProposalActions.Builder> actions)The type of actions proposed, such as inviting a member or removing a member.CreateProposalRequest.Builderactions(ProposalActions actions)The type of actions proposed, such as inviting a member or removing a member.CreateProposalRequest.BuilderclientRequestToken(String clientRequestToken)A unique, case-sensitive identifier that you provide to ensure the idempotency of the operation.CreateProposalRequest.Builderdescription(String description)A description for the proposal that is visible to voting members, for example, "Proposal to add Example Corp.CreateProposalRequest.BuildermemberId(String memberId)The unique identifier of the member that is creating the proposal.CreateProposalRequest.BuildernetworkId(String networkId)The unique identifier of the network for which the proposal is made.CreateProposalRequest.BuilderoverrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer)CreateProposalRequest.BuilderoverrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration)CreateProposalRequest.Buildertags(Map<String,String> tags)Tags to assign to the proposal.-
Methods inherited from interface software.amazon.awssdk.awscore.AwsRequest.Builder
overrideConfiguration
-
Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
-
Methods inherited from interface software.amazon.awssdk.services.managedblockchain.model.ManagedBlockchainRequest.Builder
build
-
Methods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, build
-
Methods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFieldNameToField, sdkFields
-
-
-
-
Method Detail
-
clientRequestToken
CreateProposalRequest.Builder clientRequestToken(String clientRequestToken)
A unique, case-sensitive identifier that you provide to ensure the idempotency of the operation. An idempotent operation completes no more than one time. This identifier is required only if you make a service request directly using an HTTP client. It is generated automatically if you use an Amazon Web Services SDK or the CLI.
- Parameters:
clientRequestToken- A unique, case-sensitive identifier that you provide to ensure the idempotency of the operation. An idempotent operation completes no more than one time. This identifier is required only if you make a service request directly using an HTTP client. It is generated automatically if you use an Amazon Web Services SDK or the CLI.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
networkId
CreateProposalRequest.Builder networkId(String networkId)
The unique identifier of the network for which the proposal is made.
- Parameters:
networkId- The unique identifier of the network for which the proposal is made.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
memberId
CreateProposalRequest.Builder memberId(String memberId)
The unique identifier of the member that is creating the proposal. This identifier is especially useful for identifying the member making the proposal when multiple members exist in a single Amazon Web Services account.
- Parameters:
memberId- The unique identifier of the member that is creating the proposal. This identifier is especially useful for identifying the member making the proposal when multiple members exist in a single Amazon Web Services account.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
actions
CreateProposalRequest.Builder actions(ProposalActions actions)
The type of actions proposed, such as inviting a member or removing a member. The types of
Actionsin a proposal are mutually exclusive. For example, a proposal withInvitationsactions cannot also containRemovalsactions.- Parameters:
actions- The type of actions proposed, such as inviting a member or removing a member. The types ofActionsin a proposal are mutually exclusive. For example, a proposal withInvitationsactions cannot also containRemovalsactions.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
actions
default CreateProposalRequest.Builder actions(Consumer<ProposalActions.Builder> actions)
The type of actions proposed, such as inviting a member or removing a member. The types of
This is a convenience method that creates an instance of theActionsin a proposal are mutually exclusive. For example, a proposal withInvitationsactions cannot also containRemovalsactions.ProposalActions.Builderavoiding the need to create one manually viaProposalActions.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed toactions(ProposalActions).- Parameters:
actions- a consumer that will call methods onProposalActions.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
actions(ProposalActions)
-
description
CreateProposalRequest.Builder description(String description)
A description for the proposal that is visible to voting members, for example, "Proposal to add Example Corp. as member."
- Parameters:
description- A description for the proposal that is visible to voting members, for example, "Proposal to add Example Corp. as member."- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
tags
CreateProposalRequest.Builder tags(Map<String,String> tags)
Tags to assign to the proposal.
Each tag consists of a key and an optional value. You can specify multiple key-value pairs in a single request with an overall maximum of 50 tags allowed per resource.
For more information about tags, see Tagging Resources in the Amazon Managed Blockchain Ethereum Developer Guide, or Tagging Resources in the Amazon Managed Blockchain Hyperledger Fabric Developer Guide.
- Parameters:
tags- Tags to assign to the proposal.Each tag consists of a key and an optional value. You can specify multiple key-value pairs in a single request with an overall maximum of 50 tags allowed per resource.
For more information about tags, see Tagging Resources in the Amazon Managed Blockchain Ethereum Developer Guide, or Tagging Resources in the Amazon Managed Blockchain Hyperledger Fabric Developer Guide.
- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
overrideConfiguration
CreateProposalRequest.Builder overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration)
- Specified by:
overrideConfigurationin interfaceAwsRequest.Builder
-
overrideConfiguration
CreateProposalRequest.Builder overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer)
- Specified by:
overrideConfigurationin interfaceAwsRequest.Builder
-
-