AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
LegalHold.h
1
6#pragma once
7#include <aws/backup/Backup_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/backup/model/LegalHoldStatus.h>
10#include <aws/core/utils/DateTime.h>
11#include <utility>
12
13namespace Aws
14{
15namespace Utils
16{
17namespace Json
18{
19 class JsonValue;
20 class JsonView;
21} // namespace Json
22} // namespace Utils
23namespace Backup
24{
25namespace Model
26{
27
40 {
41 public:
42 AWS_BACKUP_API LegalHold();
43 AWS_BACKUP_API LegalHold(Aws::Utils::Json::JsonView jsonValue);
45 AWS_BACKUP_API Aws::Utils::Json::JsonValue Jsonize() const;
46
47
49
52 inline const Aws::String& GetTitle() const{ return m_title; }
53 inline bool TitleHasBeenSet() const { return m_titleHasBeenSet; }
54 inline void SetTitle(const Aws::String& value) { m_titleHasBeenSet = true; m_title = value; }
55 inline void SetTitle(Aws::String&& value) { m_titleHasBeenSet = true; m_title = std::move(value); }
56 inline void SetTitle(const char* value) { m_titleHasBeenSet = true; m_title.assign(value); }
57 inline LegalHold& WithTitle(const Aws::String& value) { SetTitle(value); return *this;}
58 inline LegalHold& WithTitle(Aws::String&& value) { SetTitle(std::move(value)); return *this;}
59 inline LegalHold& WithTitle(const char* value) { SetTitle(value); return *this;}
61
63
66 inline const LegalHoldStatus& GetStatus() const{ return m_status; }
67 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
68 inline void SetStatus(const LegalHoldStatus& value) { m_statusHasBeenSet = true; m_status = value; }
69 inline void SetStatus(LegalHoldStatus&& value) { m_statusHasBeenSet = true; m_status = std::move(value); }
70 inline LegalHold& WithStatus(const LegalHoldStatus& value) { SetStatus(value); return *this;}
71 inline LegalHold& WithStatus(LegalHoldStatus&& value) { SetStatus(std::move(value)); return *this;}
73
75
78 inline const Aws::String& GetDescription() const{ return m_description; }
79 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
80 inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; }
81 inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); }
82 inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); }
83 inline LegalHold& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
84 inline LegalHold& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;}
85 inline LegalHold& WithDescription(const char* value) { SetDescription(value); return *this;}
87
89
92 inline const Aws::String& GetLegalHoldId() const{ return m_legalHoldId; }
93 inline bool LegalHoldIdHasBeenSet() const { return m_legalHoldIdHasBeenSet; }
94 inline void SetLegalHoldId(const Aws::String& value) { m_legalHoldIdHasBeenSet = true; m_legalHoldId = value; }
95 inline void SetLegalHoldId(Aws::String&& value) { m_legalHoldIdHasBeenSet = true; m_legalHoldId = std::move(value); }
96 inline void SetLegalHoldId(const char* value) { m_legalHoldIdHasBeenSet = true; m_legalHoldId.assign(value); }
97 inline LegalHold& WithLegalHoldId(const Aws::String& value) { SetLegalHoldId(value); return *this;}
98 inline LegalHold& WithLegalHoldId(Aws::String&& value) { SetLegalHoldId(std::move(value)); return *this;}
99 inline LegalHold& WithLegalHoldId(const char* value) { SetLegalHoldId(value); return *this;}
101
103
107 inline const Aws::String& GetLegalHoldArn() const{ return m_legalHoldArn; }
108 inline bool LegalHoldArnHasBeenSet() const { return m_legalHoldArnHasBeenSet; }
109 inline void SetLegalHoldArn(const Aws::String& value) { m_legalHoldArnHasBeenSet = true; m_legalHoldArn = value; }
110 inline void SetLegalHoldArn(Aws::String&& value) { m_legalHoldArnHasBeenSet = true; m_legalHoldArn = std::move(value); }
111 inline void SetLegalHoldArn(const char* value) { m_legalHoldArnHasBeenSet = true; m_legalHoldArn.assign(value); }
112 inline LegalHold& WithLegalHoldArn(const Aws::String& value) { SetLegalHoldArn(value); return *this;}
113 inline LegalHold& WithLegalHoldArn(Aws::String&& value) { SetLegalHoldArn(std::move(value)); return *this;}
114 inline LegalHold& WithLegalHoldArn(const char* value) { SetLegalHoldArn(value); return *this;}
116
118
121 inline const Aws::Utils::DateTime& GetCreationDate() const{ return m_creationDate; }
122 inline bool CreationDateHasBeenSet() const { return m_creationDateHasBeenSet; }
123 inline void SetCreationDate(const Aws::Utils::DateTime& value) { m_creationDateHasBeenSet = true; m_creationDate = value; }
124 inline void SetCreationDate(Aws::Utils::DateTime&& value) { m_creationDateHasBeenSet = true; m_creationDate = std::move(value); }
125 inline LegalHold& WithCreationDate(const Aws::Utils::DateTime& value) { SetCreationDate(value); return *this;}
126 inline LegalHold& WithCreationDate(Aws::Utils::DateTime&& value) { SetCreationDate(std::move(value)); return *this;}
128
130
133 inline const Aws::Utils::DateTime& GetCancellationDate() const{ return m_cancellationDate; }
134 inline bool CancellationDateHasBeenSet() const { return m_cancellationDateHasBeenSet; }
135 inline void SetCancellationDate(const Aws::Utils::DateTime& value) { m_cancellationDateHasBeenSet = true; m_cancellationDate = value; }
136 inline void SetCancellationDate(Aws::Utils::DateTime&& value) { m_cancellationDateHasBeenSet = true; m_cancellationDate = std::move(value); }
137 inline LegalHold& WithCancellationDate(const Aws::Utils::DateTime& value) { SetCancellationDate(value); return *this;}
138 inline LegalHold& WithCancellationDate(Aws::Utils::DateTime&& value) { SetCancellationDate(std::move(value)); return *this;}
140 private:
141
142 Aws::String m_title;
143 bool m_titleHasBeenSet = false;
144
145 LegalHoldStatus m_status;
146 bool m_statusHasBeenSet = false;
147
148 Aws::String m_description;
149 bool m_descriptionHasBeenSet = false;
150
151 Aws::String m_legalHoldId;
152 bool m_legalHoldIdHasBeenSet = false;
153
154 Aws::String m_legalHoldArn;
155 bool m_legalHoldArnHasBeenSet = false;
156
157 Aws::Utils::DateTime m_creationDate;
158 bool m_creationDateHasBeenSet = false;
159
160 Aws::Utils::DateTime m_cancellationDate;
161 bool m_cancellationDateHasBeenSet = false;
162 };
163
164} // namespace Model
165} // namespace Backup
166} // namespace Aws
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue