/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #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 configuration properties for a node.

See Also:

* AWS * API Reference

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

The unique identifier of the node.

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

The unique identifier of the node.

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

The unique identifier of the node.

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

The unique identifier of the node.

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

The unique identifier of the node.

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

The unique identifier of the node.

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

The unique identifier of the node.

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

The unique identifier of the node.

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

The status of the node.

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

The status of the node.

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

The status of the node.

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

The status of the node.

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

The status of the node.

*/ inline NodeSummary& WithStatus(const NodeStatus& value) { SetStatus(value); return *this;} /** *

The status of the node.

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

The date and time that the node was created.

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

The date and time that the node was created.

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

The date and time that the node was created.

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

The date and time that the node was created.

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

The date and time that the node was created.

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

The date and time that the node was created.

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

The Availability Zone in which the node exists.

*/ inline const Aws::String& GetAvailabilityZone() const{ return m_availabilityZone; } /** *

The Availability Zone in which the node exists.

*/ inline bool AvailabilityZoneHasBeenSet() const { return m_availabilityZoneHasBeenSet; } /** *

The Availability Zone in which the node exists.

*/ inline void SetAvailabilityZone(const Aws::String& value) { m_availabilityZoneHasBeenSet = true; m_availabilityZone = value; } /** *

The Availability Zone in which the node exists.

*/ inline void SetAvailabilityZone(Aws::String&& value) { m_availabilityZoneHasBeenSet = true; m_availabilityZone = std::move(value); } /** *

The Availability Zone in which the node exists.

*/ inline void SetAvailabilityZone(const char* value) { m_availabilityZoneHasBeenSet = true; m_availabilityZone.assign(value); } /** *

The Availability Zone in which the node exists.

*/ inline NodeSummary& WithAvailabilityZone(const Aws::String& value) { SetAvailabilityZone(value); return *this;} /** *

The Availability Zone in which the node exists.

*/ inline NodeSummary& WithAvailabilityZone(Aws::String&& value) { SetAvailabilityZone(std::move(value)); return *this;} /** *

The Availability Zone in which the node exists.

*/ inline NodeSummary& WithAvailabilityZone(const char* value) { SetAvailabilityZone(value); return *this;} /** *

The EC2 instance type for the node.

*/ inline const Aws::String& GetInstanceType() const{ return m_instanceType; } /** *

The EC2 instance type for the node.

*/ inline bool InstanceTypeHasBeenSet() const { return m_instanceTypeHasBeenSet; } /** *

The EC2 instance type for the node.

*/ inline void SetInstanceType(const Aws::String& value) { m_instanceTypeHasBeenSet = true; m_instanceType = value; } /** *

The EC2 instance type for the node.

*/ inline void SetInstanceType(Aws::String&& value) { m_instanceTypeHasBeenSet = true; m_instanceType = std::move(value); } /** *

The EC2 instance type for the node.

*/ inline void SetInstanceType(const char* value) { m_instanceTypeHasBeenSet = true; m_instanceType.assign(value); } /** *

The EC2 instance type for the node.

*/ inline NodeSummary& WithInstanceType(const Aws::String& value) { SetInstanceType(value); return *this;} /** *

The EC2 instance type for the node.

*/ inline NodeSummary& WithInstanceType(Aws::String&& value) { SetInstanceType(std::move(value)); return *this;} /** *

The EC2 instance type for the node.

*/ inline NodeSummary& WithInstanceType(const char* value) { SetInstanceType(value); return *this;} /** *

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

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

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

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

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

*/ inline NodeSummary& WithArn(const char* value) { SetArn(value); return *this;} private: Aws::String m_id; bool m_idHasBeenSet = false; NodeStatus m_status; bool m_statusHasBeenSet = false; Aws::Utils::DateTime m_creationDate; bool m_creationDateHasBeenSet = false; Aws::String m_availabilityZone; bool m_availabilityZoneHasBeenSet = false; Aws::String m_instanceType; bool m_instanceTypeHasBeenSet = false; Aws::String m_arn; bool m_arnHasBeenSet = false; }; } // namespace Model } // namespace ManagedBlockchain } // namespace Aws