7#include <aws/ec2/EC2_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSStreamFwd.h>
9#include <aws/ec2/model/PrincipalType.h>
10#include <aws/core/utils/memory/stl/AWSString.h>
11#include <aws/core/utils/memory/stl/AWSVector.h>
12#include <aws/ec2/model/Tag.h>
61 template<
typename PrincipalT = Aws::String>
62 void SetPrincipal(PrincipalT&& value) { m_principalHasBeenSet =
true; m_principal = std::forward<PrincipalT>(value); }
63 template<
typename PrincipalT = Aws::String>
73 template<
typename ServicePermissionIdT = Aws::String>
74 void SetServicePermissionId(ServicePermissionIdT&& value) { m_servicePermissionIdHasBeenSet =
true; m_servicePermissionId = std::forward<ServicePermissionIdT>(value); }
75 template<
typename ServicePermissionIdT = Aws::String>
85 template<
typename TagsT = Aws::Vector<Tag>>
86 void SetTags(TagsT&& value) { m_tagsHasBeenSet =
true; m_tags = std::forward<TagsT>(value); }
87 template<
typename TagsT = Aws::Vector<Tag>>
89 template<
typename TagsT = Tag>
90 AllowedPrincipal&
AddTags(TagsT&& value) { m_tagsHasBeenSet =
true; m_tags.emplace_back(std::forward<TagsT>(value));
return *
this; }
99 template<
typename ServiceIdT = Aws::String>
100 void SetServiceId(ServiceIdT&& value) { m_serviceIdHasBeenSet =
true; m_serviceId = std::forward<ServiceIdT>(value); }
101 template<
typename ServiceIdT = Aws::String>
107 bool m_principalTypeHasBeenSet =
false;
110 bool m_principalHasBeenSet =
false;
113 bool m_servicePermissionIdHasBeenSet =
false;
116 bool m_tagsHasBeenSet =
false;
119 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