/** * 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 #include #include #include namespace Aws { namespace ManagedBlockchain { namespace Model { /** */ class CreateNetworkRequest : public ManagedBlockchainRequest { public: AWS_MANAGEDBLOCKCHAIN_API CreateNetworkRequest(); // 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 "CreateNetwork"; } AWS_MANAGEDBLOCKCHAIN_API Aws::String SerializePayload() const override; /** *

This is a unique, case-sensitive identifier that you provide to ensure the * idempotency of the operation. An idempotent operation completes no more than * once. 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 Amazon Web Services CLI.

*/ inline const Aws::String& GetClientRequestToken() const{ return m_clientRequestToken; } /** *

This is a unique, case-sensitive identifier that you provide to ensure the * idempotency of the operation. An idempotent operation completes no more than * once. 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 Amazon Web Services CLI.

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

This is a unique, case-sensitive identifier that you provide to ensure the * idempotency of the operation. An idempotent operation completes no more than * once. 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 Amazon Web Services CLI.

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

This is a unique, case-sensitive identifier that you provide to ensure the * idempotency of the operation. An idempotent operation completes no more than * once. 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 Amazon Web Services CLI.

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

This is a unique, case-sensitive identifier that you provide to ensure the * idempotency of the operation. An idempotent operation completes no more than * once. 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 Amazon Web Services CLI.

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

This is a unique, case-sensitive identifier that you provide to ensure the * idempotency of the operation. An idempotent operation completes no more than * once. 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 Amazon Web Services CLI.

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

This is a unique, case-sensitive identifier that you provide to ensure the * idempotency of the operation. An idempotent operation completes no more than * once. 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 Amazon Web Services CLI.

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

This is a unique, case-sensitive identifier that you provide to ensure the * idempotency of the operation. An idempotent operation completes no more than * once. 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 Amazon Web Services CLI.

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

The name of the network.

*/ inline const Aws::String& GetName() const{ return m_name; } /** *

The name of the network.

*/ inline bool NameHasBeenSet() const { return m_nameHasBeenSet; } /** *

The name of the network.

*/ inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; } /** *

The name of the network.

*/ inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); } /** *

The name of the network.

*/ inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); } /** *

The name of the network.

*/ inline CreateNetworkRequest& WithName(const Aws::String& value) { SetName(value); return *this;} /** *

The name of the network.

*/ inline CreateNetworkRequest& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;} /** *

The name of the network.

*/ inline CreateNetworkRequest& WithName(const char* value) { SetName(value); return *this;} /** *

An optional description for the network.

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

An optional description for the network.

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

An optional description for the network.

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

An optional description for the network.

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

An optional description for the network.

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

An optional description for the network.

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

An optional description for the network.

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

An optional description for the network.

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

The blockchain framework that the network uses.

*/ inline const Framework& GetFramework() const{ return m_framework; } /** *

The blockchain framework that the network uses.

*/ inline bool FrameworkHasBeenSet() const { return m_frameworkHasBeenSet; } /** *

The blockchain framework that the network uses.

*/ inline void SetFramework(const Framework& value) { m_frameworkHasBeenSet = true; m_framework = value; } /** *

The blockchain framework that the network uses.

*/ inline void SetFramework(Framework&& value) { m_frameworkHasBeenSet = true; m_framework = std::move(value); } /** *

The blockchain framework that the network uses.

*/ inline CreateNetworkRequest& WithFramework(const Framework& value) { SetFramework(value); return *this;} /** *

The blockchain framework that the network uses.

*/ inline CreateNetworkRequest& WithFramework(Framework&& value) { SetFramework(std::move(value)); return *this;} /** *

The version of the blockchain framework that the network uses.

*/ inline const Aws::String& GetFrameworkVersion() const{ return m_frameworkVersion; } /** *

The version of the blockchain framework that the network uses.

*/ inline bool FrameworkVersionHasBeenSet() const { return m_frameworkVersionHasBeenSet; } /** *

The version of the blockchain framework that the network uses.

*/ inline void SetFrameworkVersion(const Aws::String& value) { m_frameworkVersionHasBeenSet = true; m_frameworkVersion = value; } /** *

The version of the blockchain framework that the network uses.

*/ inline void SetFrameworkVersion(Aws::String&& value) { m_frameworkVersionHasBeenSet = true; m_frameworkVersion = std::move(value); } /** *

The version of the blockchain framework that the network uses.

*/ inline void SetFrameworkVersion(const char* value) { m_frameworkVersionHasBeenSet = true; m_frameworkVersion.assign(value); } /** *

The version of the blockchain framework that the network uses.

*/ inline CreateNetworkRequest& WithFrameworkVersion(const Aws::String& value) { SetFrameworkVersion(value); return *this;} /** *

The version of the blockchain framework that the network uses.

*/ inline CreateNetworkRequest& WithFrameworkVersion(Aws::String&& value) { SetFrameworkVersion(std::move(value)); return *this;} /** *

The version of the blockchain framework that the network uses.

*/ inline CreateNetworkRequest& WithFrameworkVersion(const char* value) { SetFrameworkVersion(value); return *this;} /** *

Configuration properties of the blockchain framework relevant to the network * configuration.

*/ inline const NetworkFrameworkConfiguration& GetFrameworkConfiguration() const{ return m_frameworkConfiguration; } /** *

Configuration properties of the blockchain framework relevant to the network * configuration.

*/ inline bool FrameworkConfigurationHasBeenSet() const { return m_frameworkConfigurationHasBeenSet; } /** *

Configuration properties of the blockchain framework relevant to the network * configuration.

*/ inline void SetFrameworkConfiguration(const NetworkFrameworkConfiguration& value) { m_frameworkConfigurationHasBeenSet = true; m_frameworkConfiguration = value; } /** *

Configuration properties of the blockchain framework relevant to the network * configuration.

*/ inline void SetFrameworkConfiguration(NetworkFrameworkConfiguration&& value) { m_frameworkConfigurationHasBeenSet = true; m_frameworkConfiguration = std::move(value); } /** *

Configuration properties of the blockchain framework relevant to the network * configuration.

*/ inline CreateNetworkRequest& WithFrameworkConfiguration(const NetworkFrameworkConfiguration& value) { SetFrameworkConfiguration(value); return *this;} /** *

Configuration properties of the blockchain framework relevant to the network * configuration.

*/ inline CreateNetworkRequest& WithFrameworkConfiguration(NetworkFrameworkConfiguration&& value) { SetFrameworkConfiguration(std::move(value)); return *this;} /** *

The voting rules used by the network to determine if a proposal is approved. *

*/ inline const VotingPolicy& GetVotingPolicy() const{ return m_votingPolicy; } /** *

The voting rules used by the network to determine if a proposal is approved. *

*/ inline bool VotingPolicyHasBeenSet() const { return m_votingPolicyHasBeenSet; } /** *

The voting rules used by the network to determine if a proposal is approved. *

*/ inline void SetVotingPolicy(const VotingPolicy& value) { m_votingPolicyHasBeenSet = true; m_votingPolicy = value; } /** *

The voting rules used by the network to determine if a proposal is approved. *

*/ inline void SetVotingPolicy(VotingPolicy&& value) { m_votingPolicyHasBeenSet = true; m_votingPolicy = std::move(value); } /** *

The voting rules used by the network to determine if a proposal is approved. *

*/ inline CreateNetworkRequest& WithVotingPolicy(const VotingPolicy& value) { SetVotingPolicy(value); return *this;} /** *

The voting rules used by the network to determine if a proposal is approved. *

*/ inline CreateNetworkRequest& WithVotingPolicy(VotingPolicy&& value) { SetVotingPolicy(std::move(value)); return *this;} /** *

Configuration properties for the first member within the network.

*/ inline const MemberConfiguration& GetMemberConfiguration() const{ return m_memberConfiguration; } /** *

Configuration properties for the first member within the network.

*/ inline bool MemberConfigurationHasBeenSet() const { return m_memberConfigurationHasBeenSet; } /** *

Configuration properties for the first member within the network.

*/ inline void SetMemberConfiguration(const MemberConfiguration& value) { m_memberConfigurationHasBeenSet = true; m_memberConfiguration = value; } /** *

Configuration properties for the first member within the network.

*/ inline void SetMemberConfiguration(MemberConfiguration&& value) { m_memberConfigurationHasBeenSet = true; m_memberConfiguration = std::move(value); } /** *

Configuration properties for the first member within the network.

*/ inline CreateNetworkRequest& WithMemberConfiguration(const MemberConfiguration& value) { SetMemberConfiguration(value); return *this;} /** *

Configuration properties for the first member within the network.

*/ inline CreateNetworkRequest& WithMemberConfiguration(MemberConfiguration&& value) { SetMemberConfiguration(std::move(value)); return *this;} /** *

Tags to assign to the network.

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 network.

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 network.

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 network.

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 network.

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 CreateNetworkRequest& WithTags(const Aws::Map& value) { SetTags(value); return *this;} /** *

Tags to assign to the network.

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 CreateNetworkRequest& WithTags(Aws::Map&& value) { SetTags(std::move(value)); return *this;} /** *

Tags to assign to the network.

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 CreateNetworkRequest& AddTags(const Aws::String& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; } /** *

Tags to assign to the network.

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 CreateNetworkRequest& 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 network.

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 CreateNetworkRequest& 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 network.

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 CreateNetworkRequest& 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 network.

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 CreateNetworkRequest& AddTags(const char* key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; } /** *

Tags to assign to the network.

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 CreateNetworkRequest& AddTags(Aws::String&& key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; } /** *

Tags to assign to the network.

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 CreateNetworkRequest& 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_name; bool m_nameHasBeenSet = false; Aws::String m_description; bool m_descriptionHasBeenSet = false; Framework m_framework; bool m_frameworkHasBeenSet = false; Aws::String m_frameworkVersion; bool m_frameworkVersionHasBeenSet = false; NetworkFrameworkConfiguration m_frameworkConfiguration; bool m_frameworkConfigurationHasBeenSet = false; VotingPolicy m_votingPolicy; bool m_votingPolicyHasBeenSet = false; MemberConfiguration m_memberConfiguration; bool m_memberConfigurationHasBeenSet = false; Aws::Map m_tags; bool m_tagsHasBeenSet = false; }; } // namespace Model } // namespace ManagedBlockchain } // namespace Aws