AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetLegalHoldId(const Aws::String& value) { m_legalHoldIdHasBeenSet = true; m_legalHoldId = value; }
48 inline void SetLegalHoldId(Aws::String&& value) { m_legalHoldIdHasBeenSet = true; m_legalHoldId = std::move(value); }
49 inline void SetLegalHoldId(const char* value) { m_legalHoldIdHasBeenSet = true; m_legalHoldId.assign(value); }
50 inline CancelLegalHoldRequest& WithLegalHoldId(const Aws::String& value) { SetLegalHoldId(value); return *this;}
51 inline CancelLegalHoldRequest& WithLegalHoldId(Aws::String&& value) { SetLegalHoldId(std::move(value)); return *this;}
52 inline CancelLegalHoldRequest& WithLegalHoldId(const char* value) { SetLegalHoldId(value); return *this;}
54
56
59 inline const Aws::String& GetCancelDescription() const{ return m_cancelDescription; }
60 inline bool CancelDescriptionHasBeenSet() const { return m_cancelDescriptionHasBeenSet; }
61 inline void SetCancelDescription(const Aws::String& value) { m_cancelDescriptionHasBeenSet = true; m_cancelDescription = value; }
62 inline void SetCancelDescription(Aws::String&& value) { m_cancelDescriptionHasBeenSet = true; m_cancelDescription = std::move(value); }
63 inline void SetCancelDescription(const char* value) { m_cancelDescriptionHasBeenSet = true; m_cancelDescription.assign(value); }
65 inline CancelLegalHoldRequest& WithCancelDescription(Aws::String&& value) { SetCancelDescription(std::move(value)); return *this;}
66 inline CancelLegalHoldRequest& WithCancelDescription(const char* value) { SetCancelDescription(value); return *this;}
68
70
73 inline long long GetRetainRecordInDays() const{ return m_retainRecordInDays; }
74 inline bool RetainRecordInDaysHasBeenSet() const { return m_retainRecordInDaysHasBeenSet; }
75 inline void SetRetainRecordInDays(long long value) { m_retainRecordInDaysHasBeenSet = true; m_retainRecordInDays = value; }
76 inline CancelLegalHoldRequest& WithRetainRecordInDays(long long value) { SetRetainRecordInDays(value); return *this;}
78 private:
79
80 Aws::String m_legalHoldId;
81 bool m_legalHoldIdHasBeenSet = false;
82
83 Aws::String m_cancelDescription;
84 bool m_cancelDescriptionHasBeenSet = false;
85
86 long long m_retainRecordInDays;
87 bool m_retainRecordInDaysHasBeenSet = false;
88 };
89
90} // namespace Model
91} // namespace Backup
92} // namespace Aws
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String