7#include <aws/core/utils/memory/stl/AWSStreamFwd.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/ec2/EC2_EXPORTS.h>
11#include <aws/ec2/model/IpamPolicyAllocationRule.h>
12#include <aws/ec2/model/IpamPolicyResourceType.h>
45 template <
typename IpamPolicyIdT = Aws::String>
47 m_ipamPolicyIdHasBeenSet =
true;
48 m_ipamPolicyId = std::forward<IpamPolicyIdT>(value);
50 template <
typename IpamPolicyIdT = Aws::String>
63 template <
typename LocaleT = Aws::String>
65 m_localeHasBeenSet =
true;
66 m_locale = std::forward<LocaleT>(value);
68 template <
typename LocaleT = Aws::String>
85 m_resourceTypeHasBeenSet =
true;
86 m_resourceType = value;
103 template <
typename AllocationRulesT = Aws::Vector<IpamPolicyAllocationRule>>
105 m_allocationRulesHasBeenSet =
true;
106 m_allocationRules = std::forward<AllocationRulesT>(value);
108 template <
typename AllocationRulesT = Aws::Vector<IpamPolicyAllocationRule>>
113 template <
typename AllocationRulesT = IpamPolicyAllocationRule>
115 m_allocationRulesHasBeenSet =
true;
116 m_allocationRules.emplace_back(std::forward<AllocationRulesT>(value));
128 bool m_ipamPolicyIdHasBeenSet =
false;
129 bool m_localeHasBeenSet =
false;
130 bool m_resourceTypeHasBeenSet =
false;
131 bool m_allocationRulesHasBeenSet =
false;
void SetAllocationRules(AllocationRulesT &&value)
bool IpamPolicyIdHasBeenSet() const
AWS_EC2_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
const Aws::String & GetIpamPolicyId() const
bool LocaleHasBeenSet() const
AWS_EC2_API IpamPolicyDocument(const Aws::Utils::Xml::XmlNode &xmlNode)
IpamPolicyDocument & AddAllocationRules(AllocationRulesT &&value)
IpamPolicyDocument & WithIpamPolicyId(IpamPolicyIdT &&value)
const Aws::Vector< IpamPolicyAllocationRule > & GetAllocationRules() const
AWS_EC2_API void OutputToStream(Aws::OStream &oStream, const char *location) const
bool ResourceTypeHasBeenSet() const
AWS_EC2_API IpamPolicyDocument & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
void SetLocale(LocaleT &&value)
AWS_EC2_API IpamPolicyDocument()=default
bool AllocationRulesHasBeenSet() const
void SetIpamPolicyId(IpamPolicyIdT &&value)
IpamPolicyDocument & WithAllocationRules(AllocationRulesT &&value)
IpamPolicyResourceType GetResourceType() const
IpamPolicyDocument & WithLocale(LocaleT &&value)
IpamPolicyDocument & WithResourceType(IpamPolicyResourceType value)
const Aws::String & GetLocale() const
void SetResourceType(IpamPolicyResourceType value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
std::basic_ostream< char, std::char_traits< char > > OStream