AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
CreateClusterSnapshotRequest.h
1
6#pragma once
7#include <aws/redshift/Redshift_EXPORTS.h>
8#include <aws/redshift/RedshiftRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/redshift/model/Tag.h>
12#include <utility>
13
14namespace Aws
15{
16namespace Redshift
17{
18namespace Model
19{
20
27 {
28 public:
29 AWS_REDSHIFT_API CreateClusterSnapshotRequest();
30
31 // Service request name is the Operation name which will send this request out,
32 // each operation should has unique request name, so that we can get operation's name from this request.
33 // Note: this is not true for response, multiple operations may have the same response name,
34 // so we can not get operation's name from response.
35 inline virtual const char* GetServiceRequestName() const override { return "CreateClusterSnapshot"; }
36
37 AWS_REDSHIFT_API Aws::String SerializePayload() const override;
38
39 protected:
40 AWS_REDSHIFT_API void DumpBodyToUrl(Aws::Http::URI& uri ) const override;
41
42 public:
43
45
54 inline const Aws::String& GetSnapshotIdentifier() const{ return m_snapshotIdentifier; }
55 inline bool SnapshotIdentifierHasBeenSet() const { return m_snapshotIdentifierHasBeenSet; }
56 inline void SetSnapshotIdentifier(const Aws::String& value) { m_snapshotIdentifierHasBeenSet = true; m_snapshotIdentifier = value; }
57 inline void SetSnapshotIdentifier(Aws::String&& value) { m_snapshotIdentifierHasBeenSet = true; m_snapshotIdentifier = std::move(value); }
58 inline void SetSnapshotIdentifier(const char* value) { m_snapshotIdentifierHasBeenSet = true; m_snapshotIdentifier.assign(value); }
60 inline CreateClusterSnapshotRequest& WithSnapshotIdentifier(Aws::String&& value) { SetSnapshotIdentifier(std::move(value)); return *this;}
61 inline CreateClusterSnapshotRequest& WithSnapshotIdentifier(const char* value) { SetSnapshotIdentifier(value); return *this;}
63
65
68 inline const Aws::String& GetClusterIdentifier() const{ return m_clusterIdentifier; }
69 inline bool ClusterIdentifierHasBeenSet() const { return m_clusterIdentifierHasBeenSet; }
70 inline void SetClusterIdentifier(const Aws::String& value) { m_clusterIdentifierHasBeenSet = true; m_clusterIdentifier = value; }
71 inline void SetClusterIdentifier(Aws::String&& value) { m_clusterIdentifierHasBeenSet = true; m_clusterIdentifier = std::move(value); }
72 inline void SetClusterIdentifier(const char* value) { m_clusterIdentifierHasBeenSet = true; m_clusterIdentifier.assign(value); }
74 inline CreateClusterSnapshotRequest& WithClusterIdentifier(Aws::String&& value) { SetClusterIdentifier(std::move(value)); return *this;}
75 inline CreateClusterSnapshotRequest& WithClusterIdentifier(const char* value) { SetClusterIdentifier(value); return *this;}
77
79
84 inline int GetManualSnapshotRetentionPeriod() const{ return m_manualSnapshotRetentionPeriod; }
85 inline bool ManualSnapshotRetentionPeriodHasBeenSet() const { return m_manualSnapshotRetentionPeriodHasBeenSet; }
86 inline void SetManualSnapshotRetentionPeriod(int value) { m_manualSnapshotRetentionPeriodHasBeenSet = true; m_manualSnapshotRetentionPeriod = value; }
89
91
94 inline const Aws::Vector<Tag>& GetTags() const{ return m_tags; }
95 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
96 inline void SetTags(const Aws::Vector<Tag>& value) { m_tagsHasBeenSet = true; m_tags = value; }
97 inline void SetTags(Aws::Vector<Tag>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
98 inline CreateClusterSnapshotRequest& WithTags(const Aws::Vector<Tag>& value) { SetTags(value); return *this;}
99 inline CreateClusterSnapshotRequest& WithTags(Aws::Vector<Tag>&& value) { SetTags(std::move(value)); return *this;}
100 inline CreateClusterSnapshotRequest& AddTags(const Tag& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; }
101 inline CreateClusterSnapshotRequest& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; }
103 private:
104
105 Aws::String m_snapshotIdentifier;
106 bool m_snapshotIdentifierHasBeenSet = false;
107
108 Aws::String m_clusterIdentifier;
109 bool m_clusterIdentifierHasBeenSet = false;
110
111 int m_manualSnapshotRetentionPeriod;
112 bool m_manualSnapshotRetentionPeriodHasBeenSet = false;
113
114 Aws::Vector<Tag> m_tags;
115 bool m_tagsHasBeenSet = false;
116 };
117
118} // namespace Model
119} // namespace Redshift
120} // namespace Aws
CreateClusterSnapshotRequest & WithSnapshotIdentifier(Aws::String &&value)
CreateClusterSnapshotRequest & WithClusterIdentifier(const char *value)
CreateClusterSnapshotRequest & AddTags(Tag &&value)
CreateClusterSnapshotRequest & WithTags(const Aws::Vector< Tag > &value)
CreateClusterSnapshotRequest & AddTags(const Tag &value)
CreateClusterSnapshotRequest & WithSnapshotIdentifier(const char *value)
CreateClusterSnapshotRequest & WithClusterIdentifier(Aws::String &&value)
CreateClusterSnapshotRequest & WithManualSnapshotRetentionPeriod(int value)
AWS_REDSHIFT_API void DumpBodyToUrl(Aws::Http::URI &uri) const override
CreateClusterSnapshotRequest & WithSnapshotIdentifier(const Aws::String &value)
CreateClusterSnapshotRequest & WithTags(Aws::Vector< Tag > &&value)
AWS_REDSHIFT_API Aws::String SerializePayload() const override
CreateClusterSnapshotRequest & WithClusterIdentifier(const Aws::String &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector