AWS SDK for C++

AWS SDK for C++ Version 1.11.744

Loading...
Searching...
No Matches
CreateSnapshotCopyGrantRequest.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/redshift/RedshiftRequest.h>
10#include <aws/redshift/Redshift_EXPORTS.h>
11#include <aws/redshift/model/Tag.h>
12
13#include <utility>
14
15namespace Aws {
16namespace Redshift {
17namespace Model {
18
26 public:
27 AWS_REDSHIFT_API CreateSnapshotCopyGrantRequest() = default;
28
29 // Service request name is the Operation name which will send this request out,
30 // each operation should has unique request name, so that we can get operation's name from this request.
31 // Note: this is not true for response, multiple operations may have the same response name,
32 // so we can not get operation's name from response.
33 inline virtual const char* GetServiceRequestName() const override { return "CreateSnapshotCopyGrant"; }
34
35 AWS_REDSHIFT_API Aws::String SerializePayload() const override;
36
37 protected:
38 AWS_REDSHIFT_API void DumpBodyToUrl(Aws::Http::URI& uri) const override;
39
40 public:
42
51 inline const Aws::String& GetSnapshotCopyGrantName() const { return m_snapshotCopyGrantName; }
52 inline bool SnapshotCopyGrantNameHasBeenSet() const { return m_snapshotCopyGrantNameHasBeenSet; }
53 template <typename SnapshotCopyGrantNameT = Aws::String>
54 void SetSnapshotCopyGrantName(SnapshotCopyGrantNameT&& value) {
55 m_snapshotCopyGrantNameHasBeenSet = true;
56 m_snapshotCopyGrantName = std::forward<SnapshotCopyGrantNameT>(value);
57 }
58 template <typename SnapshotCopyGrantNameT = Aws::String>
60 SetSnapshotCopyGrantName(std::forward<SnapshotCopyGrantNameT>(value));
61 return *this;
62 }
64
66
70 inline const Aws::String& GetKmsKeyId() const { return m_kmsKeyId; }
71 inline bool KmsKeyIdHasBeenSet() const { return m_kmsKeyIdHasBeenSet; }
72 template <typename KmsKeyIdT = Aws::String>
73 void SetKmsKeyId(KmsKeyIdT&& value) {
74 m_kmsKeyIdHasBeenSet = true;
75 m_kmsKeyId = std::forward<KmsKeyIdT>(value);
76 }
77 template <typename KmsKeyIdT = Aws::String>
79 SetKmsKeyId(std::forward<KmsKeyIdT>(value));
80 return *this;
81 }
83
85
88 inline const Aws::Vector<Tag>& GetTags() const { return m_tags; }
89 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
90 template <typename TagsT = Aws::Vector<Tag>>
91 void SetTags(TagsT&& value) {
92 m_tagsHasBeenSet = true;
93 m_tags = std::forward<TagsT>(value);
94 }
95 template <typename TagsT = Aws::Vector<Tag>>
97 SetTags(std::forward<TagsT>(value));
98 return *this;
99 }
100 template <typename TagsT = Tag>
102 m_tagsHasBeenSet = true;
103 m_tags.emplace_back(std::forward<TagsT>(value));
104 return *this;
105 }
107 private:
108 Aws::String m_snapshotCopyGrantName;
109
110 Aws::String m_kmsKeyId;
111
112 Aws::Vector<Tag> m_tags;
113 bool m_snapshotCopyGrantNameHasBeenSet = false;
114 bool m_kmsKeyIdHasBeenSet = false;
115 bool m_tagsHasBeenSet = false;
116};
117
118} // namespace Model
119} // namespace Redshift
120} // namespace Aws
CreateSnapshotCopyGrantRequest & WithSnapshotCopyGrantName(SnapshotCopyGrantNameT &&value)
CreateSnapshotCopyGrantRequest & AddTags(TagsT &&value)
AWS_REDSHIFT_API void DumpBodyToUrl(Aws::Http::URI &uri) const override
AWS_REDSHIFT_API CreateSnapshotCopyGrantRequest()=default
CreateSnapshotCopyGrantRequest & WithTags(TagsT &&value)
CreateSnapshotCopyGrantRequest & WithKmsKeyId(KmsKeyIdT &&value)
AWS_REDSHIFT_API Aws::String SerializePayload() const override
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector