AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
ConvertRecoveryPointToSnapshotRequest.h
1
6#pragma once
7#include <aws/redshift-serverless/RedshiftServerless_EXPORTS.h>
8#include <aws/redshift-serverless/RedshiftServerlessRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/redshift-serverless/model/Tag.h>
12#include <utility>
13
14namespace Aws
15{
16namespace RedshiftServerless
17{
18namespace Model
19{
20
24 {
25 public:
26 AWS_REDSHIFTSERVERLESS_API ConvertRecoveryPointToSnapshotRequest() = default;
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 "ConvertRecoveryPointToSnapshot"; }
33
34 AWS_REDSHIFTSERVERLESS_API Aws::String SerializePayload() const override;
35
36 AWS_REDSHIFTSERVERLESS_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
37
38
40
43 inline const Aws::String& GetRecoveryPointId() const { return m_recoveryPointId; }
44 inline bool RecoveryPointIdHasBeenSet() const { return m_recoveryPointIdHasBeenSet; }
45 template<typename RecoveryPointIdT = Aws::String>
46 void SetRecoveryPointId(RecoveryPointIdT&& value) { m_recoveryPointIdHasBeenSet = true; m_recoveryPointId = std::forward<RecoveryPointIdT>(value); }
47 template<typename RecoveryPointIdT = Aws::String>
48 ConvertRecoveryPointToSnapshotRequest& WithRecoveryPointId(RecoveryPointIdT&& value) { SetRecoveryPointId(std::forward<RecoveryPointIdT>(value)); return *this;}
50
52
55 inline int GetRetentionPeriod() const { return m_retentionPeriod; }
56 inline bool RetentionPeriodHasBeenSet() const { return m_retentionPeriodHasBeenSet; }
57 inline void SetRetentionPeriod(int value) { m_retentionPeriodHasBeenSet = true; m_retentionPeriod = value; }
60
62
65 inline const Aws::String& GetSnapshotName() const { return m_snapshotName; }
66 inline bool SnapshotNameHasBeenSet() const { return m_snapshotNameHasBeenSet; }
67 template<typename SnapshotNameT = Aws::String>
68 void SetSnapshotName(SnapshotNameT&& value) { m_snapshotNameHasBeenSet = true; m_snapshotName = std::forward<SnapshotNameT>(value); }
69 template<typename SnapshotNameT = Aws::String>
70 ConvertRecoveryPointToSnapshotRequest& WithSnapshotName(SnapshotNameT&& value) { SetSnapshotName(std::forward<SnapshotNameT>(value)); return *this;}
72
74
79 inline const Aws::Vector<Tag>& GetTags() const { return m_tags; }
80 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
81 template<typename TagsT = Aws::Vector<Tag>>
82 void SetTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags = std::forward<TagsT>(value); }
83 template<typename TagsT = Aws::Vector<Tag>>
84 ConvertRecoveryPointToSnapshotRequest& WithTags(TagsT&& value) { SetTags(std::forward<TagsT>(value)); return *this;}
85 template<typename TagsT = Tag>
86 ConvertRecoveryPointToSnapshotRequest& AddTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags.emplace_back(std::forward<TagsT>(value)); return *this; }
88 private:
89
90 Aws::String m_recoveryPointId;
91 bool m_recoveryPointIdHasBeenSet = false;
92
93 int m_retentionPeriod{0};
94 bool m_retentionPeriodHasBeenSet = false;
95
96 Aws::String m_snapshotName;
97 bool m_snapshotNameHasBeenSet = false;
98
99 Aws::Vector<Tag> m_tags;
100 bool m_tagsHasBeenSet = false;
101 };
102
103} // namespace Model
104} // namespace RedshiftServerless
105} // namespace Aws
AWS_REDSHIFTSERVERLESS_API ConvertRecoveryPointToSnapshotRequest()=default
ConvertRecoveryPointToSnapshotRequest & WithRecoveryPointId(RecoveryPointIdT &&value)
ConvertRecoveryPointToSnapshotRequest & WithSnapshotName(SnapshotNameT &&value)
AWS_REDSHIFTSERVERLESS_API Aws::String SerializePayload() const override
AWS_REDSHIFTSERVERLESS_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector