AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
CreateLegalHoldResult.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 <aws/backup/model/RecoveryPointSelection.h>
12#include <utility>
13
14namespace Aws
15{
16template<typename RESULT_TYPE>
17class AmazonWebServiceResult;
18
19namespace Utils
20{
21namespace Json
22{
23 class JsonValue;
24} // namespace Json
25} // namespace Utils
26namespace Backup
27{
28namespace Model
29{
31 {
32 public:
33 AWS_BACKUP_API CreateLegalHoldResult() = default;
36
37
39
42 inline const Aws::String& GetTitle() const { return m_title; }
43 template<typename TitleT = Aws::String>
44 void SetTitle(TitleT&& value) { m_titleHasBeenSet = true; m_title = std::forward<TitleT>(value); }
45 template<typename TitleT = Aws::String>
46 CreateLegalHoldResult& WithTitle(TitleT&& value) { SetTitle(std::forward<TitleT>(value)); return *this;}
48
50
53 inline LegalHoldStatus GetStatus() const { return m_status; }
54 inline void SetStatus(LegalHoldStatus value) { m_statusHasBeenSet = true; m_status = value; }
55 inline CreateLegalHoldResult& WithStatus(LegalHoldStatus value) { SetStatus(value); return *this;}
57
59
62 inline const Aws::String& GetDescription() const { return m_description; }
63 template<typename DescriptionT = Aws::String>
64 void SetDescription(DescriptionT&& value) { m_descriptionHasBeenSet = true; m_description = std::forward<DescriptionT>(value); }
65 template<typename DescriptionT = Aws::String>
66 CreateLegalHoldResult& WithDescription(DescriptionT&& value) { SetDescription(std::forward<DescriptionT>(value)); return *this;}
68
70
73 inline const Aws::String& GetLegalHoldId() const { return m_legalHoldId; }
74 template<typename LegalHoldIdT = Aws::String>
75 void SetLegalHoldId(LegalHoldIdT&& value) { m_legalHoldIdHasBeenSet = true; m_legalHoldId = std::forward<LegalHoldIdT>(value); }
76 template<typename LegalHoldIdT = Aws::String>
77 CreateLegalHoldResult& WithLegalHoldId(LegalHoldIdT&& value) { SetLegalHoldId(std::forward<LegalHoldIdT>(value)); return *this;}
79
81
84 inline const Aws::String& GetLegalHoldArn() const { return m_legalHoldArn; }
85 template<typename LegalHoldArnT = Aws::String>
86 void SetLegalHoldArn(LegalHoldArnT&& value) { m_legalHoldArnHasBeenSet = true; m_legalHoldArn = std::forward<LegalHoldArnT>(value); }
87 template<typename LegalHoldArnT = Aws::String>
88 CreateLegalHoldResult& WithLegalHoldArn(LegalHoldArnT&& value) { SetLegalHoldArn(std::forward<LegalHoldArnT>(value)); return *this;}
90
92
95 inline const Aws::Utils::DateTime& GetCreationDate() const { return m_creationDate; }
96 template<typename CreationDateT = Aws::Utils::DateTime>
97 void SetCreationDate(CreationDateT&& value) { m_creationDateHasBeenSet = true; m_creationDate = std::forward<CreationDateT>(value); }
98 template<typename CreationDateT = Aws::Utils::DateTime>
99 CreateLegalHoldResult& WithCreationDate(CreationDateT&& value) { SetCreationDate(std::forward<CreationDateT>(value)); return *this;}
101
103
107 inline const RecoveryPointSelection& GetRecoveryPointSelection() const { return m_recoveryPointSelection; }
108 template<typename RecoveryPointSelectionT = RecoveryPointSelection>
109 void SetRecoveryPointSelection(RecoveryPointSelectionT&& value) { m_recoveryPointSelectionHasBeenSet = true; m_recoveryPointSelection = std::forward<RecoveryPointSelectionT>(value); }
110 template<typename RecoveryPointSelectionT = RecoveryPointSelection>
111 CreateLegalHoldResult& WithRecoveryPointSelection(RecoveryPointSelectionT&& value) { SetRecoveryPointSelection(std::forward<RecoveryPointSelectionT>(value)); return *this;}
113
115
116 inline const Aws::String& GetRequestId() const { return m_requestId; }
117 template<typename RequestIdT = Aws::String>
118 void SetRequestId(RequestIdT&& value) { m_requestIdHasBeenSet = true; m_requestId = std::forward<RequestIdT>(value); }
119 template<typename RequestIdT = Aws::String>
120 CreateLegalHoldResult& WithRequestId(RequestIdT&& value) { SetRequestId(std::forward<RequestIdT>(value)); return *this;}
122 private:
123
124 Aws::String m_title;
125 bool m_titleHasBeenSet = false;
126
128 bool m_statusHasBeenSet = false;
129
130 Aws::String m_description;
131 bool m_descriptionHasBeenSet = false;
132
133 Aws::String m_legalHoldId;
134 bool m_legalHoldIdHasBeenSet = false;
135
136 Aws::String m_legalHoldArn;
137 bool m_legalHoldArnHasBeenSet = false;
138
139 Aws::Utils::DateTime m_creationDate{};
140 bool m_creationDateHasBeenSet = false;
141
142 RecoveryPointSelection m_recoveryPointSelection;
143 bool m_recoveryPointSelectionHasBeenSet = false;
144
145 Aws::String m_requestId;
146 bool m_requestIdHasBeenSet = false;
147 };
148
149} // namespace Model
150} // namespace Backup
151} // namespace Aws
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue