AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
Snapshot.h
1
6#pragma once
7#include <aws/fsx/FSx_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/DateTime.h>
10#include <aws/fsx/model/SnapshotLifecycle.h>
11#include <aws/fsx/model/LifecycleTransitionReason.h>
12#include <aws/core/utils/memory/stl/AWSVector.h>
13#include <aws/fsx/model/AdministrativeAction.h>
14#include <aws/fsx/model/Tag.h>
15#include <utility>
16
17namespace Aws
18{
19namespace Utils
20{
21namespace Json
22{
23 class JsonValue;
24 class JsonView;
25} // namespace Json
26} // namespace Utils
27namespace FSx
28{
29namespace Model
30{
31 class AdministrativeAction;
32
39 {
40 public:
41 AWS_FSX_API Snapshot();
42 AWS_FSX_API Snapshot(Aws::Utils::Json::JsonView jsonValue);
45
46
48
49 inline const Aws::String& GetResourceARN() const{ return m_resourceARN; }
50 inline bool ResourceARNHasBeenSet() const { return m_resourceARNHasBeenSet; }
51 inline void SetResourceARN(const Aws::String& value) { m_resourceARNHasBeenSet = true; m_resourceARN = value; }
52 inline void SetResourceARN(Aws::String&& value) { m_resourceARNHasBeenSet = true; m_resourceARN = std::move(value); }
53 inline void SetResourceARN(const char* value) { m_resourceARNHasBeenSet = true; m_resourceARN.assign(value); }
54 inline Snapshot& WithResourceARN(const Aws::String& value) { SetResourceARN(value); return *this;}
55 inline Snapshot& WithResourceARN(Aws::String&& value) { SetResourceARN(std::move(value)); return *this;}
56 inline Snapshot& WithResourceARN(const char* value) { SetResourceARN(value); return *this;}
58
60
63 inline const Aws::String& GetSnapshotId() const{ return m_snapshotId; }
64 inline bool SnapshotIdHasBeenSet() const { return m_snapshotIdHasBeenSet; }
65 inline void SetSnapshotId(const Aws::String& value) { m_snapshotIdHasBeenSet = true; m_snapshotId = value; }
66 inline void SetSnapshotId(Aws::String&& value) { m_snapshotIdHasBeenSet = true; m_snapshotId = std::move(value); }
67 inline void SetSnapshotId(const char* value) { m_snapshotIdHasBeenSet = true; m_snapshotId.assign(value); }
68 inline Snapshot& WithSnapshotId(const Aws::String& value) { SetSnapshotId(value); return *this;}
69 inline Snapshot& WithSnapshotId(Aws::String&& value) { SetSnapshotId(std::move(value)); return *this;}
70 inline Snapshot& WithSnapshotId(const char* value) { SetSnapshotId(value); return *this;}
72
74
77 inline const Aws::String& GetName() const{ return m_name; }
78 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
79 inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
80 inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
81 inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
82 inline Snapshot& WithName(const Aws::String& value) { SetName(value); return *this;}
83 inline Snapshot& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
84 inline Snapshot& WithName(const char* value) { SetName(value); return *this;}
86
88
91 inline const Aws::String& GetVolumeId() const{ return m_volumeId; }
92 inline bool VolumeIdHasBeenSet() const { return m_volumeIdHasBeenSet; }
93 inline void SetVolumeId(const Aws::String& value) { m_volumeIdHasBeenSet = true; m_volumeId = value; }
94 inline void SetVolumeId(Aws::String&& value) { m_volumeIdHasBeenSet = true; m_volumeId = std::move(value); }
95 inline void SetVolumeId(const char* value) { m_volumeIdHasBeenSet = true; m_volumeId.assign(value); }
96 inline Snapshot& WithVolumeId(const Aws::String& value) { SetVolumeId(value); return *this;}
97 inline Snapshot& WithVolumeId(Aws::String&& value) { SetVolumeId(std::move(value)); return *this;}
98 inline Snapshot& WithVolumeId(const char* value) { SetVolumeId(value); return *this;}
100
102
103 inline const Aws::Utils::DateTime& GetCreationTime() const{ return m_creationTime; }
104 inline bool CreationTimeHasBeenSet() const { return m_creationTimeHasBeenSet; }
105 inline void SetCreationTime(const Aws::Utils::DateTime& value) { m_creationTimeHasBeenSet = true; m_creationTime = value; }
106 inline void SetCreationTime(Aws::Utils::DateTime&& value) { m_creationTimeHasBeenSet = true; m_creationTime = std::move(value); }
107 inline Snapshot& WithCreationTime(const Aws::Utils::DateTime& value) { SetCreationTime(value); return *this;}
108 inline Snapshot& WithCreationTime(Aws::Utils::DateTime&& value) { SetCreationTime(std::move(value)); return *this;}
110
112
119 inline const SnapshotLifecycle& GetLifecycle() const{ return m_lifecycle; }
120 inline bool LifecycleHasBeenSet() const { return m_lifecycleHasBeenSet; }
121 inline void SetLifecycle(const SnapshotLifecycle& value) { m_lifecycleHasBeenSet = true; m_lifecycle = value; }
122 inline void SetLifecycle(SnapshotLifecycle&& value) { m_lifecycleHasBeenSet = true; m_lifecycle = std::move(value); }
123 inline Snapshot& WithLifecycle(const SnapshotLifecycle& value) { SetLifecycle(value); return *this;}
124 inline Snapshot& WithLifecycle(SnapshotLifecycle&& value) { SetLifecycle(std::move(value)); return *this;}
126
128
129 inline const LifecycleTransitionReason& GetLifecycleTransitionReason() const{ return m_lifecycleTransitionReason; }
130 inline bool LifecycleTransitionReasonHasBeenSet() const { return m_lifecycleTransitionReasonHasBeenSet; }
131 inline void SetLifecycleTransitionReason(const LifecycleTransitionReason& value) { m_lifecycleTransitionReasonHasBeenSet = true; m_lifecycleTransitionReason = value; }
132 inline void SetLifecycleTransitionReason(LifecycleTransitionReason&& value) { m_lifecycleTransitionReasonHasBeenSet = true; m_lifecycleTransitionReason = std::move(value); }
136
138
139 inline const Aws::Vector<Tag>& GetTags() const{ return m_tags; }
140 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
141 inline void SetTags(const Aws::Vector<Tag>& value) { m_tagsHasBeenSet = true; m_tags = value; }
142 inline void SetTags(Aws::Vector<Tag>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
143 inline Snapshot& WithTags(const Aws::Vector<Tag>& value) { SetTags(value); return *this;}
144 inline Snapshot& WithTags(Aws::Vector<Tag>&& value) { SetTags(std::move(value)); return *this;}
145 inline Snapshot& AddTags(const Tag& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; }
146 inline Snapshot& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; }
148
150
155 inline const Aws::Vector<AdministrativeAction>& GetAdministrativeActions() const{ return m_administrativeActions; }
156 inline bool AdministrativeActionsHasBeenSet() const { return m_administrativeActionsHasBeenSet; }
157 inline void SetAdministrativeActions(const Aws::Vector<AdministrativeAction>& value) { m_administrativeActionsHasBeenSet = true; m_administrativeActions = value; }
158 inline void SetAdministrativeActions(Aws::Vector<AdministrativeAction>&& value) { m_administrativeActionsHasBeenSet = true; m_administrativeActions = std::move(value); }
161 inline Snapshot& AddAdministrativeActions(const AdministrativeAction& value) { m_administrativeActionsHasBeenSet = true; m_administrativeActions.push_back(value); return *this; }
162 inline Snapshot& AddAdministrativeActions(AdministrativeAction&& value) { m_administrativeActionsHasBeenSet = true; m_administrativeActions.push_back(std::move(value)); return *this; }
164 private:
165
166 Aws::String m_resourceARN;
167 bool m_resourceARNHasBeenSet = false;
168
169 Aws::String m_snapshotId;
170 bool m_snapshotIdHasBeenSet = false;
171
172 Aws::String m_name;
173 bool m_nameHasBeenSet = false;
174
175 Aws::String m_volumeId;
176 bool m_volumeIdHasBeenSet = false;
177
178 Aws::Utils::DateTime m_creationTime;
179 bool m_creationTimeHasBeenSet = false;
180
181 SnapshotLifecycle m_lifecycle;
182 bool m_lifecycleHasBeenSet = false;
183
184 LifecycleTransitionReason m_lifecycleTransitionReason;
185 bool m_lifecycleTransitionReasonHasBeenSet = false;
186
187 Aws::Vector<Tag> m_tags;
188 bool m_tagsHasBeenSet = false;
189
190 Aws::Vector<AdministrativeAction> m_administrativeActions;
191 bool m_administrativeActionsHasBeenSet = false;
192 };
193
194} // namespace Model
195} // namespace FSx
196} // namespace Aws
void SetTags(const Aws::Vector< Tag > &value)
Definition Snapshot.h:141
void SetVolumeId(const Aws::String &value)
Definition Snapshot.h:93
void SetSnapshotId(Aws::String &&value)
Definition Snapshot.h:66
const Aws::String & GetName() const
Definition Snapshot.h:77
bool TagsHasBeenSet() const
Definition Snapshot.h:140
void SetVolumeId(Aws::String &&value)
Definition Snapshot.h:94
Snapshot & WithSnapshotId(const Aws::String &value)
Definition Snapshot.h:68
AWS_FSX_API Snapshot(Aws::Utils::Json::JsonView jsonValue)
void SetResourceARN(const Aws::String &value)
Definition Snapshot.h:51
const Aws::Utils::DateTime & GetCreationTime() const
Definition Snapshot.h:103
Snapshot & AddTags(Tag &&value)
Definition Snapshot.h:146
void SetAdministrativeActions(const Aws::Vector< AdministrativeAction > &value)
Definition Snapshot.h:157
const LifecycleTransitionReason & GetLifecycleTransitionReason() const
Definition Snapshot.h:129
Snapshot & WithResourceARN(Aws::String &&value)
Definition Snapshot.h:55
void SetName(Aws::String &&value)
Definition Snapshot.h:80
Snapshot & WithLifecycleTransitionReason(LifecycleTransitionReason &&value)
Definition Snapshot.h:134
Snapshot & WithSnapshotId(Aws::String &&value)
Definition Snapshot.h:69
Snapshot & WithAdministrativeActions(const Aws::Vector< AdministrativeAction > &value)
Definition Snapshot.h:159
void SetSnapshotId(const Aws::String &value)
Definition Snapshot.h:65
const Aws::Vector< AdministrativeAction > & GetAdministrativeActions() const
Definition Snapshot.h:155
void SetSnapshotId(const char *value)
Definition Snapshot.h:67
Snapshot & WithCreationTime(Aws::Utils::DateTime &&value)
Definition Snapshot.h:108
Snapshot & WithLifecycleTransitionReason(const LifecycleTransitionReason &value)
Definition Snapshot.h:133
bool AdministrativeActionsHasBeenSet() const
Definition Snapshot.h:156
void SetResourceARN(const char *value)
Definition Snapshot.h:53
bool SnapshotIdHasBeenSet() const
Definition Snapshot.h:64
Snapshot & AddAdministrativeActions(const AdministrativeAction &value)
Definition Snapshot.h:161
void SetName(const char *value)
Definition Snapshot.h:81
void SetCreationTime(const Aws::Utils::DateTime &value)
Definition Snapshot.h:105
Snapshot & WithName(Aws::String &&value)
Definition Snapshot.h:83
Snapshot & WithSnapshotId(const char *value)
Definition Snapshot.h:70
Snapshot & WithLifecycle(SnapshotLifecycle &&value)
Definition Snapshot.h:124
Snapshot & WithCreationTime(const Aws::Utils::DateTime &value)
Definition Snapshot.h:107
Snapshot & WithVolumeId(const Aws::String &value)
Definition Snapshot.h:96
Snapshot & AddAdministrativeActions(AdministrativeAction &&value)
Definition Snapshot.h:162
Snapshot & WithResourceARN(const Aws::String &value)
Definition Snapshot.h:54
bool LifecycleHasBeenSet() const
Definition Snapshot.h:120
Snapshot & WithVolumeId(Aws::String &&value)
Definition Snapshot.h:97
bool VolumeIdHasBeenSet() const
Definition Snapshot.h:92
void SetLifecycle(SnapshotLifecycle &&value)
Definition Snapshot.h:122
void SetLifecycle(const SnapshotLifecycle &value)
Definition Snapshot.h:121
Snapshot & WithName(const char *value)
Definition Snapshot.h:84
Snapshot & WithLifecycle(const SnapshotLifecycle &value)
Definition Snapshot.h:123
AWS_FSX_API Snapshot & operator=(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetResourceARN() const
Definition Snapshot.h:49
const SnapshotLifecycle & GetLifecycle() const
Definition Snapshot.h:119
Snapshot & WithAdministrativeActions(Aws::Vector< AdministrativeAction > &&value)
Definition Snapshot.h:160
bool LifecycleTransitionReasonHasBeenSet() const
Definition Snapshot.h:130
Snapshot & WithName(const Aws::String &value)
Definition Snapshot.h:82
void SetCreationTime(Aws::Utils::DateTime &&value)
Definition Snapshot.h:106
bool CreationTimeHasBeenSet() const
Definition Snapshot.h:104
Snapshot & WithTags(const Aws::Vector< Tag > &value)
Definition Snapshot.h:143
Snapshot & WithTags(Aws::Vector< Tag > &&value)
Definition Snapshot.h:144
bool ResourceARNHasBeenSet() const
Definition Snapshot.h:50
const Aws::String & GetVolumeId() const
Definition Snapshot.h:91
void SetLifecycleTransitionReason(const LifecycleTransitionReason &value)
Definition Snapshot.h:131
Snapshot & WithVolumeId(const char *value)
Definition Snapshot.h:98
void SetLifecycleTransitionReason(LifecycleTransitionReason &&value)
Definition Snapshot.h:132
void SetName(const Aws::String &value)
Definition Snapshot.h:79
void SetTags(Aws::Vector< Tag > &&value)
Definition Snapshot.h:142
void SetResourceARN(Aws::String &&value)
Definition Snapshot.h:52
void SetAdministrativeActions(Aws::Vector< AdministrativeAction > &&value)
Definition Snapshot.h:158
Snapshot & WithResourceARN(const char *value)
Definition Snapshot.h:56
Snapshot & AddTags(const Tag &value)
Definition Snapshot.h:145
bool NameHasBeenSet() const
Definition Snapshot.h:78
AWS_FSX_API Aws::Utils::Json::JsonValue Jsonize() const
void SetVolumeId(const char *value)
Definition Snapshot.h:95
const Aws::String & GetSnapshotId() const
Definition Snapshot.h:63
const Aws::Vector< Tag > & GetTags() const
Definition Snapshot.h:139
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue