AWS SDK for C++

AWS SDK for C++ Version 1.11.716

Loading...
Searching...
No Matches
CreateDataGrantRequest.h
1
6#pragma once
7#include <aws/core/utils/DateTime.h>
8#include <aws/core/utils/memory/stl/AWSMap.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/dataexchange/DataExchangeRequest.h>
11#include <aws/dataexchange/DataExchange_EXPORTS.h>
12#include <aws/dataexchange/model/GrantDistributionScope.h>
13
14#include <utility>
15
16namespace Aws {
17namespace DataExchange {
18namespace Model {
19
23 public:
24 AWS_DATAEXCHANGE_API CreateDataGrantRequest() = default;
25
26 // Service request name is the Operation name which will send this request out,
27 // each operation should has unique request name, so that we can get operation's name from this request.
28 // Note: this is not true for response, multiple operations may have the same response name,
29 // so we can not get operation's name from response.
30 inline virtual const char* GetServiceRequestName() const override { return "CreateDataGrant"; }
31
32 AWS_DATAEXCHANGE_API Aws::String SerializePayload() const override;
33
35
38 inline const Aws::String& GetName() const { return m_name; }
39 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
40 template <typename NameT = Aws::String>
41 void SetName(NameT&& value) {
42 m_nameHasBeenSet = true;
43 m_name = std::forward<NameT>(value);
44 }
45 template <typename NameT = Aws::String>
47 SetName(std::forward<NameT>(value));
48 return *this;
49 }
51
53
56 inline GrantDistributionScope GetGrantDistributionScope() const { return m_grantDistributionScope; }
57 inline bool GrantDistributionScopeHasBeenSet() const { return m_grantDistributionScopeHasBeenSet; }
59 m_grantDistributionScopeHasBeenSet = true;
60 m_grantDistributionScope = value;
61 }
64 return *this;
65 }
67
69
72 inline const Aws::String& GetReceiverPrincipal() const { return m_receiverPrincipal; }
73 inline bool ReceiverPrincipalHasBeenSet() const { return m_receiverPrincipalHasBeenSet; }
74 template <typename ReceiverPrincipalT = Aws::String>
75 void SetReceiverPrincipal(ReceiverPrincipalT&& value) {
76 m_receiverPrincipalHasBeenSet = true;
77 m_receiverPrincipal = std::forward<ReceiverPrincipalT>(value);
78 }
79 template <typename ReceiverPrincipalT = Aws::String>
80 CreateDataGrantRequest& WithReceiverPrincipal(ReceiverPrincipalT&& value) {
81 SetReceiverPrincipal(std::forward<ReceiverPrincipalT>(value));
82 return *this;
83 }
85
87
90 inline const Aws::String& GetSourceDataSetId() const { return m_sourceDataSetId; }
91 inline bool SourceDataSetIdHasBeenSet() const { return m_sourceDataSetIdHasBeenSet; }
92 template <typename SourceDataSetIdT = Aws::String>
93 void SetSourceDataSetId(SourceDataSetIdT&& value) {
94 m_sourceDataSetIdHasBeenSet = true;
95 m_sourceDataSetId = std::forward<SourceDataSetIdT>(value);
96 }
97 template <typename SourceDataSetIdT = Aws::String>
98 CreateDataGrantRequest& WithSourceDataSetId(SourceDataSetIdT&& value) {
99 SetSourceDataSetId(std::forward<SourceDataSetIdT>(value));
100 return *this;
101 }
103
105
108 inline const Aws::Utils::DateTime& GetEndsAt() const { return m_endsAt; }
109 inline bool EndsAtHasBeenSet() const { return m_endsAtHasBeenSet; }
110 template <typename EndsAtT = Aws::Utils::DateTime>
111 void SetEndsAt(EndsAtT&& value) {
112 m_endsAtHasBeenSet = true;
113 m_endsAt = std::forward<EndsAtT>(value);
114 }
115 template <typename EndsAtT = Aws::Utils::DateTime>
117 SetEndsAt(std::forward<EndsAtT>(value));
118 return *this;
119 }
121
123
126 inline const Aws::String& GetDescription() const { return m_description; }
127 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
128 template <typename DescriptionT = Aws::String>
129 void SetDescription(DescriptionT&& value) {
130 m_descriptionHasBeenSet = true;
131 m_description = std::forward<DescriptionT>(value);
132 }
133 template <typename DescriptionT = Aws::String>
135 SetDescription(std::forward<DescriptionT>(value));
136 return *this;
137 }
139
141
144 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
145 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
146 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
147 void SetTags(TagsT&& value) {
148 m_tagsHasBeenSet = true;
149 m_tags = std::forward<TagsT>(value);
150 }
151 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
153 SetTags(std::forward<TagsT>(value));
154 return *this;
155 }
156 template <typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
157 CreateDataGrantRequest& AddTags(TagsKeyT&& key, TagsValueT&& value) {
158 m_tagsHasBeenSet = true;
159 m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value));
160 return *this;
161 }
163 private:
164 Aws::String m_name;
165
167
168 Aws::String m_receiverPrincipal;
169
170 Aws::String m_sourceDataSetId;
171
172 Aws::Utils::DateTime m_endsAt{};
173
174 Aws::String m_description;
175
177 bool m_nameHasBeenSet = false;
178 bool m_grantDistributionScopeHasBeenSet = false;
179 bool m_receiverPrincipalHasBeenSet = false;
180 bool m_sourceDataSetIdHasBeenSet = false;
181 bool m_endsAtHasBeenSet = false;
182 bool m_descriptionHasBeenSet = false;
183 bool m_tagsHasBeenSet = false;
184};
185
186} // namespace Model
187} // namespace DataExchange
188} // namespace Aws
CreateDataGrantRequest & WithEndsAt(EndsAtT &&value)
CreateDataGrantRequest & WithDescription(DescriptionT &&value)
CreateDataGrantRequest & WithSourceDataSetId(SourceDataSetIdT &&value)
CreateDataGrantRequest & WithName(NameT &&value)
CreateDataGrantRequest & AddTags(TagsKeyT &&key, TagsValueT &&value)
CreateDataGrantRequest & WithGrantDistributionScope(GrantDistributionScope value)
AWS_DATAEXCHANGE_API Aws::String SerializePayload() const override
const Aws::Map< Aws::String, Aws::String > & GetTags() const
AWS_DATAEXCHANGE_API CreateDataGrantRequest()=default
CreateDataGrantRequest & WithTags(TagsT &&value)
void SetGrantDistributionScope(GrantDistributionScope value)
CreateDataGrantRequest & WithReceiverPrincipal(ReceiverPrincipalT &&value)
virtual const char * GetServiceRequestName() const override
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String