AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
Operation.h
1
6#pragma once
7#include <aws/ssm-sap/SsmSap_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/ssm-sap/model/OperationStatus.h>
10#include <aws/core/utils/memory/stl/AWSMap.h>
11#include <aws/core/utils/DateTime.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 SsmSap
25{
26namespace Model
27{
28
36 {
37 public:
38 AWS_SSMSAP_API Operation() = default;
39 AWS_SSMSAP_API Operation(Aws::Utils::Json::JsonView jsonValue);
41 AWS_SSMSAP_API Aws::Utils::Json::JsonValue Jsonize() const;
42
43
45
48 inline const Aws::String& GetId() const { return m_id; }
49 inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
50 template<typename IdT = Aws::String>
51 void SetId(IdT&& value) { m_idHasBeenSet = true; m_id = std::forward<IdT>(value); }
52 template<typename IdT = Aws::String>
53 Operation& WithId(IdT&& value) { SetId(std::forward<IdT>(value)); return *this;}
55
57
60 inline const Aws::String& GetType() const { return m_type; }
61 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
62 template<typename TypeT = Aws::String>
63 void SetType(TypeT&& value) { m_typeHasBeenSet = true; m_type = std::forward<TypeT>(value); }
64 template<typename TypeT = Aws::String>
65 Operation& WithType(TypeT&& value) { SetType(std::forward<TypeT>(value)); return *this;}
67
69
72 inline OperationStatus GetStatus() const { return m_status; }
73 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
74 inline void SetStatus(OperationStatus value) { m_statusHasBeenSet = true; m_status = value; }
75 inline Operation& WithStatus(OperationStatus value) { SetStatus(value); return *this;}
77
79
82 inline const Aws::String& GetStatusMessage() const { return m_statusMessage; }
83 inline bool StatusMessageHasBeenSet() const { return m_statusMessageHasBeenSet; }
84 template<typename StatusMessageT = Aws::String>
85 void SetStatusMessage(StatusMessageT&& value) { m_statusMessageHasBeenSet = true; m_statusMessage = std::forward<StatusMessageT>(value); }
86 template<typename StatusMessageT = Aws::String>
87 Operation& WithStatusMessage(StatusMessageT&& value) { SetStatusMessage(std::forward<StatusMessageT>(value)); return *this;}
89
91
94 inline const Aws::Map<Aws::String, Aws::String>& GetProperties() const { return m_properties; }
95 inline bool PropertiesHasBeenSet() const { return m_propertiesHasBeenSet; }
96 template<typename PropertiesT = Aws::Map<Aws::String, Aws::String>>
97 void SetProperties(PropertiesT&& value) { m_propertiesHasBeenSet = true; m_properties = std::forward<PropertiesT>(value); }
98 template<typename PropertiesT = Aws::Map<Aws::String, Aws::String>>
99 Operation& WithProperties(PropertiesT&& value) { SetProperties(std::forward<PropertiesT>(value)); return *this;}
100 template<typename PropertiesKeyT = Aws::String, typename PropertiesValueT = Aws::String>
101 Operation& AddProperties(PropertiesKeyT&& key, PropertiesValueT&& value) {
102 m_propertiesHasBeenSet = true; m_properties.emplace(std::forward<PropertiesKeyT>(key), std::forward<PropertiesValueT>(value)); return *this;
103 }
105
107
110 inline const Aws::String& GetResourceType() const { return m_resourceType; }
111 inline bool ResourceTypeHasBeenSet() const { return m_resourceTypeHasBeenSet; }
112 template<typename ResourceTypeT = Aws::String>
113 void SetResourceType(ResourceTypeT&& value) { m_resourceTypeHasBeenSet = true; m_resourceType = std::forward<ResourceTypeT>(value); }
114 template<typename ResourceTypeT = Aws::String>
115 Operation& WithResourceType(ResourceTypeT&& value) { SetResourceType(std::forward<ResourceTypeT>(value)); return *this;}
117
119
122 inline const Aws::String& GetResourceId() const { return m_resourceId; }
123 inline bool ResourceIdHasBeenSet() const { return m_resourceIdHasBeenSet; }
124 template<typename ResourceIdT = Aws::String>
125 void SetResourceId(ResourceIdT&& value) { m_resourceIdHasBeenSet = true; m_resourceId = std::forward<ResourceIdT>(value); }
126 template<typename ResourceIdT = Aws::String>
127 Operation& WithResourceId(ResourceIdT&& value) { SetResourceId(std::forward<ResourceIdT>(value)); return *this;}
129
131
134 inline const Aws::String& GetResourceArn() const { return m_resourceArn; }
135 inline bool ResourceArnHasBeenSet() const { return m_resourceArnHasBeenSet; }
136 template<typename ResourceArnT = Aws::String>
137 void SetResourceArn(ResourceArnT&& value) { m_resourceArnHasBeenSet = true; m_resourceArn = std::forward<ResourceArnT>(value); }
138 template<typename ResourceArnT = Aws::String>
139 Operation& WithResourceArn(ResourceArnT&& value) { SetResourceArn(std::forward<ResourceArnT>(value)); return *this;}
141
143
146 inline const Aws::Utils::DateTime& GetStartTime() const { return m_startTime; }
147 inline bool StartTimeHasBeenSet() const { return m_startTimeHasBeenSet; }
148 template<typename StartTimeT = Aws::Utils::DateTime>
149 void SetStartTime(StartTimeT&& value) { m_startTimeHasBeenSet = true; m_startTime = std::forward<StartTimeT>(value); }
150 template<typename StartTimeT = Aws::Utils::DateTime>
151 Operation& WithStartTime(StartTimeT&& value) { SetStartTime(std::forward<StartTimeT>(value)); return *this;}
153
155
158 inline const Aws::Utils::DateTime& GetEndTime() const { return m_endTime; }
159 inline bool EndTimeHasBeenSet() const { return m_endTimeHasBeenSet; }
160 template<typename EndTimeT = Aws::Utils::DateTime>
161 void SetEndTime(EndTimeT&& value) { m_endTimeHasBeenSet = true; m_endTime = std::forward<EndTimeT>(value); }
162 template<typename EndTimeT = Aws::Utils::DateTime>
163 Operation& WithEndTime(EndTimeT&& value) { SetEndTime(std::forward<EndTimeT>(value)); return *this;}
165
167
170 inline const Aws::Utils::DateTime& GetLastUpdatedTime() const { return m_lastUpdatedTime; }
171 inline bool LastUpdatedTimeHasBeenSet() const { return m_lastUpdatedTimeHasBeenSet; }
172 template<typename LastUpdatedTimeT = Aws::Utils::DateTime>
173 void SetLastUpdatedTime(LastUpdatedTimeT&& value) { m_lastUpdatedTimeHasBeenSet = true; m_lastUpdatedTime = std::forward<LastUpdatedTimeT>(value); }
174 template<typename LastUpdatedTimeT = Aws::Utils::DateTime>
175 Operation& WithLastUpdatedTime(LastUpdatedTimeT&& value) { SetLastUpdatedTime(std::forward<LastUpdatedTimeT>(value)); return *this;}
177 private:
178
179 Aws::String m_id;
180 bool m_idHasBeenSet = false;
181
182 Aws::String m_type;
183 bool m_typeHasBeenSet = false;
184
186 bool m_statusHasBeenSet = false;
187
188 Aws::String m_statusMessage;
189 bool m_statusMessageHasBeenSet = false;
190
192 bool m_propertiesHasBeenSet = false;
193
194 Aws::String m_resourceType;
195 bool m_resourceTypeHasBeenSet = false;
196
197 Aws::String m_resourceId;
198 bool m_resourceIdHasBeenSet = false;
199
200 Aws::String m_resourceArn;
201 bool m_resourceArnHasBeenSet = false;
202
203 Aws::Utils::DateTime m_startTime{};
204 bool m_startTimeHasBeenSet = false;
205
206 Aws::Utils::DateTime m_endTime{};
207 bool m_endTimeHasBeenSet = false;
208
209 Aws::Utils::DateTime m_lastUpdatedTime{};
210 bool m_lastUpdatedTimeHasBeenSet = false;
211 };
212
213} // namespace Model
214} // namespace SsmSap
215} // namespace Aws
const Aws::String & GetResourceArn() const
Definition Operation.h:134
void SetResourceArn(ResourceArnT &&value)
Definition Operation.h:137
bool ResourceIdHasBeenSet() const
Definition Operation.h:123
bool PropertiesHasBeenSet() const
Definition Operation.h:95
bool ResourceTypeHasBeenSet() const
Definition Operation.h:111
void SetStartTime(StartTimeT &&value)
Definition Operation.h:149
const Aws::Utils::DateTime & GetEndTime() const
Definition Operation.h:158
void SetResourceType(ResourceTypeT &&value)
Definition Operation.h:113
Operation & WithId(IdT &&value)
Definition Operation.h:53
const Aws::Utils::DateTime & GetStartTime() const
Definition Operation.h:146
const Aws::String & GetStatusMessage() const
Definition Operation.h:82
OperationStatus GetStatus() const
Definition Operation.h:72
Operation & WithResourceType(ResourceTypeT &&value)
Definition Operation.h:115
const Aws::Map< Aws::String, Aws::String > & GetProperties() const
Definition Operation.h:94
Operation & WithType(TypeT &&value)
Definition Operation.h:65
bool StatusMessageHasBeenSet() const
Definition Operation.h:83
const Aws::String & GetId() const
Definition Operation.h:48
Operation & WithStartTime(StartTimeT &&value)
Definition Operation.h:151
void SetType(TypeT &&value)
Definition Operation.h:63
Operation & WithEndTime(EndTimeT &&value)
Definition Operation.h:163
AWS_SSMSAP_API Operation & operator=(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetResourceId() const
Definition Operation.h:122
void SetId(IdT &&value)
Definition Operation.h:51
void SetProperties(PropertiesT &&value)
Definition Operation.h:97
void SetStatusMessage(StatusMessageT &&value)
Definition Operation.h:85
Operation & WithLastUpdatedTime(LastUpdatedTimeT &&value)
Definition Operation.h:175
Operation & WithResourceId(ResourceIdT &&value)
Definition Operation.h:127
const Aws::Utils::DateTime & GetLastUpdatedTime() const
Definition Operation.h:170
Operation & WithProperties(PropertiesT &&value)
Definition Operation.h:99
Operation & WithStatusMessage(StatusMessageT &&value)
Definition Operation.h:87
void SetStatus(OperationStatus value)
Definition Operation.h:74
AWS_SSMSAP_API Aws::Utils::Json::JsonValue Jsonize() const
Operation & AddProperties(PropertiesKeyT &&key, PropertiesValueT &&value)
Definition Operation.h:101
AWS_SSMSAP_API Operation(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetResourceType() const
Definition Operation.h:110
void SetLastUpdatedTime(LastUpdatedTimeT &&value)
Definition Operation.h:173
const Aws::String & GetType() const
Definition Operation.h:60
Operation & WithStatus(OperationStatus value)
Definition Operation.h:75
void SetEndTime(EndTimeT &&value)
Definition Operation.h:161
bool ResourceArnHasBeenSet() const
Definition Operation.h:135
void SetResourceId(ResourceIdT &&value)
Definition Operation.h:125
AWS_SSMSAP_API Operation()=default
bool LastUpdatedTimeHasBeenSet() const
Definition Operation.h:171
Operation & WithResourceArn(ResourceArnT &&value)
Definition Operation.h:139
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue