AWS SDK for C++

AWS SDK for C++ Version 1.11.748

Loading...
Searching...
No Matches
CancelLegalHoldRequest.h
1
6#pragma once
7#include <aws/backup/BackupRequest.h>
8#include <aws/backup/Backup_EXPORTS.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Http {
15class URI;
16} // namespace Http
17namespace Backup {
18namespace Model {
19
23 public:
24 AWS_BACKUP_API CancelLegalHoldRequest() = 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 "CancelLegalHold"; }
31
32 AWS_BACKUP_API Aws::String SerializePayload() const override;
33
34 AWS_BACKUP_API void AddQueryStringParameters(Aws::Http::URI& uri) const override;
35
37
40 inline const Aws::String& GetLegalHoldId() const { return m_legalHoldId; }
41 inline bool LegalHoldIdHasBeenSet() const { return m_legalHoldIdHasBeenSet; }
42 template <typename LegalHoldIdT = Aws::String>
43 void SetLegalHoldId(LegalHoldIdT&& value) {
44 m_legalHoldIdHasBeenSet = true;
45 m_legalHoldId = std::forward<LegalHoldIdT>(value);
46 }
47 template <typename LegalHoldIdT = Aws::String>
48 CancelLegalHoldRequest& WithLegalHoldId(LegalHoldIdT&& value) {
49 SetLegalHoldId(std::forward<LegalHoldIdT>(value));
50 return *this;
51 }
53
55
58 inline const Aws::String& GetCancelDescription() const { return m_cancelDescription; }
59 inline bool CancelDescriptionHasBeenSet() const { return m_cancelDescriptionHasBeenSet; }
60 template <typename CancelDescriptionT = Aws::String>
61 void SetCancelDescription(CancelDescriptionT&& value) {
62 m_cancelDescriptionHasBeenSet = true;
63 m_cancelDescription = std::forward<CancelDescriptionT>(value);
64 }
65 template <typename CancelDescriptionT = Aws::String>
66 CancelLegalHoldRequest& WithCancelDescription(CancelDescriptionT&& value) {
67 SetCancelDescription(std::forward<CancelDescriptionT>(value));
68 return *this;
69 }
71
73
76 inline long long GetRetainRecordInDays() const { return m_retainRecordInDays; }
77 inline bool RetainRecordInDaysHasBeenSet() const { return m_retainRecordInDaysHasBeenSet; }
78 inline void SetRetainRecordInDays(long long value) {
79 m_retainRecordInDaysHasBeenSet = true;
80 m_retainRecordInDays = value;
81 }
84 return *this;
85 }
87 private:
88 Aws::String m_legalHoldId;
89
90 Aws::String m_cancelDescription;
91
92 long long m_retainRecordInDays{0};
93 bool m_legalHoldIdHasBeenSet = false;
94 bool m_cancelDescriptionHasBeenSet = false;
95 bool m_retainRecordInDaysHasBeenSet = false;
96};
97
98} // namespace Model
99} // namespace Backup
100} // namespace Aws
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String