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/PrincipalType.h>
12#include <aws/ec2/model/Tag.h>
46 m_principalTypeHasBeenSet =
true;
47 m_principalType = value;
61 template <
typename PrincipalT = Aws::String>
63 m_principalHasBeenSet =
true;
64 m_principal = std::forward<PrincipalT>(value);
66 template <
typename PrincipalT = Aws::String>
79 template <
typename ServicePermissionIdT = Aws::String>
81 m_servicePermissionIdHasBeenSet =
true;
82 m_servicePermissionId = std::forward<ServicePermissionIdT>(value);
84 template <
typename ServicePermissionIdT = Aws::String>
97 template <
typename TagsT = Aws::Vector<Tag>>
99 m_tagsHasBeenSet =
true;
100 m_tags = std::forward<TagsT>(value);
102 template <
typename TagsT = Aws::Vector<Tag>>
104 SetTags(std::forward<TagsT>(value));
107 template <
typename TagsT = Tag>
109 m_tagsHasBeenSet =
true;
110 m_tags.emplace_back(std::forward<TagsT>(value));
121 template <
typename ServiceIdT = Aws::String>
123 m_serviceIdHasBeenSet =
true;
124 m_serviceId = std::forward<ServiceIdT>(value);
126 template <
typename ServiceIdT = Aws::String>
142 bool m_principalTypeHasBeenSet =
false;
143 bool m_principalHasBeenSet =
false;
144 bool m_servicePermissionIdHasBeenSet =
false;
145 bool m_tagsHasBeenSet =
false;
146 bool m_serviceIdHasBeenSet =
false;
void SetServicePermissionId(ServicePermissionIdT &&value)
AllowedPrincipal & WithPrincipal(PrincipalT &&value)
bool PrincipalHasBeenSet() const
AWS_EC2_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
AWS_EC2_API void OutputToStream(Aws::OStream &oStream, const char *location) const
const Aws::Vector< Tag > & GetTags() const
bool TagsHasBeenSet() const
void SetServiceId(ServiceIdT &&value)
AllowedPrincipal & AddTags(TagsT &&value)
const Aws::String & GetServiceId() const
PrincipalType GetPrincipalType() const
AWS_EC2_API AllowedPrincipal & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
AllowedPrincipal & WithTags(TagsT &&value)
void SetTags(TagsT &&value)
AllowedPrincipal & WithServiceId(ServiceIdT &&value)
AWS_EC2_API AllowedPrincipal()=default
bool PrincipalTypeHasBeenSet() const
void SetPrincipal(PrincipalT &&value)
AWS_EC2_API AllowedPrincipal(const Aws::Utils::Xml::XmlNode &xmlNode)
bool ServiceIdHasBeenSet() const
const Aws::String & GetServicePermissionId() const
AllowedPrincipal & WithPrincipalType(PrincipalType value)
const Aws::String & GetPrincipal() const
bool ServicePermissionIdHasBeenSet() const
AllowedPrincipal & WithServicePermissionId(ServicePermissionIdT &&value)
void SetPrincipalType(PrincipalType 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