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

The properties of the Accessor.

See Also:

AWS * API Reference

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

The unique identifier of the accessor.

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

The unique identifier of the accessor.

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

The unique identifier of the accessor.

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

The unique identifier of the accessor.

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

The unique identifier of the accessor.

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

The unique identifier of the accessor.

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

The unique identifier of the accessor.

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

The unique identifier of the accessor.

*/ inline Accessor& WithId(const char* value) { SetId(value); return *this;} /** *

The type of the accessor.

Currently, accessor type is * restricted to BILLING_TOKEN.

*/ inline const AccessorType& GetType() const{ return m_type; } /** *

The type of the accessor.

Currently, accessor type is * restricted to BILLING_TOKEN.

*/ inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; } /** *

The type of the accessor.

Currently, accessor type is * restricted to BILLING_TOKEN.

*/ inline void SetType(const AccessorType& value) { m_typeHasBeenSet = true; m_type = value; } /** *

The type of the accessor.

Currently, accessor type is * restricted to BILLING_TOKEN.

*/ inline void SetType(AccessorType&& value) { m_typeHasBeenSet = true; m_type = std::move(value); } /** *

The type of the accessor.

Currently, accessor type is * restricted to BILLING_TOKEN.

*/ inline Accessor& WithType(const AccessorType& value) { SetType(value); return *this;} /** *

The type of the accessor.

Currently, accessor type is * restricted to BILLING_TOKEN.

*/ inline Accessor& WithType(AccessorType&& value) { SetType(std::move(value)); return *this;} /** *

The billing token is a property of the accessor. Use this token to make * Ethereum API calls to your Ethereum node. The billing token is used to track * your accessor object for billing Ethereum API requests made to your Ethereum * nodes.

*/ inline const Aws::String& GetBillingToken() const{ return m_billingToken; } /** *

The billing token is a property of the accessor. Use this token to make * Ethereum API calls to your Ethereum node. The billing token is used to track * your accessor object for billing Ethereum API requests made to your Ethereum * nodes.

*/ inline bool BillingTokenHasBeenSet() const { return m_billingTokenHasBeenSet; } /** *

The billing token is a property of the accessor. Use this token to make * Ethereum API calls to your Ethereum node. The billing token is used to track * your accessor object for billing Ethereum API requests made to your Ethereum * nodes.

*/ inline void SetBillingToken(const Aws::String& value) { m_billingTokenHasBeenSet = true; m_billingToken = value; } /** *

The billing token is a property of the accessor. Use this token to make * Ethereum API calls to your Ethereum node. The billing token is used to track * your accessor object for billing Ethereum API requests made to your Ethereum * nodes.

*/ inline void SetBillingToken(Aws::String&& value) { m_billingTokenHasBeenSet = true; m_billingToken = std::move(value); } /** *

The billing token is a property of the accessor. Use this token to make * Ethereum API calls to your Ethereum node. The billing token is used to track * your accessor object for billing Ethereum API requests made to your Ethereum * nodes.

*/ inline void SetBillingToken(const char* value) { m_billingTokenHasBeenSet = true; m_billingToken.assign(value); } /** *

The billing token is a property of the accessor. Use this token to make * Ethereum API calls to your Ethereum node. The billing token is used to track * your accessor object for billing Ethereum API requests made to your Ethereum * nodes.

*/ inline Accessor& WithBillingToken(const Aws::String& value) { SetBillingToken(value); return *this;} /** *

The billing token is a property of the accessor. Use this token to make * Ethereum API calls to your Ethereum node. The billing token is used to track * your accessor object for billing Ethereum API requests made to your Ethereum * nodes.

*/ inline Accessor& WithBillingToken(Aws::String&& value) { SetBillingToken(std::move(value)); return *this;} /** *

The billing token is a property of the accessor. Use this token to make * Ethereum API calls to your Ethereum node. The billing token is used to track * your accessor object for billing Ethereum API requests made to your Ethereum * nodes.

*/ inline Accessor& WithBillingToken(const char* value) { SetBillingToken(value); return *this;} /** *

The current status of the accessor.

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

The current status of the accessor.

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

The current status of the accessor.

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

The current status of the accessor.

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

The current status of the accessor.

*/ inline Accessor& WithStatus(const AccessorStatus& value) { SetStatus(value); return *this;} /** *

The current status of the accessor.

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

The creation date and time of the accessor.

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

The creation date and time of the accessor.

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

The creation date and time of the accessor.

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

The creation date and time of the accessor.

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

The creation date and time of the accessor.

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

The creation date and time of the accessor.

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

The Amazon Resource Name (ARN) of the accessor. 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 accessor. 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 accessor. 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 accessor. 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 accessor. 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 accessor. For more information about * ARNs and their format, see Amazon * Resource Names (ARNs) in the Amazon Web Services General * Reference.

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

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

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

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

*/ inline Accessor& WithArn(const char* value) { SetArn(value); return *this;} /** *

The tags assigned to the Accessor.

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; } /** *

The tags assigned to the Accessor.

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; } /** *

The tags assigned to the Accessor.

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; } /** *

The tags assigned to the Accessor.

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); } /** *

The tags assigned to the Accessor.

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

The tags assigned to the Accessor.

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

The tags assigned to the Accessor.

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

The tags assigned to the Accessor.

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

The tags assigned to the Accessor.

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

The tags assigned to the Accessor.

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

The tags assigned to the Accessor.

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

The tags assigned to the Accessor.

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

The tags assigned to the Accessor.

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 Accessor& AddTags(const char* key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; } private: Aws::String m_id; bool m_idHasBeenSet = false; AccessorType m_type; bool m_typeHasBeenSet = false; Aws::String m_billingToken; bool m_billingTokenHasBeenSet = false; AccessorStatus m_status; bool m_statusHasBeenSet = false; Aws::Utils::DateTime m_creationDate; bool m_creationDateHasBeenSet = false; Aws::String m_arn; bool m_arnHasBeenSet = false; Aws::Map m_tags; bool m_tagsHasBeenSet = false; }; } // namespace Model } // namespace ManagedBlockchain } // namespace Aws