AWS SDK for C++

AWS SDK for C++ Version 1.11.751

Loading...
Searching...
No Matches
CreateLegalHoldRequest.h
1
6#pragma once
7#include <aws/backup/BackupRequest.h>
8#include <aws/backup/Backup_EXPORTS.h>
9#include <aws/backup/model/RecoveryPointSelection.h>
10#include <aws/core/utils/UUID.h>
11#include <aws/core/utils/memory/stl/AWSMap.h>
12#include <aws/core/utils/memory/stl/AWSString.h>
13
14#include <utility>
15
16namespace Aws {
17namespace Backup {
18namespace Model {
19
23 public:
24 AWS_BACKUP_API CreateLegalHoldRequest() = default;
25
26 // Service request name is the Operation name which will send this request out,
27 // each operation should has unique request name, so that we can get operation's name from this request.
28 // Note: this is not true for response, multiple operations may have the same response name,
29 // so we can not get operation's name from response.
30 inline virtual const char* GetServiceRequestName() const override { return "CreateLegalHold"; }
31
32 AWS_BACKUP_API Aws::String SerializePayload() const override;
33
35
38 inline const Aws::String& GetTitle() const { return m_title; }
39 inline bool TitleHasBeenSet() const { return m_titleHasBeenSet; }
40 template <typename TitleT = Aws::String>
41 void SetTitle(TitleT&& value) {
42 m_titleHasBeenSet = true;
43 m_title = std::forward<TitleT>(value);
44 }
45 template <typename TitleT = Aws::String>
47 SetTitle(std::forward<TitleT>(value));
48 return *this;
49 }
51
53
56 inline const Aws::String& GetDescription() const { return m_description; }
57 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
58 template <typename DescriptionT = Aws::String>
59 void SetDescription(DescriptionT&& value) {
60 m_descriptionHasBeenSet = true;
61 m_description = std::forward<DescriptionT>(value);
62 }
63 template <typename DescriptionT = Aws::String>
64 CreateLegalHoldRequest& WithDescription(DescriptionT&& value) {
65 SetDescription(std::forward<DescriptionT>(value));
66 return *this;
67 }
69
71
76 inline const Aws::String& GetIdempotencyToken() const { return m_idempotencyToken; }
77 inline bool IdempotencyTokenHasBeenSet() const { return m_idempotencyTokenHasBeenSet; }
78 template <typename IdempotencyTokenT = Aws::String>
79 void SetIdempotencyToken(IdempotencyTokenT&& value) {
80 m_idempotencyTokenHasBeenSet = true;
81 m_idempotencyToken = std::forward<IdempotencyTokenT>(value);
82 }
83 template <typename IdempotencyTokenT = Aws::String>
84 CreateLegalHoldRequest& WithIdempotencyToken(IdempotencyTokenT&& value) {
85 SetIdempotencyToken(std::forward<IdempotencyTokenT>(value));
86 return *this;
87 }
89
91
95 inline const RecoveryPointSelection& GetRecoveryPointSelection() const { return m_recoveryPointSelection; }
96 inline bool RecoveryPointSelectionHasBeenSet() const { return m_recoveryPointSelectionHasBeenSet; }
97 template <typename RecoveryPointSelectionT = RecoveryPointSelection>
98 void SetRecoveryPointSelection(RecoveryPointSelectionT&& value) {
99 m_recoveryPointSelectionHasBeenSet = true;
100 m_recoveryPointSelection = std::forward<RecoveryPointSelectionT>(value);
101 }
102 template <typename RecoveryPointSelectionT = RecoveryPointSelection>
103 CreateLegalHoldRequest& WithRecoveryPointSelection(RecoveryPointSelectionT&& value) {
104 SetRecoveryPointSelection(std::forward<RecoveryPointSelectionT>(value));
105 return *this;
106 }
108
110
115 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
116 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
117 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
118 void SetTags(TagsT&& value) {
119 m_tagsHasBeenSet = true;
120 m_tags = std::forward<TagsT>(value);
121 }
122 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
124 SetTags(std::forward<TagsT>(value));
125 return *this;
126 }
127 template <typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
128 CreateLegalHoldRequest& AddTags(TagsKeyT&& key, TagsValueT&& value) {
129 m_tagsHasBeenSet = true;
130 m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value));
131 return *this;
132 }
134 private:
135 Aws::String m_title;
136
137 Aws::String m_description;
138
140
141 RecoveryPointSelection m_recoveryPointSelection;
142
144 bool m_titleHasBeenSet = false;
145 bool m_descriptionHasBeenSet = false;
146 bool m_idempotencyTokenHasBeenSet = true;
147 bool m_recoveryPointSelectionHasBeenSet = false;
148 bool m_tagsHasBeenSet = false;
149};
150
151} // namespace Model
152} // namespace Backup
153} // namespace Aws
static Aws::Utils::UUID PseudoRandomUUID()
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String