7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/license-manager/LicenseManagerRequest.h>
10#include <aws/license-manager/LicenseManager_EXPORTS.h>
11#include <aws/license-manager/model/AllowedOperation.h>
12#include <aws/license-manager/model/Tag.h>
17namespace LicenseManager {
43 template <
typename ClientTokenT = Aws::String>
45 m_clientTokenHasBeenSet =
true;
46 m_clientToken = std::forward<ClientTokenT>(value);
48 template <
typename ClientTokenT = Aws::String>
61 template <
typename GrantNameT = Aws::String>
63 m_grantNameHasBeenSet =
true;
64 m_grantName = std::forward<GrantNameT>(value);
66 template <
typename GrantNameT = Aws::String>
79 template <
typename LicenseArnT = Aws::String>
81 m_licenseArnHasBeenSet =
true;
82 m_licenseArn = std::forward<LicenseArnT>(value);
84 template <
typename LicenseArnT = Aws::String>
102 template <
typename PrincipalsT = Aws::Vector<Aws::String>>
104 m_principalsHasBeenSet =
true;
105 m_principals = std::forward<PrincipalsT>(value);
107 template <
typename PrincipalsT = Aws::Vector<Aws::String>>
112 template <
typename PrincipalsT = Aws::String>
114 m_principalsHasBeenSet =
true;
115 m_principals.emplace_back(std::forward<PrincipalsT>(value));
126 template <
typename HomeRegionT = Aws::String>
128 m_homeRegionHasBeenSet =
true;
129 m_homeRegion = std::forward<HomeRegionT>(value);
131 template <
typename HomeRegionT = Aws::String>
144 template <
typename AllowedOperationsT = Aws::Vector<AllowedOperation>>
146 m_allowedOperationsHasBeenSet =
true;
147 m_allowedOperations = std::forward<AllowedOperationsT>(value);
149 template <
typename AllowedOperationsT = Aws::Vector<AllowedOperation>>
155 m_allowedOperationsHasBeenSet =
true;
156 m_allowedOperations.push_back(value);
170 template <
typename TagsT = Aws::Vector<Tag>>
172 m_tagsHasBeenSet =
true;
173 m_tags = std::forward<TagsT>(value);
175 template <
typename TagsT = Aws::Vector<Tag>>
177 SetTags(std::forward<TagsT>(value));
180 template <
typename TagsT = Tag>
182 m_tagsHasBeenSet =
true;
183 m_tags.emplace_back(std::forward<TagsT>(value));
201 bool m_clientTokenHasBeenSet =
false;
202 bool m_grantNameHasBeenSet =
false;
203 bool m_licenseArnHasBeenSet =
false;
204 bool m_principalsHasBeenSet =
false;
205 bool m_homeRegionHasBeenSet =
false;
206 bool m_allowedOperationsHasBeenSet =
false;
207 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