7#include <aws/license-manager/LicenseManager_EXPORTS.h>
8#include <aws/license-manager/LicenseManagerRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/license-manager/model/AllowedOperation.h>
12#include <aws/license-manager/model/Tag.h>
17namespace LicenseManager
47 template<
typename ClientTokenT = Aws::String>
48 void SetClientToken(ClientTokenT&& value) { m_clientTokenHasBeenSet =
true; m_clientToken = std::forward<ClientTokenT>(value); }
49 template<
typename ClientTokenT = Aws::String>
59 template<
typename GrantNameT = Aws::String>
60 void SetGrantName(GrantNameT&& value) { m_grantNameHasBeenSet =
true; m_grantName = std::forward<GrantNameT>(value); }
61 template<
typename GrantNameT = Aws::String>
71 template<
typename LicenseArnT = Aws::String>
72 void SetLicenseArn(LicenseArnT&& value) { m_licenseArnHasBeenSet =
true; m_licenseArn = std::forward<LicenseArnT>(value); }
73 template<
typename LicenseArnT = Aws::String>
88 template<
typename PrincipalsT = Aws::Vector<Aws::String>>
89 void SetPrincipals(PrincipalsT&& value) { m_principalsHasBeenSet =
true; m_principals = std::forward<PrincipalsT>(value); }
90 template<
typename PrincipalsT = Aws::Vector<Aws::String>>
92 template<
typename PrincipalsT = Aws::String>
93 CreateGrantRequest&
AddPrincipals(PrincipalsT&& value) { m_principalsHasBeenSet =
true; m_principals.emplace_back(std::forward<PrincipalsT>(value));
return *
this; }
102 template<
typename HomeRegionT = Aws::String>
103 void SetHomeRegion(HomeRegionT&& value) { m_homeRegionHasBeenSet =
true; m_homeRegion = std::forward<HomeRegionT>(value); }
104 template<
typename HomeRegionT = Aws::String>
114 template<
typename AllowedOperationsT = Aws::Vector<AllowedOperation>>
115 void SetAllowedOperations(AllowedOperationsT&& value) { m_allowedOperationsHasBeenSet =
true; m_allowedOperations = std::forward<AllowedOperationsT>(value); }
116 template<
typename AllowedOperationsT = Aws::Vector<AllowedOperation>>
130 template<
typename TagsT = Aws::Vector<Tag>>
131 void SetTags(TagsT&& value) { m_tagsHasBeenSet =
true; m_tags = std::forward<TagsT>(value); }
132 template<
typename TagsT = Aws::Vector<Tag>>
134 template<
typename TagsT = Tag>
140 bool m_clientTokenHasBeenSet =
false;
143 bool m_grantNameHasBeenSet =
false;
146 bool m_licenseArnHasBeenSet =
false;
149 bool m_principalsHasBeenSet =
false;
152 bool m_homeRegionHasBeenSet =
false;
155 bool m_allowedOperationsHasBeenSet =
false;
158 bool m_tagsHasBeenSet =
false;
bool GrantNameHasBeenSet() const
bool HomeRegionHasBeenSet() const
void SetHomeRegion(HomeRegionT &&value)
void SetPrincipals(PrincipalsT &&value)
CreateGrantRequest & AddPrincipals(PrincipalsT &&value)
const Aws::Vector< AllowedOperation > & GetAllowedOperations() const
virtual const char * GetServiceRequestName() const override
CreateGrantRequest & WithTags(TagsT &&value)
const Aws::String & GetHomeRegion() const
bool ClientTokenHasBeenSet() const
const Aws::String & GetGrantName() const
CreateGrantRequest & WithGrantName(GrantNameT &&value)
bool TagsHasBeenSet() const
CreateGrantRequest & WithHomeRegion(HomeRegionT &&value)
bool LicenseArnHasBeenSet() const
const Aws::Vector< Aws::String > & GetPrincipals() const
CreateGrantRequest & WithLicenseArn(LicenseArnT &&value)
bool PrincipalsHasBeenSet() const
void SetAllowedOperations(AllowedOperationsT &&value)
void SetGrantName(GrantNameT &&value)
AWS_LICENSEMANAGER_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
CreateGrantRequest & WithPrincipals(PrincipalsT &&value)
const Aws::String & GetClientToken() const
CreateGrantRequest & WithAllowedOperations(AllowedOperationsT &&value)
void SetLicenseArn(LicenseArnT &&value)
AWS_LICENSEMANAGER_API Aws::String SerializePayload() const override
CreateGrantRequest & AddTags(TagsT &&value)
bool AllowedOperationsHasBeenSet() const
const Aws::String & GetLicenseArn() const
void SetTags(TagsT &&value)
AWS_LICENSEMANAGER_API CreateGrantRequest()=default
void SetClientToken(ClientTokenT &&value)
const Aws::Vector< Tag > & GetTags() const
CreateGrantRequest & AddAllowedOperations(AllowedOperation value)
CreateGrantRequest & WithClientToken(ClientTokenT &&value)
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