AWS SDK for C++

AWS SDK for C++ Version 1.11.719

Loading...
Searching...
No Matches
Node.h
1
6#pragma once
7#include <aws/core/utils/DateTime.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/ssm/SSM_EXPORTS.h>
10#include <aws/ssm/model/NodeOwnerInfo.h>
11#include <aws/ssm/model/NodeType.h>
12
13#include <utility>
14
15namespace Aws {
16namespace Utils {
17namespace Json {
18class JsonValue;
19class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace SSM {
23namespace Model {
24
30class Node {
31 public:
32 AWS_SSM_API Node() = default;
33 AWS_SSM_API Node(Aws::Utils::Json::JsonView jsonValue);
34 AWS_SSM_API Node& operator=(Aws::Utils::Json::JsonView jsonValue);
36
38
41 inline const Aws::Utils::DateTime& GetCaptureTime() const { return m_captureTime; }
42 inline bool CaptureTimeHasBeenSet() const { return m_captureTimeHasBeenSet; }
43 template <typename CaptureTimeT = Aws::Utils::DateTime>
44 void SetCaptureTime(CaptureTimeT&& value) {
45 m_captureTimeHasBeenSet = true;
46 m_captureTime = std::forward<CaptureTimeT>(value);
47 }
48 template <typename CaptureTimeT = Aws::Utils::DateTime>
49 Node& WithCaptureTime(CaptureTimeT&& value) {
50 SetCaptureTime(std::forward<CaptureTimeT>(value));
51 return *this;
52 }
54
56
59 inline const Aws::String& GetId() const { return m_id; }
60 inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
61 template <typename IdT = Aws::String>
62 void SetId(IdT&& value) {
63 m_idHasBeenSet = true;
64 m_id = std::forward<IdT>(value);
65 }
66 template <typename IdT = Aws::String>
67 Node& WithId(IdT&& value) {
68 SetId(std::forward<IdT>(value));
69 return *this;
70 }
72
74
77 inline const NodeOwnerInfo& GetOwner() const { return m_owner; }
78 inline bool OwnerHasBeenSet() const { return m_ownerHasBeenSet; }
79 template <typename OwnerT = NodeOwnerInfo>
80 void SetOwner(OwnerT&& value) {
81 m_ownerHasBeenSet = true;
82 m_owner = std::forward<OwnerT>(value);
83 }
84 template <typename OwnerT = NodeOwnerInfo>
85 Node& WithOwner(OwnerT&& value) {
86 SetOwner(std::forward<OwnerT>(value));
87 return *this;
88 }
90
92
96 inline const Aws::String& GetRegion() const { return m_region; }
97 inline bool RegionHasBeenSet() const { return m_regionHasBeenSet; }
98 template <typename RegionT = Aws::String>
99 void SetRegion(RegionT&& value) {
100 m_regionHasBeenSet = true;
101 m_region = std::forward<RegionT>(value);
102 }
103 template <typename RegionT = Aws::String>
104 Node& WithRegion(RegionT&& value) {
105 SetRegion(std::forward<RegionT>(value));
106 return *this;
107 }
109
111
114 inline const NodeType& GetNodeType() const { return m_nodeType; }
115 inline bool NodeTypeHasBeenSet() const { return m_nodeTypeHasBeenSet; }
116 template <typename NodeTypeT = NodeType>
117 void SetNodeType(NodeTypeT&& value) {
118 m_nodeTypeHasBeenSet = true;
119 m_nodeType = std::forward<NodeTypeT>(value);
120 }
121 template <typename NodeTypeT = NodeType>
122 Node& WithNodeType(NodeTypeT&& value) {
123 SetNodeType(std::forward<NodeTypeT>(value));
124 return *this;
125 }
127 private:
128 Aws::Utils::DateTime m_captureTime{};
129
130 Aws::String m_id;
131
132 NodeOwnerInfo m_owner;
133
134 Aws::String m_region;
135
136 NodeType m_nodeType;
137 bool m_captureTimeHasBeenSet = false;
138 bool m_idHasBeenSet = false;
139 bool m_ownerHasBeenSet = false;
140 bool m_regionHasBeenSet = false;
141 bool m_nodeTypeHasBeenSet = false;
142};
143
144} // namespace Model
145} // namespace SSM
146} // namespace Aws
Node & WithCaptureTime(CaptureTimeT &&value)
Definition Node.h:49
Node & WithId(IdT &&value)
Definition Node.h:67
Node & WithRegion(RegionT &&value)
Definition Node.h:104
AWS_SSM_API Node & operator=(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetRegion() const
Definition Node.h:96
Node & WithOwner(OwnerT &&value)
Definition Node.h:85
const Aws::Utils::DateTime & GetCaptureTime() const
Definition Node.h:41
AWS_SSM_API Node()=default
AWS_SSM_API Node(Aws::Utils::Json::JsonView jsonValue)
bool CaptureTimeHasBeenSet() const
Definition Node.h:42
const NodeOwnerInfo & GetOwner() const
Definition Node.h:77
void SetNodeType(NodeTypeT &&value)
Definition Node.h:117
void SetCaptureTime(CaptureTimeT &&value)
Definition Node.h:44
void SetOwner(OwnerT &&value)
Definition Node.h:80
bool NodeTypeHasBeenSet() const
Definition Node.h:115
bool IdHasBeenSet() const
Definition Node.h:60
bool RegionHasBeenSet() const
Definition Node.h:97
bool OwnerHasBeenSet() const
Definition Node.h:78
void SetRegion(RegionT &&value)
Definition Node.h:99
const Aws::String & GetId() const
Definition Node.h:59
AWS_SSM_API Aws::Utils::Json::JsonValue Jsonize() const
void SetId(IdT &&value)
Definition Node.h:62
Node & WithNodeType(NodeTypeT &&value)
Definition Node.h:122
const NodeType & GetNodeType() const
Definition Node.h:114
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue