AWS SDK for C++

AWS SDK for C++ Version 1.11.607

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() = default;
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 template<typename TitleT = Aws::String>
55 void SetTitle(TitleT&& value) { m_titleHasBeenSet = true; m_title = std::forward<TitleT>(value); }
56 template<typename TitleT = Aws::String>
57 LegalHold& WithTitle(TitleT&& value) { SetTitle(std::forward<TitleT>(value)); return *this;}
59
61
64 inline LegalHoldStatus GetStatus() const { return m_status; }
65 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
66 inline void SetStatus(LegalHoldStatus value) { m_statusHasBeenSet = true; m_status = value; }
67 inline LegalHold& WithStatus(LegalHoldStatus value) { SetStatus(value); return *this;}
69
71
74 inline const Aws::String& GetDescription() const { return m_description; }
75 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
76 template<typename DescriptionT = Aws::String>
77 void SetDescription(DescriptionT&& value) { m_descriptionHasBeenSet = true; m_description = std::forward<DescriptionT>(value); }
78 template<typename DescriptionT = Aws::String>
79 LegalHold& WithDescription(DescriptionT&& value) { SetDescription(std::forward<DescriptionT>(value)); return *this;}
81
83
86 inline const Aws::String& GetLegalHoldId() const { return m_legalHoldId; }
87 inline bool LegalHoldIdHasBeenSet() const { return m_legalHoldIdHasBeenSet; }
88 template<typename LegalHoldIdT = Aws::String>
89 void SetLegalHoldId(LegalHoldIdT&& value) { m_legalHoldIdHasBeenSet = true; m_legalHoldId = std::forward<LegalHoldIdT>(value); }
90 template<typename LegalHoldIdT = Aws::String>
91 LegalHold& WithLegalHoldId(LegalHoldIdT&& value) { SetLegalHoldId(std::forward<LegalHoldIdT>(value)); return *this;}
93
95
99 inline const Aws::String& GetLegalHoldArn() const { return m_legalHoldArn; }
100 inline bool LegalHoldArnHasBeenSet() const { return m_legalHoldArnHasBeenSet; }
101 template<typename LegalHoldArnT = Aws::String>
102 void SetLegalHoldArn(LegalHoldArnT&& value) { m_legalHoldArnHasBeenSet = true; m_legalHoldArn = std::forward<LegalHoldArnT>(value); }
103 template<typename LegalHoldArnT = Aws::String>
104 LegalHold& WithLegalHoldArn(LegalHoldArnT&& value) { SetLegalHoldArn(std::forward<LegalHoldArnT>(value)); return *this;}
106
108
111 inline const Aws::Utils::DateTime& GetCreationDate() const { return m_creationDate; }
112 inline bool CreationDateHasBeenSet() const { return m_creationDateHasBeenSet; }
113 template<typename CreationDateT = Aws::Utils::DateTime>
114 void SetCreationDate(CreationDateT&& value) { m_creationDateHasBeenSet = true; m_creationDate = std::forward<CreationDateT>(value); }
115 template<typename CreationDateT = Aws::Utils::DateTime>
116 LegalHold& WithCreationDate(CreationDateT&& value) { SetCreationDate(std::forward<CreationDateT>(value)); return *this;}
118
120
123 inline const Aws::Utils::DateTime& GetCancellationDate() const { return m_cancellationDate; }
124 inline bool CancellationDateHasBeenSet() const { return m_cancellationDateHasBeenSet; }
125 template<typename CancellationDateT = Aws::Utils::DateTime>
126 void SetCancellationDate(CancellationDateT&& value) { m_cancellationDateHasBeenSet = true; m_cancellationDate = std::forward<CancellationDateT>(value); }
127 template<typename CancellationDateT = Aws::Utils::DateTime>
128 LegalHold& WithCancellationDate(CancellationDateT&& value) { SetCancellationDate(std::forward<CancellationDateT>(value)); return *this;}
130 private:
131
132 Aws::String m_title;
133 bool m_titleHasBeenSet = false;
134
136 bool m_statusHasBeenSet = false;
137
138 Aws::String m_description;
139 bool m_descriptionHasBeenSet = false;
140
141 Aws::String m_legalHoldId;
142 bool m_legalHoldIdHasBeenSet = false;
143
144 Aws::String m_legalHoldArn;
145 bool m_legalHoldArnHasBeenSet = false;
146
147 Aws::Utils::DateTime m_creationDate{};
148 bool m_creationDateHasBeenSet = false;
149
150 Aws::Utils::DateTime m_cancellationDate{};
151 bool m_cancellationDateHasBeenSet = false;
152 };
153
154} // namespace Model
155} // namespace Backup
156} // namespace Aws
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue