/** * 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 CreateAccessorRequest : public ManagedBlockchainRequest { public: AWS_MANAGEDBLOCKCHAIN_API CreateAccessorRequest(); // 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 "CreateAccessor"; } 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 CreateAccessorRequest& 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 CreateAccessorRequest& 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 CreateAccessorRequest& WithClientRequestToken(const char* value) { SetClientRequestToken(value); return *this;} /** *

The type of accessor.

Currently, accessor type is restricted to * BILLING_TOKEN.

*/ inline const AccessorType& GetAccessorType() const{ return m_accessorType; } /** *

The type of accessor.

Currently, accessor type is restricted to * BILLING_TOKEN.

*/ inline bool AccessorTypeHasBeenSet() const { return m_accessorTypeHasBeenSet; } /** *

The type of accessor.

Currently, accessor type is restricted to * BILLING_TOKEN.

*/ inline void SetAccessorType(const AccessorType& value) { m_accessorTypeHasBeenSet = true; m_accessorType = value; } /** *

The type of accessor.

Currently, accessor type is restricted to * BILLING_TOKEN.

*/ inline void SetAccessorType(AccessorType&& value) { m_accessorTypeHasBeenSet = true; m_accessorType = std::move(value); } /** *

The type of accessor.

Currently, accessor type is restricted to * BILLING_TOKEN.

*/ inline CreateAccessorRequest& WithAccessorType(const AccessorType& value) { SetAccessorType(value); return *this;} /** *

The type of accessor.

Currently, accessor type is restricted to * BILLING_TOKEN.

*/ inline CreateAccessorRequest& WithAccessorType(AccessorType&& value) { SetAccessorType(std::move(value)); return *this;} /** *

Tags to assign to the Accessor.

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

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

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

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

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

Tags to assign to the Accessor.

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

Tags to assign to the Accessor.

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

Tags to assign to the Accessor.

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 CreateAccessorRequest& 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 Accessor.

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 CreateAccessorRequest& 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 Accessor.

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 CreateAccessorRequest& 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 Accessor.

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

Tags to assign to the Accessor.

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

Tags to assign to the Accessor.

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 CreateAccessorRequest& 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; AccessorType m_accessorType; bool m_accessorTypeHasBeenSet = false; Aws::Map m_tags; bool m_tagsHasBeenSet = false; }; } // namespace Model } // namespace ManagedBlockchain } // namespace Aws