AWS SDK for C++

AWS SDK for C++ Version 1.11.612

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() = 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 "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 template<typename NamespaceNameT = Aws::String>
46 void SetNamespaceName(NamespaceNameT&& value) { m_namespaceNameHasBeenSet = true; m_namespaceName = std::forward<NamespaceNameT>(value); }
47 template<typename NamespaceNameT = Aws::String>
48 CreateSnapshotRequest& WithNamespaceName(NamespaceNameT&& value) { SetNamespaceName(std::forward<NamespaceNameT>(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; }
58 inline CreateSnapshotRequest& WithRetentionPeriod(int value) { SetRetentionPeriod(value); return *this;}
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 CreateSnapshotRequest& 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 CreateSnapshotRequest& WithTags(TagsT&& value) { SetTags(std::forward<TagsT>(value)); return *this;}
85 template<typename TagsT = Tag>
86 CreateSnapshotRequest& AddTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags.emplace_back(std::forward<TagsT>(value)); return *this; }
88 private:
89
90 Aws::String m_namespaceName;
91 bool m_namespaceNameHasBeenSet = 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 CreateSnapshotRequest()=default
CreateSnapshotRequest & WithSnapshotName(SnapshotNameT &&value)
CreateSnapshotRequest & WithNamespaceName(NamespaceNameT &&value)
virtual const char * GetServiceRequestName() const override
AWS_REDSHIFTSERVERLESS_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
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