AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
NodeSummary.h
1
6#pragma once
7#include <aws/managedblockchain/ManagedBlockchain_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/managedblockchain/model/NodeStatus.h>
10#include <aws/core/utils/DateTime.h>
11#include <utility>
12
13namespace Aws
14{
15namespace Utils
16{
17namespace Json
18{
19 class JsonValue;
20 class JsonView;
21} // namespace Json
22} // namespace Utils
23namespace ManagedBlockchain
24{
25namespace Model
26{
27
35 {
36 public:
37 AWS_MANAGEDBLOCKCHAIN_API NodeSummary();
38 AWS_MANAGEDBLOCKCHAIN_API NodeSummary(Aws::Utils::Json::JsonView jsonValue);
39 AWS_MANAGEDBLOCKCHAIN_API NodeSummary& operator=(Aws::Utils::Json::JsonView jsonValue);
40 AWS_MANAGEDBLOCKCHAIN_API Aws::Utils::Json::JsonValue Jsonize() const;
41
42
44
47 inline const Aws::String& GetId() const{ return m_id; }
48 inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
49 inline void SetId(const Aws::String& value) { m_idHasBeenSet = true; m_id = value; }
50 inline void SetId(Aws::String&& value) { m_idHasBeenSet = true; m_id = std::move(value); }
51 inline void SetId(const char* value) { m_idHasBeenSet = true; m_id.assign(value); }
52 inline NodeSummary& WithId(const Aws::String& value) { SetId(value); return *this;}
53 inline NodeSummary& WithId(Aws::String&& value) { SetId(std::move(value)); return *this;}
54 inline NodeSummary& WithId(const char* value) { SetId(value); return *this;}
56
58
61 inline const NodeStatus& GetStatus() const{ return m_status; }
62 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
63 inline void SetStatus(const NodeStatus& value) { m_statusHasBeenSet = true; m_status = value; }
64 inline void SetStatus(NodeStatus&& value) { m_statusHasBeenSet = true; m_status = std::move(value); }
65 inline NodeSummary& WithStatus(const NodeStatus& value) { SetStatus(value); return *this;}
66 inline NodeSummary& WithStatus(NodeStatus&& value) { SetStatus(std::move(value)); return *this;}
68
70
73 inline const Aws::Utils::DateTime& GetCreationDate() const{ return m_creationDate; }
74 inline bool CreationDateHasBeenSet() const { return m_creationDateHasBeenSet; }
75 inline void SetCreationDate(const Aws::Utils::DateTime& value) { m_creationDateHasBeenSet = true; m_creationDate = value; }
76 inline void SetCreationDate(Aws::Utils::DateTime&& value) { m_creationDateHasBeenSet = true; m_creationDate = std::move(value); }
77 inline NodeSummary& WithCreationDate(const Aws::Utils::DateTime& value) { SetCreationDate(value); return *this;}
78 inline NodeSummary& WithCreationDate(Aws::Utils::DateTime&& value) { SetCreationDate(std::move(value)); return *this;}
80
82
85 inline const Aws::String& GetAvailabilityZone() const{ return m_availabilityZone; }
86 inline bool AvailabilityZoneHasBeenSet() const { return m_availabilityZoneHasBeenSet; }
87 inline void SetAvailabilityZone(const Aws::String& value) { m_availabilityZoneHasBeenSet = true; m_availabilityZone = value; }
88 inline void SetAvailabilityZone(Aws::String&& value) { m_availabilityZoneHasBeenSet = true; m_availabilityZone = std::move(value); }
89 inline void SetAvailabilityZone(const char* value) { m_availabilityZoneHasBeenSet = true; m_availabilityZone.assign(value); }
90 inline NodeSummary& WithAvailabilityZone(const Aws::String& value) { SetAvailabilityZone(value); return *this;}
91 inline NodeSummary& WithAvailabilityZone(Aws::String&& value) { SetAvailabilityZone(std::move(value)); return *this;}
92 inline NodeSummary& WithAvailabilityZone(const char* value) { SetAvailabilityZone(value); return *this;}
94
96
99 inline const Aws::String& GetInstanceType() const{ return m_instanceType; }
100 inline bool InstanceTypeHasBeenSet() const { return m_instanceTypeHasBeenSet; }
101 inline void SetInstanceType(const Aws::String& value) { m_instanceTypeHasBeenSet = true; m_instanceType = value; }
102 inline void SetInstanceType(Aws::String&& value) { m_instanceTypeHasBeenSet = true; m_instanceType = std::move(value); }
103 inline void SetInstanceType(const char* value) { m_instanceTypeHasBeenSet = true; m_instanceType.assign(value); }
104 inline NodeSummary& WithInstanceType(const Aws::String& value) { SetInstanceType(value); return *this;}
105 inline NodeSummary& WithInstanceType(Aws::String&& value) { SetInstanceType(std::move(value)); return *this;}
106 inline NodeSummary& WithInstanceType(const char* value) { SetInstanceType(value); return *this;}
108
110
117 inline const Aws::String& GetArn() const{ return m_arn; }
118 inline bool ArnHasBeenSet() const { return m_arnHasBeenSet; }
119 inline void SetArn(const Aws::String& value) { m_arnHasBeenSet = true; m_arn = value; }
120 inline void SetArn(Aws::String&& value) { m_arnHasBeenSet = true; m_arn = std::move(value); }
121 inline void SetArn(const char* value) { m_arnHasBeenSet = true; m_arn.assign(value); }
122 inline NodeSummary& WithArn(const Aws::String& value) { SetArn(value); return *this;}
123 inline NodeSummary& WithArn(Aws::String&& value) { SetArn(std::move(value)); return *this;}
124 inline NodeSummary& WithArn(const char* value) { SetArn(value); return *this;}
126 private:
127
128 Aws::String m_id;
129 bool m_idHasBeenSet = false;
130
131 NodeStatus m_status;
132 bool m_statusHasBeenSet = false;
133
134 Aws::Utils::DateTime m_creationDate;
135 bool m_creationDateHasBeenSet = false;
136
137 Aws::String m_availabilityZone;
138 bool m_availabilityZoneHasBeenSet = false;
139
140 Aws::String m_instanceType;
141 bool m_instanceTypeHasBeenSet = false;
142
143 Aws::String m_arn;
144 bool m_arnHasBeenSet = false;
145 };
146
147} // namespace Model
148} // namespace ManagedBlockchain
149} // namespace Aws
NodeSummary & WithId(const char *value)
Definition NodeSummary.h:54
NodeSummary & WithId(Aws::String &&value)
Definition NodeSummary.h:53
void SetAvailabilityZone(const char *value)
Definition NodeSummary.h:89
NodeSummary & WithInstanceType(const Aws::String &value)
void SetAvailabilityZone(const Aws::String &value)
Definition NodeSummary.h:87
NodeSummary & WithInstanceType(const char *value)
void SetId(const Aws::String &value)
Definition NodeSummary.h:49
NodeSummary & WithInstanceType(Aws::String &&value)
void SetCreationDate(Aws::Utils::DateTime &&value)
Definition NodeSummary.h:76
void SetCreationDate(const Aws::Utils::DateTime &value)
Definition NodeSummary.h:75
AWS_MANAGEDBLOCKCHAIN_API Aws::Utils::Json::JsonValue Jsonize() const
NodeSummary & WithAvailabilityZone(const Aws::String &value)
Definition NodeSummary.h:90
void SetInstanceType(const Aws::String &value)
NodeSummary & WithAvailabilityZone(const char *value)
Definition NodeSummary.h:92
void SetStatus(const NodeStatus &value)
Definition NodeSummary.h:63
void SetArn(const Aws::String &value)
const Aws::Utils::DateTime & GetCreationDate() const
Definition NodeSummary.h:73
AWS_MANAGEDBLOCKCHAIN_API NodeSummary()
NodeSummary & WithArn(Aws::String &&value)
NodeSummary & WithAvailabilityZone(Aws::String &&value)
Definition NodeSummary.h:91
void SetAvailabilityZone(Aws::String &&value)
Definition NodeSummary.h:88
const NodeStatus & GetStatus() const
Definition NodeSummary.h:61
NodeSummary & WithArn(const Aws::String &value)
const Aws::String & GetArn() const
NodeSummary & WithStatus(const NodeStatus &value)
Definition NodeSummary.h:65
NodeSummary & WithCreationDate(const Aws::Utils::DateTime &value)
Definition NodeSummary.h:77
AWS_MANAGEDBLOCKCHAIN_API NodeSummary(Aws::Utils::Json::JsonView jsonValue)
void SetInstanceType(Aws::String &&value)
const Aws::String & GetInstanceType() const
Definition NodeSummary.h:99
const Aws::String & GetAvailabilityZone() const
Definition NodeSummary.h:85
NodeSummary & WithId(const Aws::String &value)
Definition NodeSummary.h:52
AWS_MANAGEDBLOCKCHAIN_API NodeSummary & operator=(Aws::Utils::Json::JsonView jsonValue)
NodeSummary & WithCreationDate(Aws::Utils::DateTime &&value)
Definition NodeSummary.h:78
const Aws::String & GetId() const
Definition NodeSummary.h:47
NodeSummary & WithStatus(NodeStatus &&value)
Definition NodeSummary.h:66
NodeSummary & WithArn(const char *value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue