AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetRecoveryPointId(const Aws::String& value) { m_recoveryPointIdHasBeenSet = true; m_recoveryPointId = value; }
46 inline void SetRecoveryPointId(Aws::String&& value) { m_recoveryPointIdHasBeenSet = true; m_recoveryPointId = std::move(value); }
47 inline void SetRecoveryPointId(const char* value) { m_recoveryPointIdHasBeenSet = true; m_recoveryPointId.assign(value); }
50 inline ConvertRecoveryPointToSnapshotRequest& WithRecoveryPointId(const char* value) { SetRecoveryPointId(value); return *this;}
52
54
57 inline int GetRetentionPeriod() const{ return m_retentionPeriod; }
58 inline bool RetentionPeriodHasBeenSet() const { return m_retentionPeriodHasBeenSet; }
59 inline void SetRetentionPeriod(int value) { m_retentionPeriodHasBeenSet = true; m_retentionPeriod = value; }
62
64
67 inline const Aws::String& GetSnapshotName() const{ return m_snapshotName; }
68 inline bool SnapshotNameHasBeenSet() const { return m_snapshotNameHasBeenSet; }
69 inline void SetSnapshotName(const Aws::String& value) { m_snapshotNameHasBeenSet = true; m_snapshotName = value; }
70 inline void SetSnapshotName(Aws::String&& value) { m_snapshotNameHasBeenSet = true; m_snapshotName = std::move(value); }
71 inline void SetSnapshotName(const char* value) { m_snapshotNameHasBeenSet = true; m_snapshotName.assign(value); }
73 inline ConvertRecoveryPointToSnapshotRequest& WithSnapshotName(Aws::String&& value) { SetSnapshotName(std::move(value)); return *this;}
74 inline ConvertRecoveryPointToSnapshotRequest& WithSnapshotName(const char* value) { SetSnapshotName(value); return *this;}
76
78
83 inline const Aws::Vector<Tag>& GetTags() const{ return m_tags; }
84 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
85 inline void SetTags(const Aws::Vector<Tag>& value) { m_tagsHasBeenSet = true; m_tags = value; }
86 inline void SetTags(Aws::Vector<Tag>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
87 inline ConvertRecoveryPointToSnapshotRequest& WithTags(const Aws::Vector<Tag>& value) { SetTags(value); return *this;}
88 inline ConvertRecoveryPointToSnapshotRequest& WithTags(Aws::Vector<Tag>&& value) { SetTags(std::move(value)); return *this;}
89 inline ConvertRecoveryPointToSnapshotRequest& AddTags(const Tag& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; }
90 inline ConvertRecoveryPointToSnapshotRequest& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; }
92 private:
93
94 Aws::String m_recoveryPointId;
95 bool m_recoveryPointIdHasBeenSet = false;
96
97 int m_retentionPeriod;
98 bool m_retentionPeriodHasBeenSet = false;
99
100 Aws::String m_snapshotName;
101 bool m_snapshotNameHasBeenSet = false;
102
103 Aws::Vector<Tag> m_tags;
104 bool m_tagsHasBeenSet = false;
105 };
106
107} // namespace Model
108} // namespace RedshiftServerless
109} // namespace Aws
ConvertRecoveryPointToSnapshotRequest & WithTags(const Aws::Vector< Tag > &value)
ConvertRecoveryPointToSnapshotRequest & WithTags(Aws::Vector< Tag > &&value)
ConvertRecoveryPointToSnapshotRequest & WithRecoveryPointId(const Aws::String &value)
AWS_REDSHIFTSERVERLESS_API Aws::String SerializePayload() const override
ConvertRecoveryPointToSnapshotRequest & WithSnapshotName(const char *value)
ConvertRecoveryPointToSnapshotRequest & WithRecoveryPointId(const char *value)
ConvertRecoveryPointToSnapshotRequest & WithSnapshotName(const Aws::String &value)
AWS_REDSHIFTSERVERLESS_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
ConvertRecoveryPointToSnapshotRequest & WithSnapshotName(Aws::String &&value)
ConvertRecoveryPointToSnapshotRequest & WithRecoveryPointId(Aws::String &&value)
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