This repository has been archived on 2025-09-14. You can view files and clone it, but cannot push or open issues or pull requests.
Files

248 lines
7.4 KiB
C++

/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/managedblockchain/ManagedBlockchain_EXPORTS.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <aws/managedblockchain/model/NodeStatus.h>
#include <aws/core/utils/DateTime.h>
#include <utility>
namespace Aws
{
namespace Utils
{
namespace Json
{
class JsonValue;
class JsonView;
} // namespace Json
} // namespace Utils
namespace ManagedBlockchain
{
namespace Model
{
/**
* <p>A summary of configuration properties for a peer node.</p><p><h3>See
* Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/managedblockchain-2018-09-24/NodeSummary">AWS
* API Reference</a></p>
*/
class AWS_MANAGEDBLOCKCHAIN_API NodeSummary
{
public:
NodeSummary();
NodeSummary(Aws::Utils::Json::JsonView jsonValue);
NodeSummary& operator=(Aws::Utils::Json::JsonView jsonValue);
Aws::Utils::Json::JsonValue Jsonize() const;
/**
* <p>The unique identifier of the node.</p>
*/
inline const Aws::String& GetId() const{ return m_id; }
/**
* <p>The unique identifier of the node.</p>
*/
inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
/**
* <p>The unique identifier of the node.</p>
*/
inline void SetId(const Aws::String& value) { m_idHasBeenSet = true; m_id = value; }
/**
* <p>The unique identifier of the node.</p>
*/
inline void SetId(Aws::String&& value) { m_idHasBeenSet = true; m_id = std::move(value); }
/**
* <p>The unique identifier of the node.</p>
*/
inline void SetId(const char* value) { m_idHasBeenSet = true; m_id.assign(value); }
/**
* <p>The unique identifier of the node.</p>
*/
inline NodeSummary& WithId(const Aws::String& value) { SetId(value); return *this;}
/**
* <p>The unique identifier of the node.</p>
*/
inline NodeSummary& WithId(Aws::String&& value) { SetId(std::move(value)); return *this;}
/**
* <p>The unique identifier of the node.</p>
*/
inline NodeSummary& WithId(const char* value) { SetId(value); return *this;}
/**
* <p>The status of the node.</p>
*/
inline const NodeStatus& GetStatus() const{ return m_status; }
/**
* <p>The status of the node.</p>
*/
inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
/**
* <p>The status of the node.</p>
*/
inline void SetStatus(const NodeStatus& value) { m_statusHasBeenSet = true; m_status = value; }
/**
* <p>The status of the node.</p>
*/
inline void SetStatus(NodeStatus&& value) { m_statusHasBeenSet = true; m_status = std::move(value); }
/**
* <p>The status of the node.</p>
*/
inline NodeSummary& WithStatus(const NodeStatus& value) { SetStatus(value); return *this;}
/**
* <p>The status of the node.</p>
*/
inline NodeSummary& WithStatus(NodeStatus&& value) { SetStatus(std::move(value)); return *this;}
/**
* <p>The date and time that the node was created.</p>
*/
inline const Aws::Utils::DateTime& GetCreationDate() const{ return m_creationDate; }
/**
* <p>The date and time that the node was created.</p>
*/
inline bool CreationDateHasBeenSet() const { return m_creationDateHasBeenSet; }
/**
* <p>The date and time that the node was created.</p>
*/
inline void SetCreationDate(const Aws::Utils::DateTime& value) { m_creationDateHasBeenSet = true; m_creationDate = value; }
/**
* <p>The date and time that the node was created.</p>
*/
inline void SetCreationDate(Aws::Utils::DateTime&& value) { m_creationDateHasBeenSet = true; m_creationDate = std::move(value); }
/**
* <p>The date and time that the node was created.</p>
*/
inline NodeSummary& WithCreationDate(const Aws::Utils::DateTime& value) { SetCreationDate(value); return *this;}
/**
* <p>The date and time that the node was created.</p>
*/
inline NodeSummary& WithCreationDate(Aws::Utils::DateTime&& value) { SetCreationDate(std::move(value)); return *this;}
/**
* <p>The Availability Zone in which the node exists.</p>
*/
inline const Aws::String& GetAvailabilityZone() const{ return m_availabilityZone; }
/**
* <p>The Availability Zone in which the node exists.</p>
*/
inline bool AvailabilityZoneHasBeenSet() const { return m_availabilityZoneHasBeenSet; }
/**
* <p>The Availability Zone in which the node exists.</p>
*/
inline void SetAvailabilityZone(const Aws::String& value) { m_availabilityZoneHasBeenSet = true; m_availabilityZone = value; }
/**
* <p>The Availability Zone in which the node exists.</p>
*/
inline void SetAvailabilityZone(Aws::String&& value) { m_availabilityZoneHasBeenSet = true; m_availabilityZone = std::move(value); }
/**
* <p>The Availability Zone in which the node exists.</p>
*/
inline void SetAvailabilityZone(const char* value) { m_availabilityZoneHasBeenSet = true; m_availabilityZone.assign(value); }
/**
* <p>The Availability Zone in which the node exists.</p>
*/
inline NodeSummary& WithAvailabilityZone(const Aws::String& value) { SetAvailabilityZone(value); return *this;}
/**
* <p>The Availability Zone in which the node exists.</p>
*/
inline NodeSummary& WithAvailabilityZone(Aws::String&& value) { SetAvailabilityZone(std::move(value)); return *this;}
/**
* <p>The Availability Zone in which the node exists.</p>
*/
inline NodeSummary& WithAvailabilityZone(const char* value) { SetAvailabilityZone(value); return *this;}
/**
* <p>The EC2 instance type for the node.</p>
*/
inline const Aws::String& GetInstanceType() const{ return m_instanceType; }
/**
* <p>The EC2 instance type for the node.</p>
*/
inline bool InstanceTypeHasBeenSet() const { return m_instanceTypeHasBeenSet; }
/**
* <p>The EC2 instance type for the node.</p>
*/
inline void SetInstanceType(const Aws::String& value) { m_instanceTypeHasBeenSet = true; m_instanceType = value; }
/**
* <p>The EC2 instance type for the node.</p>
*/
inline void SetInstanceType(Aws::String&& value) { m_instanceTypeHasBeenSet = true; m_instanceType = std::move(value); }
/**
* <p>The EC2 instance type for the node.</p>
*/
inline void SetInstanceType(const char* value) { m_instanceTypeHasBeenSet = true; m_instanceType.assign(value); }
/**
* <p>The EC2 instance type for the node.</p>
*/
inline NodeSummary& WithInstanceType(const Aws::String& value) { SetInstanceType(value); return *this;}
/**
* <p>The EC2 instance type for the node.</p>
*/
inline NodeSummary& WithInstanceType(Aws::String&& value) { SetInstanceType(std::move(value)); return *this;}
/**
* <p>The EC2 instance type for the node.</p>
*/
inline NodeSummary& WithInstanceType(const char* value) { SetInstanceType(value); return *this;}
private:
Aws::String m_id;
bool m_idHasBeenSet;
NodeStatus m_status;
bool m_statusHasBeenSet;
Aws::Utils::DateTime m_creationDate;
bool m_creationDateHasBeenSet;
Aws::String m_availabilityZone;
bool m_availabilityZoneHasBeenSet;
Aws::String m_instanceType;
bool m_instanceTypeHasBeenSet;
};
} // namespace Model
} // namespace ManagedBlockchain
} // namespace Aws