AWS SDK for C++

AWS SDK for C++ Version 1.11.612

Loading...
Searching...
No Matches
CancelLegalHoldRequest.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 <utility>
11
12namespace Aws
13{
14namespace Http
15{
16 class URI;
17} //namespace Http
18namespace Backup
19{
20namespace Model
21{
22
26 {
27 public:
28 AWS_BACKUP_API CancelLegalHoldRequest() = default;
29
30 // Service request name is the Operation name which will send this request out,
31 // each operation should has unique request name, so that we can get operation's name from this request.
32 // Note: this is not true for response, multiple operations may have the same response name,
33 // so we can not get operation's name from response.
34 inline virtual const char* GetServiceRequestName() const override { return "CancelLegalHold"; }
35
36 AWS_BACKUP_API Aws::String SerializePayload() const override;
37
38 AWS_BACKUP_API void AddQueryStringParameters(Aws::Http::URI& uri) const override;
39
40
42
45 inline const Aws::String& GetLegalHoldId() const { return m_legalHoldId; }
46 inline bool LegalHoldIdHasBeenSet() const { return m_legalHoldIdHasBeenSet; }
47 template<typename LegalHoldIdT = Aws::String>
48 void SetLegalHoldId(LegalHoldIdT&& value) { m_legalHoldIdHasBeenSet = true; m_legalHoldId = std::forward<LegalHoldIdT>(value); }
49 template<typename LegalHoldIdT = Aws::String>
50 CancelLegalHoldRequest& WithLegalHoldId(LegalHoldIdT&& value) { SetLegalHoldId(std::forward<LegalHoldIdT>(value)); return *this;}
52
54
57 inline const Aws::String& GetCancelDescription() const { return m_cancelDescription; }
58 inline bool CancelDescriptionHasBeenSet() const { return m_cancelDescriptionHasBeenSet; }
59 template<typename CancelDescriptionT = Aws::String>
60 void SetCancelDescription(CancelDescriptionT&& value) { m_cancelDescriptionHasBeenSet = true; m_cancelDescription = std::forward<CancelDescriptionT>(value); }
61 template<typename CancelDescriptionT = Aws::String>
62 CancelLegalHoldRequest& WithCancelDescription(CancelDescriptionT&& value) { SetCancelDescription(std::forward<CancelDescriptionT>(value)); return *this;}
64
66
69 inline long long GetRetainRecordInDays() const { return m_retainRecordInDays; }
70 inline bool RetainRecordInDaysHasBeenSet() const { return m_retainRecordInDaysHasBeenSet; }
71 inline void SetRetainRecordInDays(long long value) { m_retainRecordInDaysHasBeenSet = true; m_retainRecordInDays = value; }
72 inline CancelLegalHoldRequest& WithRetainRecordInDays(long long value) { SetRetainRecordInDays(value); return *this;}
74 private:
75
76 Aws::String m_legalHoldId;
77 bool m_legalHoldIdHasBeenSet = false;
78
79 Aws::String m_cancelDescription;
80 bool m_cancelDescriptionHasBeenSet = false;
81
82 long long m_retainRecordInDays{0};
83 bool m_retainRecordInDaysHasBeenSet = false;
84 };
85
86} // namespace Model
87} // namespace Backup
88} // namespace Aws
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String