AWS SDK for C++

AWS SDK for C++ Version 1.11.756

Loading...
Searching...
No Matches
TieringConfiguration.h
1
6#pragma once
7#include <aws/backup/Backup_EXPORTS.h>
8#include <aws/backup/model/ResourceSelection.h>
9#include <aws/core/utils/DateTime.h>
10#include <aws/core/utils/memory/stl/AWSString.h>
11#include <aws/core/utils/memory/stl/AWSVector.h>
12
13#include <utility>
14
15namespace Aws {
16namespace Utils {
17namespace Json {
18class JsonValue;
19class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace Backup {
23namespace Model {
24
32 public:
33 AWS_BACKUP_API TieringConfiguration() = default;
36 AWS_BACKUP_API Aws::Utils::Json::JsonValue Jsonize() const;
37
39
44 inline const Aws::String& GetTieringConfigurationName() const { return m_tieringConfigurationName; }
45 inline bool TieringConfigurationNameHasBeenSet() const { return m_tieringConfigurationNameHasBeenSet; }
46 template <typename TieringConfigurationNameT = Aws::String>
47 void SetTieringConfigurationName(TieringConfigurationNameT&& value) {
48 m_tieringConfigurationNameHasBeenSet = true;
49 m_tieringConfigurationName = std::forward<TieringConfigurationNameT>(value);
50 }
51 template <typename TieringConfigurationNameT = Aws::String>
52 TieringConfiguration& WithTieringConfigurationName(TieringConfigurationNameT&& value) {
53 SetTieringConfigurationName(std::forward<TieringConfigurationNameT>(value));
54 return *this;
55 }
57
59
63 inline const Aws::String& GetTieringConfigurationArn() const { return m_tieringConfigurationArn; }
64 inline bool TieringConfigurationArnHasBeenSet() const { return m_tieringConfigurationArnHasBeenSet; }
65 template <typename TieringConfigurationArnT = Aws::String>
66 void SetTieringConfigurationArn(TieringConfigurationArnT&& value) {
67 m_tieringConfigurationArnHasBeenSet = true;
68 m_tieringConfigurationArn = std::forward<TieringConfigurationArnT>(value);
69 }
70 template <typename TieringConfigurationArnT = Aws::String>
71 TieringConfiguration& WithTieringConfigurationArn(TieringConfigurationArnT&& value) {
72 SetTieringConfigurationArn(std::forward<TieringConfigurationArnT>(value));
73 return *this;
74 }
76
78
82 inline const Aws::String& GetBackupVaultName() const { return m_backupVaultName; }
83 inline bool BackupVaultNameHasBeenSet() const { return m_backupVaultNameHasBeenSet; }
84 template <typename BackupVaultNameT = Aws::String>
85 void SetBackupVaultName(BackupVaultNameT&& value) {
86 m_backupVaultNameHasBeenSet = true;
87 m_backupVaultName = std::forward<BackupVaultNameT>(value);
88 }
89 template <typename BackupVaultNameT = Aws::String>
90 TieringConfiguration& WithBackupVaultName(BackupVaultNameT&& value) {
91 SetBackupVaultName(std::forward<BackupVaultNameT>(value));
92 return *this;
93 }
95
97
101 inline const Aws::Vector<ResourceSelection>& GetResourceSelection() const { return m_resourceSelection; }
102 inline bool ResourceSelectionHasBeenSet() const { return m_resourceSelectionHasBeenSet; }
103 template <typename ResourceSelectionT = Aws::Vector<ResourceSelection>>
104 void SetResourceSelection(ResourceSelectionT&& value) {
105 m_resourceSelectionHasBeenSet = true;
106 m_resourceSelection = std::forward<ResourceSelectionT>(value);
107 }
108 template <typename ResourceSelectionT = Aws::Vector<ResourceSelection>>
109 TieringConfiguration& WithResourceSelection(ResourceSelectionT&& value) {
110 SetResourceSelection(std::forward<ResourceSelectionT>(value));
111 return *this;
112 }
113 template <typename ResourceSelectionT = ResourceSelection>
114 TieringConfiguration& AddResourceSelection(ResourceSelectionT&& value) {
115 m_resourceSelectionHasBeenSet = true;
116 m_resourceSelection.emplace_back(std::forward<ResourceSelectionT>(value));
117 return *this;
118 }
120
122
126 inline const Aws::String& GetCreatorRequestId() const { return m_creatorRequestId; }
127 inline bool CreatorRequestIdHasBeenSet() const { return m_creatorRequestIdHasBeenSet; }
128 template <typename CreatorRequestIdT = Aws::String>
129 void SetCreatorRequestId(CreatorRequestIdT&& value) {
130 m_creatorRequestIdHasBeenSet = true;
131 m_creatorRequestId = std::forward<CreatorRequestIdT>(value);
132 }
133 template <typename CreatorRequestIdT = Aws::String>
134 TieringConfiguration& WithCreatorRequestId(CreatorRequestIdT&& value) {
135 SetCreatorRequestId(std::forward<CreatorRequestIdT>(value));
136 return *this;
137 }
139
141
147 inline const Aws::Utils::DateTime& GetCreationTime() const { return m_creationTime; }
148 inline bool CreationTimeHasBeenSet() const { return m_creationTimeHasBeenSet; }
149 template <typename CreationTimeT = Aws::Utils::DateTime>
150 void SetCreationTime(CreationTimeT&& value) {
151 m_creationTimeHasBeenSet = true;
152 m_creationTime = std::forward<CreationTimeT>(value);
153 }
154 template <typename CreationTimeT = Aws::Utils::DateTime>
155 TieringConfiguration& WithCreationTime(CreationTimeT&& value) {
156 SetCreationTime(std::forward<CreationTimeT>(value));
157 return *this;
158 }
160
162
168 inline const Aws::Utils::DateTime& GetLastUpdatedTime() const { return m_lastUpdatedTime; }
169 inline bool LastUpdatedTimeHasBeenSet() const { return m_lastUpdatedTimeHasBeenSet; }
170 template <typename LastUpdatedTimeT = Aws::Utils::DateTime>
171 void SetLastUpdatedTime(LastUpdatedTimeT&& value) {
172 m_lastUpdatedTimeHasBeenSet = true;
173 m_lastUpdatedTime = std::forward<LastUpdatedTimeT>(value);
174 }
175 template <typename LastUpdatedTimeT = Aws::Utils::DateTime>
176 TieringConfiguration& WithLastUpdatedTime(LastUpdatedTimeT&& value) {
177 SetLastUpdatedTime(std::forward<LastUpdatedTimeT>(value));
178 return *this;
179 }
181 private:
182 Aws::String m_tieringConfigurationName;
183
184 Aws::String m_tieringConfigurationArn;
185
186 Aws::String m_backupVaultName;
187
188 Aws::Vector<ResourceSelection> m_resourceSelection;
189
190 Aws::String m_creatorRequestId;
191
192 Aws::Utils::DateTime m_creationTime{};
193
194 Aws::Utils::DateTime m_lastUpdatedTime{};
195 bool m_tieringConfigurationNameHasBeenSet = false;
196 bool m_tieringConfigurationArnHasBeenSet = false;
197 bool m_backupVaultNameHasBeenSet = false;
198 bool m_resourceSelectionHasBeenSet = false;
199 bool m_creatorRequestIdHasBeenSet = false;
200 bool m_creationTimeHasBeenSet = false;
201 bool m_lastUpdatedTimeHasBeenSet = false;
202};
203
204} // namespace Model
205} // namespace Backup
206} // namespace Aws
TieringConfiguration & WithTieringConfigurationName(TieringConfigurationNameT &&value)
const Aws::Vector< ResourceSelection > & GetResourceSelection() const
AWS_BACKUP_API TieringConfiguration & operator=(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetCreatorRequestId() const
void SetLastUpdatedTime(LastUpdatedTimeT &&value)
const Aws::Utils::DateTime & GetLastUpdatedTime() const
TieringConfiguration & WithCreationTime(CreationTimeT &&value)
void SetCreatorRequestId(CreatorRequestIdT &&value)
TieringConfiguration & WithLastUpdatedTime(LastUpdatedTimeT &&value)
void SetTieringConfigurationName(TieringConfigurationNameT &&value)
const Aws::String & GetTieringConfigurationName() const
const Aws::String & GetBackupVaultName() const
const Aws::String & GetTieringConfigurationArn() const
TieringConfiguration & AddResourceSelection(ResourceSelectionT &&value)
void SetTieringConfigurationArn(TieringConfigurationArnT &&value)
AWS_BACKUP_API TieringConfiguration()=default
TieringConfiguration & WithBackupVaultName(BackupVaultNameT &&value)
TieringConfiguration & WithCreatorRequestId(CreatorRequestIdT &&value)
void SetResourceSelection(ResourceSelectionT &&value)
TieringConfiguration & WithResourceSelection(ResourceSelectionT &&value)
AWS_BACKUP_API Aws::Utils::Json::JsonValue Jsonize() const
TieringConfiguration & WithTieringConfigurationArn(TieringConfigurationArnT &&value)
AWS_BACKUP_API TieringConfiguration(Aws::Utils::Json::JsonView jsonValue)
void SetBackupVaultName(BackupVaultNameT &&value)
const Aws::Utils::DateTime & GetCreationTime() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue