/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include #include #include #include namespace Aws { namespace ManagedBlockchain { namespace Model { /** */ class CreateProposalRequest : public ManagedBlockchainRequest { public: AWS_MANAGEDBLOCKCHAIN_API CreateProposalRequest(); // Service request name is the Operation name which will send this request out, // each operation should has unique request name, so that we can get operation's name from this request. // Note: this is not true for response, multiple operations may have the same response name, // so we can not get operation's name from response. inline virtual const char* GetServiceRequestName() const override { return "CreateProposal"; } AWS_MANAGEDBLOCKCHAIN_API Aws::String SerializePayload() const override; /** *

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.

*/ inline const Aws::String& GetClientRequestToken() const{ return m_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.

*/ inline bool ClientRequestTokenHasBeenSet() const { return m_clientRequestTokenHasBeenSet; } /** *

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.

*/ inline void SetClientRequestToken(const Aws::String& value) { m_clientRequestTokenHasBeenSet = true; m_clientRequestToken = value; } /** *

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.

*/ inline void SetClientRequestToken(Aws::String&& value) { m_clientRequestTokenHasBeenSet = true; m_clientRequestToken = std::move(value); } /** *

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.

*/ inline void SetClientRequestToken(const char* value) { m_clientRequestTokenHasBeenSet = true; m_clientRequestToken.assign(value); } /** *

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.

*/ inline CreateProposalRequest& WithClientRequestToken(const Aws::String& value) { SetClientRequestToken(value); return *this;} /** *

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.

*/ inline CreateProposalRequest& WithClientRequestToken(Aws::String&& value) { SetClientRequestToken(std::move(value)); return *this;} /** *

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.

*/ inline CreateProposalRequest& WithClientRequestToken(const char* value) { SetClientRequestToken(value); return *this;} /** *

The unique identifier of the network for which the proposal is made.

*/ inline const Aws::String& GetNetworkId() const{ return m_networkId; } /** *

The unique identifier of the network for which the proposal is made.

*/ inline bool NetworkIdHasBeenSet() const { return m_networkIdHasBeenSet; } /** *

The unique identifier of the network for which the proposal is made.

*/ inline void SetNetworkId(const Aws::String& value) { m_networkIdHasBeenSet = true; m_networkId = value; } /** *

The unique identifier of the network for which the proposal is made.

*/ inline void SetNetworkId(Aws::String&& value) { m_networkIdHasBeenSet = true; m_networkId = std::move(value); } /** *

The unique identifier of the network for which the proposal is made.

*/ inline void SetNetworkId(const char* value) { m_networkIdHasBeenSet = true; m_networkId.assign(value); } /** *

The unique identifier of the network for which the proposal is made.

*/ inline CreateProposalRequest& WithNetworkId(const Aws::String& value) { SetNetworkId(value); return *this;} /** *

The unique identifier of the network for which the proposal is made.

*/ inline CreateProposalRequest& WithNetworkId(Aws::String&& value) { SetNetworkId(std::move(value)); return *this;} /** *

The unique identifier of the network for which the proposal is made.

*/ inline CreateProposalRequest& WithNetworkId(const char* value) { SetNetworkId(value); return *this;} /** *

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.

*/ inline const Aws::String& GetMemberId() const{ return m_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.

*/ inline bool MemberIdHasBeenSet() const { return m_memberIdHasBeenSet; } /** *

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.

*/ inline void SetMemberId(const Aws::String& value) { m_memberIdHasBeenSet = true; m_memberId = value; } /** *

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.

*/ inline void SetMemberId(Aws::String&& value) { m_memberIdHasBeenSet = true; m_memberId = std::move(value); } /** *

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.

*/ inline void SetMemberId(const char* value) { m_memberIdHasBeenSet = true; m_memberId.assign(value); } /** *

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.

*/ inline CreateProposalRequest& WithMemberId(const Aws::String& value) { SetMemberId(value); return *this;} /** *

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.

*/ inline CreateProposalRequest& WithMemberId(Aws::String&& value) { SetMemberId(std::move(value)); return *this;} /** *

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.

*/ inline CreateProposalRequest& WithMemberId(const char* value) { SetMemberId(value); return *this;} /** *

The type of actions proposed, such as inviting a member or removing a member. * The types of Actions in a proposal are mutually exclusive. For * example, a proposal with Invitations actions cannot also contain * Removals actions.

*/ inline const ProposalActions& GetActions() const{ return m_actions; } /** *

The type of actions proposed, such as inviting a member or removing a member. * The types of Actions in a proposal are mutually exclusive. For * example, a proposal with Invitations actions cannot also contain * Removals actions.

*/ inline bool ActionsHasBeenSet() const { return m_actionsHasBeenSet; } /** *

The type of actions proposed, such as inviting a member or removing a member. * The types of Actions in a proposal are mutually exclusive. For * example, a proposal with Invitations actions cannot also contain * Removals actions.

*/ inline void SetActions(const ProposalActions& value) { m_actionsHasBeenSet = true; m_actions = value; } /** *

The type of actions proposed, such as inviting a member or removing a member. * The types of Actions in a proposal are mutually exclusive. For * example, a proposal with Invitations actions cannot also contain * Removals actions.

*/ inline void SetActions(ProposalActions&& value) { m_actionsHasBeenSet = true; m_actions = std::move(value); } /** *

The type of actions proposed, such as inviting a member or removing a member. * The types of Actions in a proposal are mutually exclusive. For * example, a proposal with Invitations actions cannot also contain * Removals actions.

*/ inline CreateProposalRequest& WithActions(const ProposalActions& value) { SetActions(value); return *this;} /** *

The type of actions proposed, such as inviting a member or removing a member. * The types of Actions in a proposal are mutually exclusive. For * example, a proposal with Invitations actions cannot also contain * Removals actions.

*/ inline CreateProposalRequest& WithActions(ProposalActions&& value) { SetActions(std::move(value)); return *this;} /** *

A description for the proposal that is visible to voting members, for * example, "Proposal to add Example Corp. as member."

*/ inline const Aws::String& GetDescription() const{ return m_description; } /** *

A description for the proposal that is visible to voting members, for * example, "Proposal to add Example Corp. as member."

*/ inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; } /** *

A description for the proposal that is visible to voting members, for * example, "Proposal to add Example Corp. as member."

*/ inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; } /** *

A description for the proposal that is visible to voting members, for * example, "Proposal to add Example Corp. as member."

*/ inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); } /** *

A description for the proposal that is visible to voting members, for * example, "Proposal to add Example Corp. as member."

*/ inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); } /** *

A description for the proposal that is visible to voting members, for * example, "Proposal to add Example Corp. as member."

*/ inline CreateProposalRequest& WithDescription(const Aws::String& value) { SetDescription(value); return *this;} /** *

A description for the proposal that is visible to voting members, for * example, "Proposal to add Example Corp. as member."

*/ inline CreateProposalRequest& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;} /** *

A description for the proposal that is visible to voting members, for * example, "Proposal to add Example Corp. as member."

*/ inline CreateProposalRequest& WithDescription(const char* value) { SetDescription(value); return *this;} /** *

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.

*/ inline const Aws::Map& GetTags() const{ return m_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.

*/ inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; } /** *

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.

*/ inline void SetTags(const Aws::Map& value) { m_tagsHasBeenSet = true; m_tags = value; } /** *

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.

*/ inline void SetTags(Aws::Map&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); } /** *

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.

*/ inline CreateProposalRequest& WithTags(const Aws::Map& value) { SetTags(value); return *this;} /** *

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.

*/ inline CreateProposalRequest& WithTags(Aws::Map&& value) { SetTags(std::move(value)); return *this;} /** *

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.

*/ inline CreateProposalRequest& AddTags(const Aws::String& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; } /** *

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.

*/ inline CreateProposalRequest& AddTags(Aws::String&& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; } /** *

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.

*/ inline CreateProposalRequest& AddTags(const Aws::String& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; } /** *

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.

*/ inline CreateProposalRequest& AddTags(Aws::String&& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), std::move(value)); return *this; } /** *

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.

*/ inline CreateProposalRequest& AddTags(const char* key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; } /** *

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.

*/ inline CreateProposalRequest& AddTags(Aws::String&& key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; } /** *

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.

*/ inline CreateProposalRequest& AddTags(const char* key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; } private: Aws::String m_clientRequestToken; bool m_clientRequestTokenHasBeenSet = false; Aws::String m_networkId; bool m_networkIdHasBeenSet = false; Aws::String m_memberId; bool m_memberIdHasBeenSet = false; ProposalActions m_actions; bool m_actionsHasBeenSet = false; Aws::String m_description; bool m_descriptionHasBeenSet = false; Aws::Map m_tags; bool m_tagsHasBeenSet = false; }; } // namespace Model } // namespace ManagedBlockchain } // namespace Aws