AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
ReplicationSet.h
1
6#pragma once
7#include <aws/ssm-incidents/SSMIncidents_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/DateTime.h>
10#include <aws/core/utils/memory/stl/AWSMap.h>
11#include <aws/ssm-incidents/model/ReplicationSetStatus.h>
12#include <aws/ssm-incidents/model/RegionInfo.h>
13#include <utility>
14
15namespace Aws
16{
17namespace Utils
18{
19namespace Json
20{
21 class JsonValue;
22 class JsonView;
23} // namespace Json
24} // namespace Utils
25namespace SSMIncidents
26{
27namespace Model
28{
29
38 {
39 public:
40 AWS_SSMINCIDENTS_API ReplicationSet();
41 AWS_SSMINCIDENTS_API ReplicationSet(Aws::Utils::Json::JsonView jsonValue);
42 AWS_SSMINCIDENTS_API ReplicationSet& operator=(Aws::Utils::Json::JsonView jsonValue);
43 AWS_SSMINCIDENTS_API Aws::Utils::Json::JsonValue Jsonize() const;
44
45
47
50 inline const Aws::String& GetArn() const{ return m_arn; }
51 inline bool ArnHasBeenSet() const { return m_arnHasBeenSet; }
52 inline void SetArn(const Aws::String& value) { m_arnHasBeenSet = true; m_arn = value; }
53 inline void SetArn(Aws::String&& value) { m_arnHasBeenSet = true; m_arn = std::move(value); }
54 inline void SetArn(const char* value) { m_arnHasBeenSet = true; m_arn.assign(value); }
55 inline ReplicationSet& WithArn(const Aws::String& value) { SetArn(value); return *this;}
56 inline ReplicationSet& WithArn(Aws::String&& value) { SetArn(std::move(value)); return *this;}
57 inline ReplicationSet& WithArn(const char* value) { SetArn(value); return *this;}
59
61
64 inline const Aws::String& GetCreatedBy() const{ return m_createdBy; }
65 inline bool CreatedByHasBeenSet() const { return m_createdByHasBeenSet; }
66 inline void SetCreatedBy(const Aws::String& value) { m_createdByHasBeenSet = true; m_createdBy = value; }
67 inline void SetCreatedBy(Aws::String&& value) { m_createdByHasBeenSet = true; m_createdBy = std::move(value); }
68 inline void SetCreatedBy(const char* value) { m_createdByHasBeenSet = true; m_createdBy.assign(value); }
69 inline ReplicationSet& WithCreatedBy(const Aws::String& value) { SetCreatedBy(value); return *this;}
70 inline ReplicationSet& WithCreatedBy(Aws::String&& value) { SetCreatedBy(std::move(value)); return *this;}
71 inline ReplicationSet& WithCreatedBy(const char* value) { SetCreatedBy(value); return *this;}
73
75
78 inline const Aws::Utils::DateTime& GetCreatedTime() const{ return m_createdTime; }
79 inline bool CreatedTimeHasBeenSet() const { return m_createdTimeHasBeenSet; }
80 inline void SetCreatedTime(const Aws::Utils::DateTime& value) { m_createdTimeHasBeenSet = true; m_createdTime = value; }
81 inline void SetCreatedTime(Aws::Utils::DateTime&& value) { m_createdTimeHasBeenSet = true; m_createdTime = std::move(value); }
82 inline ReplicationSet& WithCreatedTime(const Aws::Utils::DateTime& value) { SetCreatedTime(value); return *this;}
83 inline ReplicationSet& WithCreatedTime(Aws::Utils::DateTime&& value) { SetCreatedTime(std::move(value)); return *this;}
85
87
92 inline bool GetDeletionProtected() const{ return m_deletionProtected; }
93 inline bool DeletionProtectedHasBeenSet() const { return m_deletionProtectedHasBeenSet; }
94 inline void SetDeletionProtected(bool value) { m_deletionProtectedHasBeenSet = true; m_deletionProtected = value; }
95 inline ReplicationSet& WithDeletionProtected(bool value) { SetDeletionProtected(value); return *this;}
97
99
102 inline const Aws::String& GetLastModifiedBy() const{ return m_lastModifiedBy; }
103 inline bool LastModifiedByHasBeenSet() const { return m_lastModifiedByHasBeenSet; }
104 inline void SetLastModifiedBy(const Aws::String& value) { m_lastModifiedByHasBeenSet = true; m_lastModifiedBy = value; }
105 inline void SetLastModifiedBy(Aws::String&& value) { m_lastModifiedByHasBeenSet = true; m_lastModifiedBy = std::move(value); }
106 inline void SetLastModifiedBy(const char* value) { m_lastModifiedByHasBeenSet = true; m_lastModifiedBy.assign(value); }
107 inline ReplicationSet& WithLastModifiedBy(const Aws::String& value) { SetLastModifiedBy(value); return *this;}
108 inline ReplicationSet& WithLastModifiedBy(Aws::String&& value) { SetLastModifiedBy(std::move(value)); return *this;}
109 inline ReplicationSet& WithLastModifiedBy(const char* value) { SetLastModifiedBy(value); return *this;}
111
113
116 inline const Aws::Utils::DateTime& GetLastModifiedTime() const{ return m_lastModifiedTime; }
117 inline bool LastModifiedTimeHasBeenSet() const { return m_lastModifiedTimeHasBeenSet; }
118 inline void SetLastModifiedTime(const Aws::Utils::DateTime& value) { m_lastModifiedTimeHasBeenSet = true; m_lastModifiedTime = value; }
119 inline void SetLastModifiedTime(Aws::Utils::DateTime&& value) { m_lastModifiedTimeHasBeenSet = true; m_lastModifiedTime = std::move(value); }
121 inline ReplicationSet& WithLastModifiedTime(Aws::Utils::DateTime&& value) { SetLastModifiedTime(std::move(value)); return *this;}
123
125
129 inline const Aws::Map<Aws::String, RegionInfo>& GetRegionMap() const{ return m_regionMap; }
130 inline bool RegionMapHasBeenSet() const { return m_regionMapHasBeenSet; }
131 inline void SetRegionMap(const Aws::Map<Aws::String, RegionInfo>& value) { m_regionMapHasBeenSet = true; m_regionMap = value; }
132 inline void SetRegionMap(Aws::Map<Aws::String, RegionInfo>&& value) { m_regionMapHasBeenSet = true; m_regionMap = std::move(value); }
133 inline ReplicationSet& WithRegionMap(const Aws::Map<Aws::String, RegionInfo>& value) { SetRegionMap(value); return *this;}
134 inline ReplicationSet& WithRegionMap(Aws::Map<Aws::String, RegionInfo>&& value) { SetRegionMap(std::move(value)); return *this;}
135 inline ReplicationSet& AddRegionMap(const Aws::String& key, const RegionInfo& value) { m_regionMapHasBeenSet = true; m_regionMap.emplace(key, value); return *this; }
136 inline ReplicationSet& AddRegionMap(Aws::String&& key, const RegionInfo& value) { m_regionMapHasBeenSet = true; m_regionMap.emplace(std::move(key), value); return *this; }
137 inline ReplicationSet& AddRegionMap(const Aws::String& key, RegionInfo&& value) { m_regionMapHasBeenSet = true; m_regionMap.emplace(key, std::move(value)); return *this; }
138 inline ReplicationSet& AddRegionMap(Aws::String&& key, RegionInfo&& value) { m_regionMapHasBeenSet = true; m_regionMap.emplace(std::move(key), std::move(value)); return *this; }
139 inline ReplicationSet& AddRegionMap(const char* key, RegionInfo&& value) { m_regionMapHasBeenSet = true; m_regionMap.emplace(key, std::move(value)); return *this; }
140 inline ReplicationSet& AddRegionMap(const char* key, const RegionInfo& value) { m_regionMapHasBeenSet = true; m_regionMap.emplace(key, value); return *this; }
142
144
148 inline const ReplicationSetStatus& GetStatus() const{ return m_status; }
149 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
150 inline void SetStatus(const ReplicationSetStatus& value) { m_statusHasBeenSet = true; m_status = value; }
151 inline void SetStatus(ReplicationSetStatus&& value) { m_statusHasBeenSet = true; m_status = std::move(value); }
152 inline ReplicationSet& WithStatus(const ReplicationSetStatus& value) { SetStatus(value); return *this;}
153 inline ReplicationSet& WithStatus(ReplicationSetStatus&& value) { SetStatus(std::move(value)); return *this;}
155 private:
156
157 Aws::String m_arn;
158 bool m_arnHasBeenSet = false;
159
160 Aws::String m_createdBy;
161 bool m_createdByHasBeenSet = false;
162
163 Aws::Utils::DateTime m_createdTime;
164 bool m_createdTimeHasBeenSet = false;
165
166 bool m_deletionProtected;
167 bool m_deletionProtectedHasBeenSet = false;
168
169 Aws::String m_lastModifiedBy;
170 bool m_lastModifiedByHasBeenSet = false;
171
172 Aws::Utils::DateTime m_lastModifiedTime;
173 bool m_lastModifiedTimeHasBeenSet = false;
174
176 bool m_regionMapHasBeenSet = false;
177
178 ReplicationSetStatus m_status;
179 bool m_statusHasBeenSet = false;
180 };
181
182} // namespace Model
183} // namespace SSMIncidents
184} // namespace Aws
ReplicationSet & WithArn(const char *value)
void SetCreatedBy(const Aws::String &value)
ReplicationSet & WithCreatedTime(Aws::Utils::DateTime &&value)
ReplicationSet & WithLastModifiedBy(Aws::String &&value)
AWS_SSMINCIDENTS_API ReplicationSet(Aws::Utils::Json::JsonView jsonValue)
void SetRegionMap(const Aws::Map< Aws::String, RegionInfo > &value)
ReplicationSet & WithDeletionProtected(bool value)
ReplicationSet & WithStatus(const ReplicationSetStatus &value)
const Aws::Map< Aws::String, RegionInfo > & GetRegionMap() const
const Aws::String & GetLastModifiedBy() const
ReplicationSet & WithLastModifiedBy(const char *value)
const Aws::Utils::DateTime & GetCreatedTime() const
ReplicationSet & WithCreatedTime(const Aws::Utils::DateTime &value)
ReplicationSet & WithCreatedBy(Aws::String &&value)
const ReplicationSetStatus & GetStatus() const
void SetStatus(const ReplicationSetStatus &value)
const Aws::Utils::DateTime & GetLastModifiedTime() const
ReplicationSet & WithCreatedBy(const Aws::String &value)
ReplicationSet & WithCreatedBy(const char *value)
ReplicationSet & AddRegionMap(Aws::String &&key, RegionInfo &&value)
ReplicationSet & AddRegionMap(const Aws::String &key, const RegionInfo &value)
void SetRegionMap(Aws::Map< Aws::String, RegionInfo > &&value)
const Aws::String & GetCreatedBy() const
ReplicationSet & WithRegionMap(const Aws::Map< Aws::String, RegionInfo > &value)
ReplicationSet & WithRegionMap(Aws::Map< Aws::String, RegionInfo > &&value)
ReplicationSet & WithLastModifiedBy(const Aws::String &value)
AWS_SSMINCIDENTS_API Aws::Utils::Json::JsonValue Jsonize() const
const Aws::String & GetArn() const
void SetCreatedTime(const Aws::Utils::DateTime &value)
ReplicationSet & WithLastModifiedTime(Aws::Utils::DateTime &&value)
AWS_SSMINCIDENTS_API ReplicationSet & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetLastModifiedBy(const Aws::String &value)
ReplicationSet & AddRegionMap(const Aws::String &key, RegionInfo &&value)
void SetStatus(ReplicationSetStatus &&value)
ReplicationSet & AddRegionMap(const char *key, const RegionInfo &value)
void SetLastModifiedTime(Aws::Utils::DateTime &&value)
ReplicationSet & AddRegionMap(const char *key, RegionInfo &&value)
void SetCreatedTime(Aws::Utils::DateTime &&value)
void SetLastModifiedTime(const Aws::Utils::DateTime &value)
ReplicationSet & WithLastModifiedTime(const Aws::Utils::DateTime &value)
ReplicationSet & AddRegionMap(Aws::String &&key, const RegionInfo &value)
void SetCreatedBy(Aws::String &&value)
void SetLastModifiedBy(Aws::String &&value)
ReplicationSet & WithArn(Aws::String &&value)
ReplicationSet & WithStatus(ReplicationSetStatus &&value)
ReplicationSet & WithArn(const Aws::String &value)
void SetArn(const Aws::String &value)
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