AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
CreateSnapshotRequest.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 CreateSnapshotRequest();
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 "CreateSnapshot"; }
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& GetNamespaceName() const{ return m_namespaceName; }
44 inline bool NamespaceNameHasBeenSet() const { return m_namespaceNameHasBeenSet; }
45 inline void SetNamespaceName(const Aws::String& value) { m_namespaceNameHasBeenSet = true; m_namespaceName = value; }
46 inline void SetNamespaceName(Aws::String&& value) { m_namespaceNameHasBeenSet = true; m_namespaceName = std::move(value); }
47 inline void SetNamespaceName(const char* value) { m_namespaceNameHasBeenSet = true; m_namespaceName.assign(value); }
48 inline CreateSnapshotRequest& WithNamespaceName(const Aws::String& value) { SetNamespaceName(value); return *this;}
49 inline CreateSnapshotRequest& WithNamespaceName(Aws::String&& value) { SetNamespaceName(std::move(value)); return *this;}
50 inline CreateSnapshotRequest& WithNamespaceName(const char* value) { SetNamespaceName(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; }
60 inline CreateSnapshotRequest& WithRetentionPeriod(int value) { SetRetentionPeriod(value); return *this;}
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); }
72 inline CreateSnapshotRequest& WithSnapshotName(const Aws::String& value) { SetSnapshotName(value); return *this;}
73 inline CreateSnapshotRequest& WithSnapshotName(Aws::String&& value) { SetSnapshotName(std::move(value)); return *this;}
74 inline CreateSnapshotRequest& 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 CreateSnapshotRequest& WithTags(const Aws::Vector<Tag>& value) { SetTags(value); return *this;}
88 inline CreateSnapshotRequest& WithTags(Aws::Vector<Tag>&& value) { SetTags(std::move(value)); return *this;}
89 inline CreateSnapshotRequest& AddTags(const Tag& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; }
90 inline CreateSnapshotRequest& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; }
92 private:
93
94 Aws::String m_namespaceName;
95 bool m_namespaceNameHasBeenSet = 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
CreateSnapshotRequest & WithTags(const Aws::Vector< Tag > &value)
CreateSnapshotRequest & WithNamespaceName(Aws::String &&value)
virtual const char * GetServiceRequestName() const override
CreateSnapshotRequest & AddTags(const Tag &value)
CreateSnapshotRequest & WithTags(Aws::Vector< Tag > &&value)
CreateSnapshotRequest & WithSnapshotName(const char *value)
AWS_REDSHIFTSERVERLESS_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
CreateSnapshotRequest & WithNamespaceName(const char *value)
CreateSnapshotRequest & WithSnapshotName(Aws::String &&value)
CreateSnapshotRequest & WithNamespaceName(const Aws::String &value)
CreateSnapshotRequest & WithSnapshotName(const Aws::String &value)
AWS_REDSHIFTSERVERLESS_API Aws::String SerializePayload() 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