AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
Node.h
1
6#pragma once
7#include <aws/ssm/SSM_EXPORTS.h>
8#include <aws/core/utils/DateTime.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/ssm/model/NodeOwnerInfo.h>
11#include <aws/ssm/model/NodeType.h>
12#include <utility>
13
14namespace Aws
15{
16namespace Utils
17{
18namespace Json
19{
20 class JsonValue;
21 class JsonView;
22} // namespace Json
23} // namespace Utils
24namespace SSM
25{
26namespace Model
27{
28
34 class Node
35 {
36 public:
37 AWS_SSM_API Node() = default;
38 AWS_SSM_API Node(Aws::Utils::Json::JsonView jsonValue);
39 AWS_SSM_API Node& operator=(Aws::Utils::Json::JsonView jsonValue);
41
42
44
47 inline const Aws::Utils::DateTime& GetCaptureTime() const { return m_captureTime; }
48 inline bool CaptureTimeHasBeenSet() const { return m_captureTimeHasBeenSet; }
49 template<typename CaptureTimeT = Aws::Utils::DateTime>
50 void SetCaptureTime(CaptureTimeT&& value) { m_captureTimeHasBeenSet = true; m_captureTime = std::forward<CaptureTimeT>(value); }
51 template<typename CaptureTimeT = Aws::Utils::DateTime>
52 Node& WithCaptureTime(CaptureTimeT&& value) { SetCaptureTime(std::forward<CaptureTimeT>(value)); return *this;}
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) { m_idHasBeenSet = true; m_id = std::forward<IdT>(value); }
63 template<typename IdT = Aws::String>
64 Node& WithId(IdT&& value) { SetId(std::forward<IdT>(value)); return *this;}
66
68
71 inline const NodeOwnerInfo& GetOwner() const { return m_owner; }
72 inline bool OwnerHasBeenSet() const { return m_ownerHasBeenSet; }
73 template<typename OwnerT = NodeOwnerInfo>
74 void SetOwner(OwnerT&& value) { m_ownerHasBeenSet = true; m_owner = std::forward<OwnerT>(value); }
75 template<typename OwnerT = NodeOwnerInfo>
76 Node& WithOwner(OwnerT&& value) { SetOwner(std::forward<OwnerT>(value)); return *this;}
78
80
84 inline const Aws::String& GetRegion() const { return m_region; }
85 inline bool RegionHasBeenSet() const { return m_regionHasBeenSet; }
86 template<typename RegionT = Aws::String>
87 void SetRegion(RegionT&& value) { m_regionHasBeenSet = true; m_region = std::forward<RegionT>(value); }
88 template<typename RegionT = Aws::String>
89 Node& WithRegion(RegionT&& value) { SetRegion(std::forward<RegionT>(value)); return *this;}
91
93
96 inline const NodeType& GetNodeType() const { return m_nodeType; }
97 inline bool NodeTypeHasBeenSet() const { return m_nodeTypeHasBeenSet; }
98 template<typename NodeTypeT = NodeType>
99 void SetNodeType(NodeTypeT&& value) { m_nodeTypeHasBeenSet = true; m_nodeType = std::forward<NodeTypeT>(value); }
100 template<typename NodeTypeT = NodeType>
101 Node& WithNodeType(NodeTypeT&& value) { SetNodeType(std::forward<NodeTypeT>(value)); return *this;}
103 private:
104
105 Aws::Utils::DateTime m_captureTime{};
106 bool m_captureTimeHasBeenSet = false;
107
108 Aws::String m_id;
109 bool m_idHasBeenSet = false;
110
111 NodeOwnerInfo m_owner;
112 bool m_ownerHasBeenSet = false;
113
114 Aws::String m_region;
115 bool m_regionHasBeenSet = false;
116
117 NodeType m_nodeType;
118 bool m_nodeTypeHasBeenSet = false;
119 };
120
121} // namespace Model
122} // namespace SSM
123} // namespace Aws
Node & WithCaptureTime(CaptureTimeT &&value)
Definition Node.h:52
Node & WithId(IdT &&value)
Definition Node.h:64
Node & WithRegion(RegionT &&value)
Definition Node.h:89
AWS_SSM_API Node & operator=(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetRegion() const
Definition Node.h:84
Node & WithOwner(OwnerT &&value)
Definition Node.h:76
const Aws::Utils::DateTime & GetCaptureTime() const
Definition Node.h:47
AWS_SSM_API Node()=default
AWS_SSM_API Node(Aws::Utils::Json::JsonView jsonValue)
bool CaptureTimeHasBeenSet() const
Definition Node.h:48
const NodeOwnerInfo & GetOwner() const
Definition Node.h:71
void SetNodeType(NodeTypeT &&value)
Definition Node.h:99
void SetCaptureTime(CaptureTimeT &&value)
Definition Node.h:50
void SetOwner(OwnerT &&value)
Definition Node.h:74
bool NodeTypeHasBeenSet() const
Definition Node.h:97
bool IdHasBeenSet() const
Definition Node.h:60
bool RegionHasBeenSet() const
Definition Node.h:85
bool OwnerHasBeenSet() const
Definition Node.h:72
void SetRegion(RegionT &&value)
Definition Node.h:87
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:101
const NodeType & GetNodeType() const
Definition Node.h:96
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue