7#include <aws/backup/Backup_EXPORTS.h>
8#include <aws/backup/BackupRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/backup/model/RecoveryPointSelection.h>
11#include <aws/core/utils/memory/stl/AWSMap.h>
13#include <aws/core/utils/UUID.h>
44 template<
typename TitleT = Aws::String>
45 void SetTitle(TitleT&& value) { m_titleHasBeenSet =
true; m_title = std::forward<TitleT>(value); }
46 template<
typename TitleT = Aws::String>
56 template<
typename DescriptionT = Aws::String>
57 void SetDescription(DescriptionT&& value) { m_descriptionHasBeenSet =
true; m_description = std::forward<DescriptionT>(value); }
58 template<
typename DescriptionT = Aws::String>
70 template<
typename IdempotencyTokenT = Aws::String>
71 void SetIdempotencyToken(IdempotencyTokenT&& value) { m_idempotencyTokenHasBeenSet =
true; m_idempotencyToken = std::forward<IdempotencyTokenT>(value); }
72 template<
typename IdempotencyTokenT = Aws::String>
83 template<
typename RecoveryPo
intSelectionT = RecoveryPo
intSelection>
84 void SetRecoveryPointSelection(RecoveryPointSelectionT&& value) { m_recoveryPointSelectionHasBeenSet =
true; m_recoveryPointSelection = std::forward<RecoveryPointSelectionT>(value); }
85 template<
typename RecoveryPo
intSelectionT = RecoveryPo
intSelection>
97 template<
typename TagsT = Aws::Map<Aws::String, Aws::String>>
98 void SetTags(TagsT&& value) { m_tagsHasBeenSet =
true; m_tags = std::forward<TagsT>(value); }
99 template<
typename TagsT = Aws::Map<Aws::String, Aws::String>>
101 template<
typename TagsKeyT = Aws::String,
typename TagsValueT = Aws::String>
103 m_tagsHasBeenSet =
true; m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value));
return *
this;
109 bool m_titleHasBeenSet =
false;
112 bool m_descriptionHasBeenSet =
false;
115 bool m_idempotencyTokenHasBeenSet =
true;
117 RecoveryPointSelection m_recoveryPointSelection;
118 bool m_recoveryPointSelectionHasBeenSet =
false;
121 bool m_tagsHasBeenSet =
false;
const Aws::String & GetDescription() const
AWS_BACKUP_API CreateLegalHoldRequest()=default
CreateLegalHoldRequest & WithTitle(TitleT &&value)
virtual const char * GetServiceRequestName() const override
bool DescriptionHasBeenSet() const
bool TitleHasBeenSet() const
void SetTitle(TitleT &&value)
const Aws::String & GetTitle() const
CreateLegalHoldRequest & AddTags(TagsKeyT &&key, TagsValueT &&value)
void SetRecoveryPointSelection(RecoveryPointSelectionT &&value)
bool RecoveryPointSelectionHasBeenSet() const
CreateLegalHoldRequest & WithIdempotencyToken(IdempotencyTokenT &&value)
const Aws::Map< Aws::String, Aws::String > & GetTags() const
void SetTags(TagsT &&value)
const RecoveryPointSelection & GetRecoveryPointSelection() const
AWS_BACKUP_API Aws::String SerializePayload() const override
void SetIdempotencyToken(IdempotencyTokenT &&value)
void SetDescription(DescriptionT &&value)
const Aws::String & GetIdempotencyToken() const
bool IdempotencyTokenHasBeenSet() const
CreateLegalHoldRequest & WithDescription(DescriptionT &&value)
CreateLegalHoldRequest & WithTags(TagsT &&value)
CreateLegalHoldRequest & WithRecoveryPointSelection(RecoveryPointSelectionT &&value)
bool TagsHasBeenSet() const
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