/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include #include #include namespace Aws { namespace Utils { namespace Json { class JsonValue; class JsonView; } // namespace Json } // namespace Utils namespace ManagedBlockchain { namespace Model { /** *

Configuration properties of the member.

Applies only to Hyperledger * Fabric.

See Also:

AWS * API Reference

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

The name of the member.

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

The name of the member.

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

The name of the member.

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

The name of the member.

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

The name of the member.

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

The name of the member.

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

The name of the member.

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

The name of the member.

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

An optional description of the member.

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

An optional description of the member.

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

An optional description of the member.

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

An optional description of the member.

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

An optional description of the member.

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

An optional description of the member.

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

An optional description of the member.

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

An optional description of the member.

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

Configuration properties of the blockchain framework relevant to the * member.

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

Configuration properties of the blockchain framework relevant to the * member.

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

Configuration properties of the blockchain framework relevant to the * member.

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

Configuration properties of the blockchain framework relevant to the * member.

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

Configuration properties of the blockchain framework relevant to the * member.

*/ inline MemberConfiguration& WithFrameworkConfiguration(const MemberFrameworkConfiguration& value) { SetFrameworkConfiguration(value); return *this;} /** *

Configuration properties of the blockchain framework relevant to the * member.

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

Configuration properties for logging events associated with a member of a * Managed Blockchain network.

*/ inline const MemberLogPublishingConfiguration& GetLogPublishingConfiguration() const{ return m_logPublishingConfiguration; } /** *

Configuration properties for logging events associated with a member of a * Managed Blockchain network.

*/ inline bool LogPublishingConfigurationHasBeenSet() const { return m_logPublishingConfigurationHasBeenSet; } /** *

Configuration properties for logging events associated with a member of a * Managed Blockchain network.

*/ inline void SetLogPublishingConfiguration(const MemberLogPublishingConfiguration& value) { m_logPublishingConfigurationHasBeenSet = true; m_logPublishingConfiguration = value; } /** *

Configuration properties for logging events associated with a member of a * Managed Blockchain network.

*/ inline void SetLogPublishingConfiguration(MemberLogPublishingConfiguration&& value) { m_logPublishingConfigurationHasBeenSet = true; m_logPublishingConfiguration = std::move(value); } /** *

Configuration properties for logging events associated with a member of a * Managed Blockchain network.

*/ inline MemberConfiguration& WithLogPublishingConfiguration(const MemberLogPublishingConfiguration& value) { SetLogPublishingConfiguration(value); return *this;} /** *

Configuration properties for logging events associated with a member of a * Managed Blockchain network.

*/ inline MemberConfiguration& WithLogPublishingConfiguration(MemberLogPublishingConfiguration&& value) { SetLogPublishingConfiguration(std::move(value)); return *this;} /** *

Tags assigned to the member. Tags consist of a key and optional value.

*

When specifying tags during creation, you can specify multiple key-value * pairs in a single request, with an overall maximum of 50 tags added to each * 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 assigned to the member. Tags consist of a key and optional value.

*

When specifying tags during creation, you can specify multiple key-value * pairs in a single request, with an overall maximum of 50 tags added to each * 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 assigned to the member. Tags consist of a key and optional value.

*

When specifying tags during creation, you can specify multiple key-value * pairs in a single request, with an overall maximum of 50 tags added to each * 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 assigned to the member. Tags consist of a key and optional value.

*

When specifying tags during creation, you can specify multiple key-value * pairs in a single request, with an overall maximum of 50 tags added to each * 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 assigned to the member. Tags consist of a key and optional value.

*

When specifying tags during creation, you can specify multiple key-value * pairs in a single request, with an overall maximum of 50 tags added to each * 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 MemberConfiguration& WithTags(const Aws::Map& value) { SetTags(value); return *this;} /** *

Tags assigned to the member. Tags consist of a key and optional value.

*

When specifying tags during creation, you can specify multiple key-value * pairs in a single request, with an overall maximum of 50 tags added to each * 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 MemberConfiguration& WithTags(Aws::Map&& value) { SetTags(std::move(value)); return *this;} /** *

Tags assigned to the member. Tags consist of a key and optional value.

*

When specifying tags during creation, you can specify multiple key-value * pairs in a single request, with an overall maximum of 50 tags added to each * 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 MemberConfiguration& AddTags(const Aws::String& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; } /** *

Tags assigned to the member. Tags consist of a key and optional value.

*

When specifying tags during creation, you can specify multiple key-value * pairs in a single request, with an overall maximum of 50 tags added to each * 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 MemberConfiguration& AddTags(Aws::String&& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; } /** *

Tags assigned to the member. Tags consist of a key and optional value.

*

When specifying tags during creation, you can specify multiple key-value * pairs in a single request, with an overall maximum of 50 tags added to each * 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 MemberConfiguration& AddTags(const Aws::String& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; } /** *

Tags assigned to the member. Tags consist of a key and optional value.

*

When specifying tags during creation, you can specify multiple key-value * pairs in a single request, with an overall maximum of 50 tags added to each * 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 MemberConfiguration& 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 member. Tags consist of a key and optional value.

*

When specifying tags during creation, you can specify multiple key-value * pairs in a single request, with an overall maximum of 50 tags added to each * 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 MemberConfiguration& AddTags(const char* key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; } /** *

Tags assigned to the member. Tags consist of a key and optional value.

*

When specifying tags during creation, you can specify multiple key-value * pairs in a single request, with an overall maximum of 50 tags added to each * 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 MemberConfiguration& AddTags(Aws::String&& key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; } /** *

Tags assigned to the member. Tags consist of a key and optional value.

*

When specifying tags during creation, you can specify multiple key-value * pairs in a single request, with an overall maximum of 50 tags added to each * 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 MemberConfiguration& AddTags(const char* key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; } /** *

The Amazon Resource Name (ARN) of the customer managed key in Key Management * Service (KMS) to use for encryption at rest in the member. This parameter is * inherited by any nodes that this member creates. For more information, see Encryption * at Rest in the Amazon Managed Blockchain Hyperledger Fabric Developer * Guide.

Use one of the following options to specify this * parameter:

  • Undefined or empty string - By default, use * an KMS key that is owned and managed by Amazon Web Services on your behalf.

    *
  • A valid symmetric customer managed KMS key - Use the * specified KMS key in your account that you create, own, and manage.

    *

    Amazon Managed Blockchain doesn't support asymmetric keys. For more * information, see Using * symmetric and asymmetric keys in the Key Management Service Developer * Guide.

    The following is an example of a KMS key ARN: * arn:aws:kms:us-east-2:111122223333:key/1234abcd-12ab-34cd-56ef-1234567890ab *

*/ inline const Aws::String& GetKmsKeyArn() const{ return m_kmsKeyArn; } /** *

The Amazon Resource Name (ARN) of the customer managed key in Key Management * Service (KMS) to use for encryption at rest in the member. This parameter is * inherited by any nodes that this member creates. For more information, see Encryption * at Rest in the Amazon Managed Blockchain Hyperledger Fabric Developer * Guide.

Use one of the following options to specify this * parameter:

  • Undefined or empty string - By default, use * an KMS key that is owned and managed by Amazon Web Services on your behalf.

    *
  • A valid symmetric customer managed KMS key - Use the * specified KMS key in your account that you create, own, and manage.

    *

    Amazon Managed Blockchain doesn't support asymmetric keys. For more * information, see Using * symmetric and asymmetric keys in the Key Management Service Developer * Guide.

    The following is an example of a KMS key ARN: * arn:aws:kms:us-east-2:111122223333:key/1234abcd-12ab-34cd-56ef-1234567890ab *

*/ inline bool KmsKeyArnHasBeenSet() const { return m_kmsKeyArnHasBeenSet; } /** *

The Amazon Resource Name (ARN) of the customer managed key in Key Management * Service (KMS) to use for encryption at rest in the member. This parameter is * inherited by any nodes that this member creates. For more information, see Encryption * at Rest in the Amazon Managed Blockchain Hyperledger Fabric Developer * Guide.

Use one of the following options to specify this * parameter:

  • Undefined or empty string - By default, use * an KMS key that is owned and managed by Amazon Web Services on your behalf.

    *
  • A valid symmetric customer managed KMS key - Use the * specified KMS key in your account that you create, own, and manage.

    *

    Amazon Managed Blockchain doesn't support asymmetric keys. For more * information, see Using * symmetric and asymmetric keys in the Key Management Service Developer * Guide.

    The following is an example of a KMS key ARN: * arn:aws:kms:us-east-2:111122223333:key/1234abcd-12ab-34cd-56ef-1234567890ab *

*/ inline void SetKmsKeyArn(const Aws::String& value) { m_kmsKeyArnHasBeenSet = true; m_kmsKeyArn = value; } /** *

The Amazon Resource Name (ARN) of the customer managed key in Key Management * Service (KMS) to use for encryption at rest in the member. This parameter is * inherited by any nodes that this member creates. For more information, see Encryption * at Rest in the Amazon Managed Blockchain Hyperledger Fabric Developer * Guide.

Use one of the following options to specify this * parameter:

  • Undefined or empty string - By default, use * an KMS key that is owned and managed by Amazon Web Services on your behalf.

    *
  • A valid symmetric customer managed KMS key - Use the * specified KMS key in your account that you create, own, and manage.

    *

    Amazon Managed Blockchain doesn't support asymmetric keys. For more * information, see Using * symmetric and asymmetric keys in the Key Management Service Developer * Guide.

    The following is an example of a KMS key ARN: * arn:aws:kms:us-east-2:111122223333:key/1234abcd-12ab-34cd-56ef-1234567890ab *

*/ inline void SetKmsKeyArn(Aws::String&& value) { m_kmsKeyArnHasBeenSet = true; m_kmsKeyArn = std::move(value); } /** *

The Amazon Resource Name (ARN) of the customer managed key in Key Management * Service (KMS) to use for encryption at rest in the member. This parameter is * inherited by any nodes that this member creates. For more information, see Encryption * at Rest in the Amazon Managed Blockchain Hyperledger Fabric Developer * Guide.

Use one of the following options to specify this * parameter:

  • Undefined or empty string - By default, use * an KMS key that is owned and managed by Amazon Web Services on your behalf.

    *
  • A valid symmetric customer managed KMS key - Use the * specified KMS key in your account that you create, own, and manage.

    *

    Amazon Managed Blockchain doesn't support asymmetric keys. For more * information, see Using * symmetric and asymmetric keys in the Key Management Service Developer * Guide.

    The following is an example of a KMS key ARN: * arn:aws:kms:us-east-2:111122223333:key/1234abcd-12ab-34cd-56ef-1234567890ab *

*/ inline void SetKmsKeyArn(const char* value) { m_kmsKeyArnHasBeenSet = true; m_kmsKeyArn.assign(value); } /** *

The Amazon Resource Name (ARN) of the customer managed key in Key Management * Service (KMS) to use for encryption at rest in the member. This parameter is * inherited by any nodes that this member creates. For more information, see Encryption * at Rest in the Amazon Managed Blockchain Hyperledger Fabric Developer * Guide.

Use one of the following options to specify this * parameter:

  • Undefined or empty string - By default, use * an KMS key that is owned and managed by Amazon Web Services on your behalf.

    *
  • A valid symmetric customer managed KMS key - Use the * specified KMS key in your account that you create, own, and manage.

    *

    Amazon Managed Blockchain doesn't support asymmetric keys. For more * information, see Using * symmetric and asymmetric keys in the Key Management Service Developer * Guide.

    The following is an example of a KMS key ARN: * arn:aws:kms:us-east-2:111122223333:key/1234abcd-12ab-34cd-56ef-1234567890ab *

*/ inline MemberConfiguration& WithKmsKeyArn(const Aws::String& value) { SetKmsKeyArn(value); return *this;} /** *

The Amazon Resource Name (ARN) of the customer managed key in Key Management * Service (KMS) to use for encryption at rest in the member. This parameter is * inherited by any nodes that this member creates. For more information, see Encryption * at Rest in the Amazon Managed Blockchain Hyperledger Fabric Developer * Guide.

Use one of the following options to specify this * parameter:

  • Undefined or empty string - By default, use * an KMS key that is owned and managed by Amazon Web Services on your behalf.

    *
  • A valid symmetric customer managed KMS key - Use the * specified KMS key in your account that you create, own, and manage.

    *

    Amazon Managed Blockchain doesn't support asymmetric keys. For more * information, see Using * symmetric and asymmetric keys in the Key Management Service Developer * Guide.

    The following is an example of a KMS key ARN: * arn:aws:kms:us-east-2:111122223333:key/1234abcd-12ab-34cd-56ef-1234567890ab *

*/ inline MemberConfiguration& WithKmsKeyArn(Aws::String&& value) { SetKmsKeyArn(std::move(value)); return *this;} /** *

The Amazon Resource Name (ARN) of the customer managed key in Key Management * Service (KMS) to use for encryption at rest in the member. This parameter is * inherited by any nodes that this member creates. For more information, see Encryption * at Rest in the Amazon Managed Blockchain Hyperledger Fabric Developer * Guide.

Use one of the following options to specify this * parameter:

  • Undefined or empty string - By default, use * an KMS key that is owned and managed by Amazon Web Services on your behalf.

    *
  • A valid symmetric customer managed KMS key - Use the * specified KMS key in your account that you create, own, and manage.

    *

    Amazon Managed Blockchain doesn't support asymmetric keys. For more * information, see Using * symmetric and asymmetric keys in the Key Management Service Developer * Guide.

    The following is an example of a KMS key ARN: * arn:aws:kms:us-east-2:111122223333:key/1234abcd-12ab-34cd-56ef-1234567890ab *

*/ inline MemberConfiguration& WithKmsKeyArn(const char* value) { SetKmsKeyArn(value); return *this;} private: Aws::String m_name; bool m_nameHasBeenSet = false; Aws::String m_description; bool m_descriptionHasBeenSet = false; MemberFrameworkConfiguration m_frameworkConfiguration; bool m_frameworkConfigurationHasBeenSet = false; MemberLogPublishingConfiguration m_logPublishingConfiguration; bool m_logPublishingConfigurationHasBeenSet = false; Aws::Map m_tags; bool m_tagsHasBeenSet = false; Aws::String m_kmsKeyArn; bool m_kmsKeyArnHasBeenSet = false; }; } // namespace Model } // namespace ManagedBlockchain } // namespace Aws