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>
65 inline void SetPrincipal(
const char* value) { m_principalHasBeenSet =
true; m_principal.assign(value); }
79 inline void SetServicePermissionId(
const char* value) { m_servicePermissionIdHasBeenSet =
true; m_servicePermissionId.assign(value); }
107 inline void SetServiceId(
const char* value) { m_serviceIdHasBeenSet =
true; m_serviceId.assign(value); }
115 bool m_principalTypeHasBeenSet =
false;
118 bool m_principalHasBeenSet =
false;
121 bool m_servicePermissionIdHasBeenSet =
false;
124 bool m_tagsHasBeenSet =
false;
127 bool m_serviceIdHasBeenSet =
false;
void SetServiceId(const char *value)
bool PrincipalHasBeenSet() const
AWS_EC2_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
void SetServicePermissionId(const char *value)
AWS_EC2_API void OutputToStream(Aws::OStream &oStream, const char *location) const
const Aws::Vector< Tag > & GetTags() const
AllowedPrincipal & WithServicePermissionId(const char *value)
bool TagsHasBeenSet() const
void SetServiceId(Aws::String &&value)
AllowedPrincipal & WithServiceId(const char *value)
AllowedPrincipal & WithTags(const Aws::Vector< Tag > &value)
const PrincipalType & GetPrincipalType() const
const Aws::String & GetServiceId() const
void SetServicePermissionId(Aws::String &&value)
void SetPrincipal(const char *value)
AWS_EC2_API AllowedPrincipal & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
void SetPrincipalType(const PrincipalType &value)
AllowedPrincipal & WithTags(Aws::Vector< Tag > &&value)
void SetPrincipal(Aws::String &&value)
AllowedPrincipal & WithPrincipalType(const PrincipalType &value)
void SetServiceId(const Aws::String &value)
AllowedPrincipal & WithServiceId(Aws::String &&value)
bool PrincipalTypeHasBeenSet() const
AWS_EC2_API AllowedPrincipal(const Aws::Utils::Xml::XmlNode &xmlNode)
AllowedPrincipal & AddTags(Tag &&value)
bool ServiceIdHasBeenSet() const
void SetTags(const Aws::Vector< Tag > &value)
const Aws::String & GetServicePermissionId() const
AWS_EC2_API AllowedPrincipal()
void SetPrincipal(const Aws::String &value)
AllowedPrincipal & WithServicePermissionId(Aws::String &&value)
void SetPrincipalType(PrincipalType &&value)
const Aws::String & GetPrincipal() const
bool ServicePermissionIdHasBeenSet() const
AllowedPrincipal & WithPrincipal(Aws::String &&value)
AllowedPrincipal & WithPrincipal(const char *value)
void SetTags(Aws::Vector< Tag > &&value)
AllowedPrincipal & WithPrincipalType(PrincipalType &&value)
AllowedPrincipal & WithPrincipal(const Aws::String &value)
AllowedPrincipal & AddTags(const Tag &value)
void SetServicePermissionId(const Aws::String &value)
AllowedPrincipal & WithServiceId(const Aws::String &value)
AllowedPrincipal & WithServicePermissionId(const Aws::String &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