AWS SDK for C++

AWS SDK for C++ Version 1.11.756

Loading...
Searching...
No Matches
LegalHold.h
1
6#pragma once
7#include <aws/backup/Backup_EXPORTS.h>
8#include <aws/backup/model/LegalHoldStatus.h>
9#include <aws/core/utils/DateTime.h>
10#include <aws/core/utils/memory/stl/AWSString.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Utils {
16namespace Json {
17class JsonValue;
18class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace Backup {
22namespace Model {
23
35class LegalHold {
36 public:
37 AWS_BACKUP_API LegalHold() = default;
38 AWS_BACKUP_API LegalHold(Aws::Utils::Json::JsonView jsonValue);
40 AWS_BACKUP_API Aws::Utils::Json::JsonValue Jsonize() const;
41
43
46 inline const Aws::String& GetTitle() const { return m_title; }
47 inline bool TitleHasBeenSet() const { return m_titleHasBeenSet; }
48 template <typename TitleT = Aws::String>
49 void SetTitle(TitleT&& value) {
50 m_titleHasBeenSet = true;
51 m_title = std::forward<TitleT>(value);
52 }
53 template <typename TitleT = Aws::String>
54 LegalHold& WithTitle(TitleT&& value) {
55 SetTitle(std::forward<TitleT>(value));
56 return *this;
57 }
59
61
64 inline LegalHoldStatus GetStatus() const { return m_status; }
65 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
66 inline void SetStatus(LegalHoldStatus value) {
67 m_statusHasBeenSet = true;
68 m_status = value;
69 }
71 SetStatus(value);
72 return *this;
73 }
75
77
80 inline const Aws::String& GetDescription() const { return m_description; }
81 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
82 template <typename DescriptionT = Aws::String>
83 void SetDescription(DescriptionT&& value) {
84 m_descriptionHasBeenSet = true;
85 m_description = std::forward<DescriptionT>(value);
86 }
87 template <typename DescriptionT = Aws::String>
88 LegalHold& WithDescription(DescriptionT&& value) {
89 SetDescription(std::forward<DescriptionT>(value));
90 return *this;
91 }
93
95
98 inline const Aws::String& GetLegalHoldId() const { return m_legalHoldId; }
99 inline bool LegalHoldIdHasBeenSet() const { return m_legalHoldIdHasBeenSet; }
100 template <typename LegalHoldIdT = Aws::String>
101 void SetLegalHoldId(LegalHoldIdT&& value) {
102 m_legalHoldIdHasBeenSet = true;
103 m_legalHoldId = std::forward<LegalHoldIdT>(value);
104 }
105 template <typename LegalHoldIdT = Aws::String>
106 LegalHold& WithLegalHoldId(LegalHoldIdT&& value) {
107 SetLegalHoldId(std::forward<LegalHoldIdT>(value));
108 return *this;
109 }
111
113
117 inline const Aws::String& GetLegalHoldArn() const { return m_legalHoldArn; }
118 inline bool LegalHoldArnHasBeenSet() const { return m_legalHoldArnHasBeenSet; }
119 template <typename LegalHoldArnT = Aws::String>
120 void SetLegalHoldArn(LegalHoldArnT&& value) {
121 m_legalHoldArnHasBeenSet = true;
122 m_legalHoldArn = std::forward<LegalHoldArnT>(value);
123 }
124 template <typename LegalHoldArnT = Aws::String>
125 LegalHold& WithLegalHoldArn(LegalHoldArnT&& value) {
126 SetLegalHoldArn(std::forward<LegalHoldArnT>(value));
127 return *this;
128 }
130
132
135 inline const Aws::Utils::DateTime& GetCreationDate() const { return m_creationDate; }
136 inline bool CreationDateHasBeenSet() const { return m_creationDateHasBeenSet; }
137 template <typename CreationDateT = Aws::Utils::DateTime>
138 void SetCreationDate(CreationDateT&& value) {
139 m_creationDateHasBeenSet = true;
140 m_creationDate = std::forward<CreationDateT>(value);
141 }
142 template <typename CreationDateT = Aws::Utils::DateTime>
143 LegalHold& WithCreationDate(CreationDateT&& value) {
144 SetCreationDate(std::forward<CreationDateT>(value));
145 return *this;
146 }
148
150
153 inline const Aws::Utils::DateTime& GetCancellationDate() const { return m_cancellationDate; }
154 inline bool CancellationDateHasBeenSet() const { return m_cancellationDateHasBeenSet; }
155 template <typename CancellationDateT = Aws::Utils::DateTime>
156 void SetCancellationDate(CancellationDateT&& value) {
157 m_cancellationDateHasBeenSet = true;
158 m_cancellationDate = std::forward<CancellationDateT>(value);
159 }
160 template <typename CancellationDateT = Aws::Utils::DateTime>
161 LegalHold& WithCancellationDate(CancellationDateT&& value) {
162 SetCancellationDate(std::forward<CancellationDateT>(value));
163 return *this;
164 }
166 private:
167 Aws::String m_title;
168
170
171 Aws::String m_description;
172
173 Aws::String m_legalHoldId;
174
175 Aws::String m_legalHoldArn;
176
177 Aws::Utils::DateTime m_creationDate{};
178
179 Aws::Utils::DateTime m_cancellationDate{};
180 bool m_titleHasBeenSet = false;
181 bool m_statusHasBeenSet = false;
182 bool m_descriptionHasBeenSet = false;
183 bool m_legalHoldIdHasBeenSet = false;
184 bool m_legalHoldArnHasBeenSet = false;
185 bool m_creationDateHasBeenSet = false;
186 bool m_cancellationDateHasBeenSet = false;
187};
188
189} // namespace Model
190} // namespace Backup
191} // namespace Aws
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue