AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetId(const Aws::String& value) { m_idHasBeenSet = true; m_id = value; }
51 inline void SetId(Aws::String&& value) { m_idHasBeenSet = true; m_id = std::move(value); }
52 inline void SetId(const char* value) { m_idHasBeenSet = true; m_id.assign(value); }
53 inline Operation& WithId(const Aws::String& value) { SetId(value); return *this;}
54 inline Operation& WithId(Aws::String&& value) { SetId(std::move(value)); return *this;}
55 inline Operation& WithId(const char* value) { SetId(value); return *this;}
57
59
62 inline const Aws::String& GetType() const{ return m_type; }
63 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
64 inline void SetType(const Aws::String& value) { m_typeHasBeenSet = true; m_type = value; }
65 inline void SetType(Aws::String&& value) { m_typeHasBeenSet = true; m_type = std::move(value); }
66 inline void SetType(const char* value) { m_typeHasBeenSet = true; m_type.assign(value); }
67 inline Operation& WithType(const Aws::String& value) { SetType(value); return *this;}
68 inline Operation& WithType(Aws::String&& value) { SetType(std::move(value)); return *this;}
69 inline Operation& WithType(const char* value) { SetType(value); return *this;}
71
73
76 inline const OperationStatus& GetStatus() const{ return m_status; }
77 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
78 inline void SetStatus(const OperationStatus& value) { m_statusHasBeenSet = true; m_status = value; }
79 inline void SetStatus(OperationStatus&& value) { m_statusHasBeenSet = true; m_status = std::move(value); }
80 inline Operation& WithStatus(const OperationStatus& value) { SetStatus(value); return *this;}
81 inline Operation& WithStatus(OperationStatus&& value) { SetStatus(std::move(value)); return *this;}
83
85
88 inline const Aws::String& GetStatusMessage() const{ return m_statusMessage; }
89 inline bool StatusMessageHasBeenSet() const { return m_statusMessageHasBeenSet; }
90 inline void SetStatusMessage(const Aws::String& value) { m_statusMessageHasBeenSet = true; m_statusMessage = value; }
91 inline void SetStatusMessage(Aws::String&& value) { m_statusMessageHasBeenSet = true; m_statusMessage = std::move(value); }
92 inline void SetStatusMessage(const char* value) { m_statusMessageHasBeenSet = true; m_statusMessage.assign(value); }
93 inline Operation& WithStatusMessage(const Aws::String& value) { SetStatusMessage(value); return *this;}
94 inline Operation& WithStatusMessage(Aws::String&& value) { SetStatusMessage(std::move(value)); return *this;}
95 inline Operation& WithStatusMessage(const char* value) { SetStatusMessage(value); return *this;}
97
99
102 inline const Aws::Map<Aws::String, Aws::String>& GetProperties() const{ return m_properties; }
103 inline bool PropertiesHasBeenSet() const { return m_propertiesHasBeenSet; }
104 inline void SetProperties(const Aws::Map<Aws::String, Aws::String>& value) { m_propertiesHasBeenSet = true; m_properties = value; }
105 inline void SetProperties(Aws::Map<Aws::String, Aws::String>&& value) { m_propertiesHasBeenSet = true; m_properties = std::move(value); }
106 inline Operation& WithProperties(const Aws::Map<Aws::String, Aws::String>& value) { SetProperties(value); return *this;}
107 inline Operation& WithProperties(Aws::Map<Aws::String, Aws::String>&& value) { SetProperties(std::move(value)); return *this;}
108 inline Operation& AddProperties(const Aws::String& key, const Aws::String& value) { m_propertiesHasBeenSet = true; m_properties.emplace(key, value); return *this; }
109 inline Operation& AddProperties(Aws::String&& key, const Aws::String& value) { m_propertiesHasBeenSet = true; m_properties.emplace(std::move(key), value); return *this; }
110 inline Operation& AddProperties(const Aws::String& key, Aws::String&& value) { m_propertiesHasBeenSet = true; m_properties.emplace(key, std::move(value)); return *this; }
111 inline Operation& AddProperties(Aws::String&& key, Aws::String&& value) { m_propertiesHasBeenSet = true; m_properties.emplace(std::move(key), std::move(value)); return *this; }
112 inline Operation& AddProperties(const char* key, Aws::String&& value) { m_propertiesHasBeenSet = true; m_properties.emplace(key, std::move(value)); return *this; }
113 inline Operation& AddProperties(Aws::String&& key, const char* value) { m_propertiesHasBeenSet = true; m_properties.emplace(std::move(key), value); return *this; }
114 inline Operation& AddProperties(const char* key, const char* value) { m_propertiesHasBeenSet = true; m_properties.emplace(key, value); return *this; }
116
118
121 inline const Aws::String& GetResourceType() const{ return m_resourceType; }
122 inline bool ResourceTypeHasBeenSet() const { return m_resourceTypeHasBeenSet; }
123 inline void SetResourceType(const Aws::String& value) { m_resourceTypeHasBeenSet = true; m_resourceType = value; }
124 inline void SetResourceType(Aws::String&& value) { m_resourceTypeHasBeenSet = true; m_resourceType = std::move(value); }
125 inline void SetResourceType(const char* value) { m_resourceTypeHasBeenSet = true; m_resourceType.assign(value); }
126 inline Operation& WithResourceType(const Aws::String& value) { SetResourceType(value); return *this;}
127 inline Operation& WithResourceType(Aws::String&& value) { SetResourceType(std::move(value)); return *this;}
128 inline Operation& WithResourceType(const char* value) { SetResourceType(value); return *this;}
130
132
135 inline const Aws::String& GetResourceId() const{ return m_resourceId; }
136 inline bool ResourceIdHasBeenSet() const { return m_resourceIdHasBeenSet; }
137 inline void SetResourceId(const Aws::String& value) { m_resourceIdHasBeenSet = true; m_resourceId = value; }
138 inline void SetResourceId(Aws::String&& value) { m_resourceIdHasBeenSet = true; m_resourceId = std::move(value); }
139 inline void SetResourceId(const char* value) { m_resourceIdHasBeenSet = true; m_resourceId.assign(value); }
140 inline Operation& WithResourceId(const Aws::String& value) { SetResourceId(value); return *this;}
141 inline Operation& WithResourceId(Aws::String&& value) { SetResourceId(std::move(value)); return *this;}
142 inline Operation& WithResourceId(const char* value) { SetResourceId(value); return *this;}
144
146
149 inline const Aws::String& GetResourceArn() const{ return m_resourceArn; }
150 inline bool ResourceArnHasBeenSet() const { return m_resourceArnHasBeenSet; }
151 inline void SetResourceArn(const Aws::String& value) { m_resourceArnHasBeenSet = true; m_resourceArn = value; }
152 inline void SetResourceArn(Aws::String&& value) { m_resourceArnHasBeenSet = true; m_resourceArn = std::move(value); }
153 inline void SetResourceArn(const char* value) { m_resourceArnHasBeenSet = true; m_resourceArn.assign(value); }
154 inline Operation& WithResourceArn(const Aws::String& value) { SetResourceArn(value); return *this;}
155 inline Operation& WithResourceArn(Aws::String&& value) { SetResourceArn(std::move(value)); return *this;}
156 inline Operation& WithResourceArn(const char* value) { SetResourceArn(value); return *this;}
158
160
163 inline const Aws::Utils::DateTime& GetStartTime() const{ return m_startTime; }
164 inline bool StartTimeHasBeenSet() const { return m_startTimeHasBeenSet; }
165 inline void SetStartTime(const Aws::Utils::DateTime& value) { m_startTimeHasBeenSet = true; m_startTime = value; }
166 inline void SetStartTime(Aws::Utils::DateTime&& value) { m_startTimeHasBeenSet = true; m_startTime = std::move(value); }
167 inline Operation& WithStartTime(const Aws::Utils::DateTime& value) { SetStartTime(value); return *this;}
168 inline Operation& WithStartTime(Aws::Utils::DateTime&& value) { SetStartTime(std::move(value)); return *this;}
170
172
175 inline const Aws::Utils::DateTime& GetEndTime() const{ return m_endTime; }
176 inline bool EndTimeHasBeenSet() const { return m_endTimeHasBeenSet; }
177 inline void SetEndTime(const Aws::Utils::DateTime& value) { m_endTimeHasBeenSet = true; m_endTime = value; }
178 inline void SetEndTime(Aws::Utils::DateTime&& value) { m_endTimeHasBeenSet = true; m_endTime = std::move(value); }
179 inline Operation& WithEndTime(const Aws::Utils::DateTime& value) { SetEndTime(value); return *this;}
180 inline Operation& WithEndTime(Aws::Utils::DateTime&& value) { SetEndTime(std::move(value)); return *this;}
182
184
187 inline const Aws::Utils::DateTime& GetLastUpdatedTime() const{ return m_lastUpdatedTime; }
188 inline bool LastUpdatedTimeHasBeenSet() const { return m_lastUpdatedTimeHasBeenSet; }
189 inline void SetLastUpdatedTime(const Aws::Utils::DateTime& value) { m_lastUpdatedTimeHasBeenSet = true; m_lastUpdatedTime = value; }
190 inline void SetLastUpdatedTime(Aws::Utils::DateTime&& value) { m_lastUpdatedTimeHasBeenSet = true; m_lastUpdatedTime = std::move(value); }
191 inline Operation& WithLastUpdatedTime(const Aws::Utils::DateTime& value) { SetLastUpdatedTime(value); return *this;}
192 inline Operation& WithLastUpdatedTime(Aws::Utils::DateTime&& value) { SetLastUpdatedTime(std::move(value)); return *this;}
194 private:
195
196 Aws::String m_id;
197 bool m_idHasBeenSet = false;
198
199 Aws::String m_type;
200 bool m_typeHasBeenSet = false;
201
202 OperationStatus m_status;
203 bool m_statusHasBeenSet = false;
204
205 Aws::String m_statusMessage;
206 bool m_statusMessageHasBeenSet = false;
207
209 bool m_propertiesHasBeenSet = false;
210
211 Aws::String m_resourceType;
212 bool m_resourceTypeHasBeenSet = false;
213
214 Aws::String m_resourceId;
215 bool m_resourceIdHasBeenSet = false;
216
217 Aws::String m_resourceArn;
218 bool m_resourceArnHasBeenSet = false;
219
220 Aws::Utils::DateTime m_startTime;
221 bool m_startTimeHasBeenSet = false;
222
223 Aws::Utils::DateTime m_endTime;
224 bool m_endTimeHasBeenSet = false;
225
226 Aws::Utils::DateTime m_lastUpdatedTime;
227 bool m_lastUpdatedTimeHasBeenSet = false;
228 };
229
230} // namespace Model
231} // namespace SsmSap
232} // namespace Aws
Operation & WithResourceId(const Aws::String &value)
Definition Operation.h:140
const Aws::String & GetResourceArn() const
Definition Operation.h:149
Operation & WithId(const Aws::String &value)
Definition Operation.h:53
Operation & WithLastUpdatedTime(Aws::Utils::DateTime &&value)
Definition Operation.h:192
void SetEndTime(const Aws::Utils::DateTime &value)
Definition Operation.h:177
Operation & WithLastUpdatedTime(const Aws::Utils::DateTime &value)
Definition Operation.h:191
bool ResourceIdHasBeenSet() const
Definition Operation.h:136
bool PropertiesHasBeenSet() const
Definition Operation.h:103
void SetResourceArn(Aws::String &&value)
Definition Operation.h:152
void SetEndTime(Aws::Utils::DateTime &&value)
Definition Operation.h:178
void SetType(const char *value)
Definition Operation.h:66
Operation & WithStatusMessage(const char *value)
Definition Operation.h:95
Operation & WithResourceType(const Aws::String &value)
Definition Operation.h:126
Operation & AddProperties(Aws::String &&key, const char *value)
Definition Operation.h:113
bool ResourceTypeHasBeenSet() const
Definition Operation.h:122
Operation & WithType(Aws::String &&value)
Definition Operation.h:68
void SetProperties(const Aws::Map< Aws::String, Aws::String > &value)
Definition Operation.h:104
Operation & WithEndTime(Aws::Utils::DateTime &&value)
Definition Operation.h:180
void SetResourceId(Aws::String &&value)
Definition Operation.h:138
Operation & WithType(const char *value)
Definition Operation.h:69
const Aws::Utils::DateTime & GetEndTime() const
Definition Operation.h:175
void SetResourceType(const char *value)
Definition Operation.h:125
void SetType(Aws::String &&value)
Definition Operation.h:65
const Aws::Utils::DateTime & GetStartTime() const
Definition Operation.h:163
void SetResourceArn(const Aws::String &value)
Definition Operation.h:151
void SetResourceArn(const char *value)
Definition Operation.h:153
const Aws::String & GetStatusMessage() const
Definition Operation.h:88
Operation & AddProperties(Aws::String &&key, const Aws::String &value)
Definition Operation.h:109
Operation & WithResourceType(Aws::String &&value)
Definition Operation.h:127
void SetId(Aws::String &&value)
Definition Operation.h:51
Operation & WithStartTime(Aws::Utils::DateTime &&value)
Definition Operation.h:168
void SetResourceType(Aws::String &&value)
Definition Operation.h:124
Operation & AddProperties(Aws::String &&key, Aws::String &&value)
Definition Operation.h:111
const Aws::Map< Aws::String, Aws::String > & GetProperties() const
Definition Operation.h:102
Operation & WithStatusMessage(Aws::String &&value)
Definition Operation.h:94
Operation & WithId(Aws::String &&value)
Definition Operation.h:54
bool StatusMessageHasBeenSet() const
Definition Operation.h:89
const Aws::String & GetId() const
Definition Operation.h:48
void SetResourceId(const Aws::String &value)
Definition Operation.h:137
Operation & AddProperties(const char *key, Aws::String &&value)
Definition Operation.h:112
void SetType(const Aws::String &value)
Definition Operation.h:64
AWS_SSMSAP_API Operation & operator=(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetResourceId() const
Definition Operation.h:135
Operation & WithResourceArn(const Aws::String &value)
Definition Operation.h:154
Operation & WithResourceId(Aws::String &&value)
Definition Operation.h:141
Operation & WithStatusMessage(const Aws::String &value)
Definition Operation.h:93
Operation & WithStartTime(const Aws::Utils::DateTime &value)
Definition Operation.h:167
void SetLastUpdatedTime(const Aws::Utils::DateTime &value)
Definition Operation.h:189
void SetStatusMessage(const char *value)
Definition Operation.h:92
Operation & WithResourceType(const char *value)
Definition Operation.h:128
const Aws::Utils::DateTime & GetLastUpdatedTime() const
Definition Operation.h:187
void SetStatusMessage(const Aws::String &value)
Definition Operation.h:90
void SetStatus(const OperationStatus &value)
Definition Operation.h:78
Operation & WithStatus(const OperationStatus &value)
Definition Operation.h:80
Operation & WithEndTime(const Aws::Utils::DateTime &value)
Definition Operation.h:179
Operation & WithStatus(OperationStatus &&value)
Definition Operation.h:81
void SetResourceId(const char *value)
Definition Operation.h:139
Operation & AddProperties(const Aws::String &key, Aws::String &&value)
Definition Operation.h:110
void SetProperties(Aws::Map< Aws::String, Aws::String > &&value)
Definition Operation.h:105
AWS_SSMSAP_API Aws::Utils::Json::JsonValue Jsonize() const
void SetResourceType(const Aws::String &value)
Definition Operation.h:123
AWS_SSMSAP_API Operation(Aws::Utils::Json::JsonView jsonValue)
Operation & WithProperties(Aws::Map< Aws::String, Aws::String > &&value)
Definition Operation.h:107
const Aws::String & GetResourceType() const
Definition Operation.h:121
void SetId(const Aws::String &value)
Definition Operation.h:50
void SetId(const char *value)
Definition Operation.h:52
const OperationStatus & GetStatus() const
Definition Operation.h:76
const Aws::String & GetType() const
Definition Operation.h:62
void SetStartTime(Aws::Utils::DateTime &&value)
Definition Operation.h:166
void SetStatusMessage(Aws::String &&value)
Definition Operation.h:91
Operation & WithResourceId(const char *value)
Definition Operation.h:142
Operation & WithProperties(const Aws::Map< Aws::String, Aws::String > &value)
Definition Operation.h:106
bool ResourceArnHasBeenSet() const
Definition Operation.h:150
Operation & AddProperties(const Aws::String &key, const Aws::String &value)
Definition Operation.h:108
void SetStatus(OperationStatus &&value)
Definition Operation.h:79
Operation & WithType(const Aws::String &value)
Definition Operation.h:67
Operation & WithResourceArn(const char *value)
Definition Operation.h:156
void SetLastUpdatedTime(Aws::Utils::DateTime &&value)
Definition Operation.h:190
void SetStartTime(const Aws::Utils::DateTime &value)
Definition Operation.h:165
Operation & WithId(const char *value)
Definition Operation.h:55
Operation & WithResourceArn(Aws::String &&value)
Definition Operation.h:155
bool LastUpdatedTimeHasBeenSet() const
Definition Operation.h:188
Operation & AddProperties(const char *key, const char *value)
Definition Operation.h:114
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