/** * 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 namespace Aws { namespace Utils { namespace Json { class JsonValue; class JsonView; } // namespace Json } // namespace Utils namespace ManagedBlockchain { namespace Model { /** *

Network configuration properties.

See Also:

AWS * API Reference

*/ class Network { public: AWS_MANAGEDBLOCKCHAIN_API Network(); AWS_MANAGEDBLOCKCHAIN_API Network(Aws::Utils::Json::JsonView jsonValue); AWS_MANAGEDBLOCKCHAIN_API Network& operator=(Aws::Utils::Json::JsonView jsonValue); AWS_MANAGEDBLOCKCHAIN_API Aws::Utils::Json::JsonValue Jsonize() const; /** *

The unique identifier of the network.

*/ inline const Aws::String& GetId() const{ return m_id; } /** *

The unique identifier of the network.

*/ inline bool IdHasBeenSet() const { return m_idHasBeenSet; } /** *

The unique identifier of the network.

*/ inline void SetId(const Aws::String& value) { m_idHasBeenSet = true; m_id = value; } /** *

The unique identifier of the network.

*/ inline void SetId(Aws::String&& value) { m_idHasBeenSet = true; m_id = std::move(value); } /** *

The unique identifier of the network.

*/ inline void SetId(const char* value) { m_idHasBeenSet = true; m_id.assign(value); } /** *

The unique identifier of the network.

*/ inline Network& WithId(const Aws::String& value) { SetId(value); return *this;} /** *

The unique identifier of the network.

*/ inline Network& WithId(Aws::String&& value) { SetId(std::move(value)); return *this;} /** *

The unique identifier of the network.

*/ inline Network& WithId(const char* value) { SetId(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 Network& WithName(const Aws::String& value) { SetName(value); return *this;} /** *

The name of the network.

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

The name of the network.

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

Attributes of the blockchain framework for the network.

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

Attributes of the blockchain framework for the network.

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

Attributes of the blockchain framework for the network.

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

Attributes of the blockchain framework for the network.

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

Attributes of the blockchain framework for the network.

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

Attributes of the blockchain framework for the network.

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

Attributes of the blockchain framework for the network.

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

Attributes of the blockchain framework for the network.

*/ inline Network& 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 Network& WithFramework(const Framework& value) { SetFramework(value); return *this;} /** *

The blockchain framework that the network uses.

*/ inline Network& 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 Network& WithFrameworkVersion(const Aws::String& value) { SetFrameworkVersion(value); return *this;} /** *

The version of the blockchain framework that the network uses.

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

The version of the blockchain framework that the network uses.

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

Attributes of the blockchain framework that the network uses.

*/ inline const NetworkFrameworkAttributes& GetFrameworkAttributes() const{ return m_frameworkAttributes; } /** *

Attributes of the blockchain framework that the network uses.

*/ inline bool FrameworkAttributesHasBeenSet() const { return m_frameworkAttributesHasBeenSet; } /** *

Attributes of the blockchain framework that the network uses.

*/ inline void SetFrameworkAttributes(const NetworkFrameworkAttributes& value) { m_frameworkAttributesHasBeenSet = true; m_frameworkAttributes = value; } /** *

Attributes of the blockchain framework that the network uses.

*/ inline void SetFrameworkAttributes(NetworkFrameworkAttributes&& value) { m_frameworkAttributesHasBeenSet = true; m_frameworkAttributes = std::move(value); } /** *

Attributes of the blockchain framework that the network uses.

*/ inline Network& WithFrameworkAttributes(const NetworkFrameworkAttributes& value) { SetFrameworkAttributes(value); return *this;} /** *

Attributes of the blockchain framework that the network uses.

*/ inline Network& WithFrameworkAttributes(NetworkFrameworkAttributes&& value) { SetFrameworkAttributes(std::move(value)); return *this;} /** *

The VPC endpoint service name of the VPC endpoint service of the network. * Members use the VPC endpoint service name to create a VPC endpoint to access * network resources.

*/ inline const Aws::String& GetVpcEndpointServiceName() const{ return m_vpcEndpointServiceName; } /** *

The VPC endpoint service name of the VPC endpoint service of the network. * Members use the VPC endpoint service name to create a VPC endpoint to access * network resources.

*/ inline bool VpcEndpointServiceNameHasBeenSet() const { return m_vpcEndpointServiceNameHasBeenSet; } /** *

The VPC endpoint service name of the VPC endpoint service of the network. * Members use the VPC endpoint service name to create a VPC endpoint to access * network resources.

*/ inline void SetVpcEndpointServiceName(const Aws::String& value) { m_vpcEndpointServiceNameHasBeenSet = true; m_vpcEndpointServiceName = value; } /** *

The VPC endpoint service name of the VPC endpoint service of the network. * Members use the VPC endpoint service name to create a VPC endpoint to access * network resources.

*/ inline void SetVpcEndpointServiceName(Aws::String&& value) { m_vpcEndpointServiceNameHasBeenSet = true; m_vpcEndpointServiceName = std::move(value); } /** *

The VPC endpoint service name of the VPC endpoint service of the network. * Members use the VPC endpoint service name to create a VPC endpoint to access * network resources.

*/ inline void SetVpcEndpointServiceName(const char* value) { m_vpcEndpointServiceNameHasBeenSet = true; m_vpcEndpointServiceName.assign(value); } /** *

The VPC endpoint service name of the VPC endpoint service of the network. * Members use the VPC endpoint service name to create a VPC endpoint to access * network resources.

*/ inline Network& WithVpcEndpointServiceName(const Aws::String& value) { SetVpcEndpointServiceName(value); return *this;} /** *

The VPC endpoint service name of the VPC endpoint service of the network. * Members use the VPC endpoint service name to create a VPC endpoint to access * network resources.

*/ inline Network& WithVpcEndpointServiceName(Aws::String&& value) { SetVpcEndpointServiceName(std::move(value)); return *this;} /** *

The VPC endpoint service name of the VPC endpoint service of the network. * Members use the VPC endpoint service name to create a VPC endpoint to access * network resources.

*/ inline Network& WithVpcEndpointServiceName(const char* value) { SetVpcEndpointServiceName(value); return *this;} /** *

The voting rules that the network uses to decide if a proposal is * accepted.

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

The voting rules that the network uses to decide if a proposal is * accepted.

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

The voting rules that the network uses to decide if a proposal is * accepted.

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

The voting rules that the network uses to decide if a proposal is * accepted.

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

The voting rules that the network uses to decide if a proposal is * accepted.

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

The voting rules that the network uses to decide if a proposal is * accepted.

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

The current status of the network.

*/ inline const NetworkStatus& GetStatus() const{ return m_status; } /** *

The current status of the network.

*/ inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; } /** *

The current status of the network.

*/ inline void SetStatus(const NetworkStatus& value) { m_statusHasBeenSet = true; m_status = value; } /** *

The current status of the network.

*/ inline void SetStatus(NetworkStatus&& value) { m_statusHasBeenSet = true; m_status = std::move(value); } /** *

The current status of the network.

*/ inline Network& WithStatus(const NetworkStatus& value) { SetStatus(value); return *this;} /** *

The current status of the network.

*/ inline Network& WithStatus(NetworkStatus&& value) { SetStatus(std::move(value)); return *this;} /** *

The date and time that the network was created.

*/ inline const Aws::Utils::DateTime& GetCreationDate() const{ return m_creationDate; } /** *

The date and time that the network was created.

*/ inline bool CreationDateHasBeenSet() const { return m_creationDateHasBeenSet; } /** *

The date and time that the network was created.

*/ inline void SetCreationDate(const Aws::Utils::DateTime& value) { m_creationDateHasBeenSet = true; m_creationDate = value; } /** *

The date and time that the network was created.

*/ inline void SetCreationDate(Aws::Utils::DateTime&& value) { m_creationDateHasBeenSet = true; m_creationDate = std::move(value); } /** *

The date and time that the network was created.

*/ inline Network& WithCreationDate(const Aws::Utils::DateTime& value) { SetCreationDate(value); return *this;} /** *

The date and time that the network was created.

*/ inline Network& WithCreationDate(Aws::Utils::DateTime&& value) { SetCreationDate(std::move(value)); return *this;} /** *

Tags assigned to the network. Each tag consists of a key and optional * value.

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 assigned to the network. Each tag consists of a key and optional * value.

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 assigned to the network. Each tag consists of a key and optional * value.

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 assigned to the network. Each tag consists of a key and optional * value.

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 assigned to the network. Each tag consists of a key and optional * value.

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

Tags assigned to the network. Each tag consists of a key and optional * value.

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

Tags assigned to the network. Each tag consists of a key and optional * value.

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

Tags assigned to the network. Each tag consists of a key and optional * value.

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

Tags assigned to the network. Each tag consists of a key and optional * value.

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

Tags assigned to the network. Each tag consists of a key and optional * value.

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

Tags assigned to the network. Each tag consists of a key and optional * value.

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

Tags assigned to the network. Each tag consists of a key and optional * value.

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

Tags assigned to the network. Each tag consists of a key and optional * value.

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

The Amazon Resource Name (ARN) of the network. For more information about * ARNs and their format, see Amazon * Resource Names (ARNs) in the Amazon Web Services General * Reference.

*/ inline const Aws::String& GetArn() const{ return m_arn; } /** *

The Amazon Resource Name (ARN) of the network. For more information about * ARNs and their format, see Amazon * Resource Names (ARNs) in the Amazon Web Services General * Reference.

*/ inline bool ArnHasBeenSet() const { return m_arnHasBeenSet; } /** *

The Amazon Resource Name (ARN) of the network. For more information about * ARNs and their format, see Amazon * Resource Names (ARNs) in the Amazon Web Services General * Reference.

*/ inline void SetArn(const Aws::String& value) { m_arnHasBeenSet = true; m_arn = value; } /** *

The Amazon Resource Name (ARN) of the network. For more information about * ARNs and their format, see Amazon * Resource Names (ARNs) in the Amazon Web Services General * Reference.

*/ inline void SetArn(Aws::String&& value) { m_arnHasBeenSet = true; m_arn = std::move(value); } /** *

The Amazon Resource Name (ARN) of the network. For more information about * ARNs and their format, see Amazon * Resource Names (ARNs) in the Amazon Web Services General * Reference.

*/ inline void SetArn(const char* value) { m_arnHasBeenSet = true; m_arn.assign(value); } /** *

The Amazon Resource Name (ARN) of the network. For more information about * ARNs and their format, see Amazon * Resource Names (ARNs) in the Amazon Web Services General * Reference.

*/ inline Network& WithArn(const Aws::String& value) { SetArn(value); return *this;} /** *

The Amazon Resource Name (ARN) of the network. For more information about * ARNs and their format, see Amazon * Resource Names (ARNs) in the Amazon Web Services General * Reference.

*/ inline Network& WithArn(Aws::String&& value) { SetArn(std::move(value)); return *this;} /** *

The Amazon Resource Name (ARN) of the network. For more information about * ARNs and their format, see Amazon * Resource Names (ARNs) in the Amazon Web Services General * Reference.

*/ inline Network& WithArn(const char* value) { SetArn(value); return *this;} private: Aws::String m_id; bool m_idHasBeenSet = 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; NetworkFrameworkAttributes m_frameworkAttributes; bool m_frameworkAttributesHasBeenSet = false; Aws::String m_vpcEndpointServiceName; bool m_vpcEndpointServiceNameHasBeenSet = false; VotingPolicy m_votingPolicy; bool m_votingPolicyHasBeenSet = false; NetworkStatus m_status; bool m_statusHasBeenSet = false; Aws::Utils::DateTime m_creationDate; bool m_creationDateHasBeenSet = false; Aws::Map m_tags; bool m_tagsHasBeenSet = false; Aws::String m_arn; bool m_arnHasBeenSet = false; }; } // namespace Model } // namespace ManagedBlockchain } // namespace Aws