/** * 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 { /** *

A summary of accessor properties.

See Also:

AWS * API Reference

*/ class AccessorSummary { public: AWS_MANAGEDBLOCKCHAIN_API AccessorSummary(); AWS_MANAGEDBLOCKCHAIN_API AccessorSummary(Aws::Utils::Json::JsonView jsonValue); AWS_MANAGEDBLOCKCHAIN_API AccessorSummary& 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 AccessorSummary& WithId(const Aws::String& value) { SetId(value); return *this;} /** *

The unique identifier of the accessor.

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

The unique identifier of the accessor.

*/ inline AccessorSummary& 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 AccessorSummary& WithType(const AccessorType& value) { SetType(value); return *this;} /** *

The type of the accessor.

Currently accessor type is restricted * to BILLING_TOKEN.

*/ inline AccessorSummary& WithType(AccessorType&& value) { SetType(std::move(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 AccessorSummary& WithStatus(const AccessorStatus& value) { SetStatus(value); return *this;} /** *

The current status of the accessor.

*/ inline AccessorSummary& 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 AccessorSummary& WithCreationDate(const Aws::Utils::DateTime& value) { SetCreationDate(value); return *this;} /** *

The creation date and time of the accessor.

*/ inline AccessorSummary& 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 AccessorSummary& 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 AccessorSummary& 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 AccessorSummary& WithArn(const char* value) { SetArn(value); return *this;} private: Aws::String m_id; bool m_idHasBeenSet = false; AccessorType m_type; bool m_typeHasBeenSet = 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; }; } // namespace Model } // namespace ManagedBlockchain } // namespace Aws