AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
CreateLegalHoldRequest.h
1
6#pragma once
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>
12#include <utility>
13
14namespace Aws
15{
16namespace Backup
17{
18namespace Model
19{
20
24 {
25 public:
26 AWS_BACKUP_API CreateLegalHoldRequest();
27
28 // Service request name is the Operation name which will send this request out,
29 // each operation should has unique request name, so that we can get operation's name from this request.
30 // Note: this is not true for response, multiple operations may have the same response name,
31 // so we can not get operation's name from response.
32 inline virtual const char* GetServiceRequestName() const override { return "CreateLegalHold"; }
33
34 AWS_BACKUP_API Aws::String SerializePayload() const override;
35
36
38
41 inline const Aws::String& GetTitle() const{ return m_title; }
42 inline bool TitleHasBeenSet() const { return m_titleHasBeenSet; }
43 inline void SetTitle(const Aws::String& value) { m_titleHasBeenSet = true; m_title = value; }
44 inline void SetTitle(Aws::String&& value) { m_titleHasBeenSet = true; m_title = std::move(value); }
45 inline void SetTitle(const char* value) { m_titleHasBeenSet = true; m_title.assign(value); }
46 inline CreateLegalHoldRequest& WithTitle(const Aws::String& value) { SetTitle(value); return *this;}
47 inline CreateLegalHoldRequest& WithTitle(Aws::String&& value) { SetTitle(std::move(value)); return *this;}
48 inline CreateLegalHoldRequest& WithTitle(const char* value) { SetTitle(value); return *this;}
50
52
55 inline const Aws::String& GetDescription() const{ return m_description; }
56 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
57 inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; }
58 inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); }
59 inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); }
60 inline CreateLegalHoldRequest& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
61 inline CreateLegalHoldRequest& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;}
62 inline CreateLegalHoldRequest& WithDescription(const char* value) { SetDescription(value); return *this;}
64
66
71 inline const Aws::String& GetIdempotencyToken() const{ return m_idempotencyToken; }
72 inline bool IdempotencyTokenHasBeenSet() const { return m_idempotencyTokenHasBeenSet; }
73 inline void SetIdempotencyToken(const Aws::String& value) { m_idempotencyTokenHasBeenSet = true; m_idempotencyToken = value; }
74 inline void SetIdempotencyToken(Aws::String&& value) { m_idempotencyTokenHasBeenSet = true; m_idempotencyToken = std::move(value); }
75 inline void SetIdempotencyToken(const char* value) { m_idempotencyTokenHasBeenSet = true; m_idempotencyToken.assign(value); }
76 inline CreateLegalHoldRequest& WithIdempotencyToken(const Aws::String& value) { SetIdempotencyToken(value); return *this;}
77 inline CreateLegalHoldRequest& WithIdempotencyToken(Aws::String&& value) { SetIdempotencyToken(std::move(value)); return *this;}
78 inline CreateLegalHoldRequest& WithIdempotencyToken(const char* value) { SetIdempotencyToken(value); return *this;}
80
82
86 inline const RecoveryPointSelection& GetRecoveryPointSelection() const{ return m_recoveryPointSelection; }
87 inline bool RecoveryPointSelectionHasBeenSet() const { return m_recoveryPointSelectionHasBeenSet; }
88 inline void SetRecoveryPointSelection(const RecoveryPointSelection& value) { m_recoveryPointSelectionHasBeenSet = true; m_recoveryPointSelection = value; }
89 inline void SetRecoveryPointSelection(RecoveryPointSelection&& value) { m_recoveryPointSelectionHasBeenSet = true; m_recoveryPointSelection = std::move(value); }
93
95
100 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const{ return m_tags; }
101 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
102 inline void SetTags(const Aws::Map<Aws::String, Aws::String>& value) { m_tagsHasBeenSet = true; m_tags = value; }
103 inline void SetTags(Aws::Map<Aws::String, Aws::String>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
104 inline CreateLegalHoldRequest& WithTags(const Aws::Map<Aws::String, Aws::String>& value) { SetTags(value); return *this;}
105 inline CreateLegalHoldRequest& WithTags(Aws::Map<Aws::String, Aws::String>&& value) { SetTags(std::move(value)); return *this;}
106 inline CreateLegalHoldRequest& AddTags(const Aws::String& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; }
107 inline CreateLegalHoldRequest& AddTags(Aws::String&& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; }
108 inline CreateLegalHoldRequest& AddTags(const Aws::String& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; }
109 inline CreateLegalHoldRequest& AddTags(Aws::String&& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), std::move(value)); return *this; }
110 inline CreateLegalHoldRequest& AddTags(const char* key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; }
111 inline CreateLegalHoldRequest& AddTags(Aws::String&& key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; }
112 inline CreateLegalHoldRequest& AddTags(const char* key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; }
114 private:
115
116 Aws::String m_title;
117 bool m_titleHasBeenSet = false;
118
119 Aws::String m_description;
120 bool m_descriptionHasBeenSet = false;
121
122 Aws::String m_idempotencyToken;
123 bool m_idempotencyTokenHasBeenSet = false;
124
125 RecoveryPointSelection m_recoveryPointSelection;
126 bool m_recoveryPointSelectionHasBeenSet = false;
127
129 bool m_tagsHasBeenSet = false;
130 };
131
132} // namespace Model
133} // namespace Backup
134} // namespace Aws
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