7#include <aws/dataexchange/DataExchange_EXPORTS.h>
8#include <aws/dataexchange/DataExchangeRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/dataexchange/model/GrantDistributionScope.h>
11#include <aws/core/utils/DateTime.h>
12#include <aws/core/utils/memory/stl/AWSMap.h>
44 template<
typename NameT = Aws::String>
45 void SetName(NameT&& value) { m_nameHasBeenSet =
true; m_name = std::forward<NameT>(value); }
46 template<
typename NameT = Aws::String>
66 template<
typename ReceiverPrincipalT = Aws::String>
67 void SetReceiverPrincipal(ReceiverPrincipalT&& value) { m_receiverPrincipalHasBeenSet =
true; m_receiverPrincipal = std::forward<ReceiverPrincipalT>(value); }
68 template<
typename ReceiverPrincipalT = Aws::String>
78 template<
typename SourceDataSetIdT = Aws::String>
79 void SetSourceDataSetId(SourceDataSetIdT&& value) { m_sourceDataSetIdHasBeenSet =
true; m_sourceDataSetId = std::forward<SourceDataSetIdT>(value); }
80 template<
typename SourceDataSetIdT = Aws::String>
90 template<
typename EndsAtT = Aws::Utils::DateTime>
91 void SetEndsAt(EndsAtT&& value) { m_endsAtHasBeenSet =
true; m_endsAt = std::forward<EndsAtT>(value); }
92 template<
typename EndsAtT = Aws::Utils::DateTime>
102 template<
typename DescriptionT = Aws::String>
103 void SetDescription(DescriptionT&& value) { m_descriptionHasBeenSet =
true; m_description = std::forward<DescriptionT>(value); }
104 template<
typename DescriptionT = Aws::String>
114 template<
typename TagsT = Aws::Map<Aws::String, Aws::String>>
115 void SetTags(TagsT&& value) { m_tagsHasBeenSet =
true; m_tags = std::forward<TagsT>(value); }
116 template<
typename TagsT = Aws::Map<Aws::String, Aws::String>>
118 template<
typename TagsKeyT = Aws::String,
typename TagsValueT = Aws::String>
120 m_tagsHasBeenSet =
true; m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value));
return *
this;
126 bool m_nameHasBeenSet =
false;
129 bool m_grantDistributionScopeHasBeenSet =
false;
132 bool m_receiverPrincipalHasBeenSet =
false;
135 bool m_sourceDataSetIdHasBeenSet =
false;
138 bool m_endsAtHasBeenSet =
false;
141 bool m_descriptionHasBeenSet =
false;
144 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