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>
17namespace DataExchange {
40 template <
typename NameT = Aws::String>
42 m_nameHasBeenSet =
true;
43 m_name = std::forward<NameT>(value);
45 template <
typename NameT = Aws::String>
47 SetName(std::forward<NameT>(value));
59 m_grantDistributionScopeHasBeenSet =
true;
60 m_grantDistributionScope = value;
74 template <
typename ReceiverPrincipalT = Aws::String>
76 m_receiverPrincipalHasBeenSet =
true;
77 m_receiverPrincipal = std::forward<ReceiverPrincipalT>(value);
79 template <
typename ReceiverPrincipalT = Aws::String>
92 template <
typename SourceDataSetIdT = Aws::String>
94 m_sourceDataSetIdHasBeenSet =
true;
95 m_sourceDataSetId = std::forward<SourceDataSetIdT>(value);
97 template <
typename SourceDataSetIdT = Aws::String>
110 template <
typename EndsAtT = Aws::Utils::DateTime>
112 m_endsAtHasBeenSet =
true;
113 m_endsAt = std::forward<EndsAtT>(value);
115 template <
typename EndsAtT = Aws::Utils::DateTime>
128 template <
typename DescriptionT = Aws::String>
130 m_descriptionHasBeenSet =
true;
131 m_description = std::forward<DescriptionT>(value);
133 template <
typename DescriptionT = Aws::String>
146 template <
typename TagsT = Aws::Map<Aws::String, Aws::String>>
148 m_tagsHasBeenSet =
true;
149 m_tags = std::forward<TagsT>(value);
151 template <
typename TagsT = Aws::Map<Aws::String, Aws::String>>
153 SetTags(std::forward<TagsT>(value));
156 template <
typename TagsKeyT = Aws::String,
typename TagsValueT = Aws::String>
158 m_tagsHasBeenSet =
true;
159 m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value));
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;
CreateDataGrantRequest & WithEndsAt(EndsAtT &&value)
const Aws::String & GetName() const
bool DescriptionHasBeenSet() const
CreateDataGrantRequest & WithDescription(DescriptionT &&value)
GrantDistributionScope GetGrantDistributionScope() const
void SetSourceDataSetId(SourceDataSetIdT &&value)
CreateDataGrantRequest & WithSourceDataSetId(SourceDataSetIdT &&value)
CreateDataGrantRequest & WithName(NameT &&value)
CreateDataGrantRequest & AddTags(TagsKeyT &&key, TagsValueT &&value)
bool GrantDistributionScopeHasBeenSet() const
CreateDataGrantRequest & WithGrantDistributionScope(GrantDistributionScope value)
AWS_DATAEXCHANGE_API Aws::String SerializePayload() const override
const Aws::Map< Aws::String, Aws::String > & GetTags() const
bool EndsAtHasBeenSet() const
void SetReceiverPrincipal(ReceiverPrincipalT &&value)
AWS_DATAEXCHANGE_API CreateDataGrantRequest()=default
void SetName(NameT &&value)
CreateDataGrantRequest & WithTags(TagsT &&value)
void SetEndsAt(EndsAtT &&value)
bool SourceDataSetIdHasBeenSet() const
void SetGrantDistributionScope(GrantDistributionScope value)
bool NameHasBeenSet() const
CreateDataGrantRequest & WithReceiverPrincipal(ReceiverPrincipalT &&value)
void SetTags(TagsT &&value)
bool TagsHasBeenSet() const
virtual const char * GetServiceRequestName() const override
const Aws::String & GetDescription() const
void SetDescription(DescriptionT &&value)
const Aws::Utils::DateTime & GetEndsAt() const
const Aws::String & GetReceiverPrincipal() const
const Aws::String & GetSourceDataSetId() const
bool ReceiverPrincipalHasBeenSet() const
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