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>
63 inline void SetPrincipal(
const char* value) { m_principalHasBeenSet =
true; m_principal.assign(value); }
77 inline void SetServicePermissionId(
const char* value) { m_servicePermissionIdHasBeenSet =
true; m_servicePermissionId.assign(value); }
91 inline void SetServiceId(
const char* value) { m_serviceIdHasBeenSet =
true; m_serviceId.assign(value); }
99 bool m_principalTypeHasBeenSet =
false;
102 bool m_principalHasBeenSet =
false;
105 bool m_servicePermissionIdHasBeenSet =
false;
108 bool m_serviceIdHasBeenSet =
false;
AddedPrincipal & WithPrincipal(const char *value)
const Aws::String & GetPrincipal() const
AddedPrincipal & WithServiceId(const char *value)
bool ServiceIdHasBeenSet() const
AddedPrincipal & WithServicePermissionId(const Aws::String &value)
AWS_EC2_API AddedPrincipal()
bool PrincipalHasBeenSet() const
void SetServiceId(const char *value)
void SetPrincipal(const Aws::String &value)
const Aws::String & GetServiceId() const
AWS_EC2_API void OutputToStream(Aws::OStream &oStream, const char *location) const
AddedPrincipal & WithPrincipalType(const PrincipalType &value)
void SetServicePermissionId(Aws::String &&value)
void SetPrincipal(Aws::String &&value)
void SetServicePermissionId(const char *value)
AddedPrincipal & WithPrincipal(Aws::String &&value)
void SetServiceId(const Aws::String &value)
void SetServicePermissionId(const Aws::String &value)
AddedPrincipal & WithPrincipal(const Aws::String &value)
AWS_EC2_API AddedPrincipal & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
bool ServicePermissionIdHasBeenSet() const
void SetPrincipalType(PrincipalType &&value)
AWS_EC2_API AddedPrincipal(const Aws::Utils::Xml::XmlNode &xmlNode)
const Aws::String & GetServicePermissionId() const
bool PrincipalTypeHasBeenSet() const
void SetServiceId(Aws::String &&value)
AddedPrincipal & WithServicePermissionId(const char *value)
AddedPrincipal & WithPrincipalType(PrincipalType &&value)
AddedPrincipal & WithServiceId(Aws::String &&value)
void SetPrincipal(const char *value)
AWS_EC2_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
AddedPrincipal & WithServiceId(const Aws::String &value)
void SetPrincipalType(const PrincipalType &value)
AddedPrincipal & WithServicePermissionId(Aws::String &&value)
const PrincipalType & GetPrincipalType() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::basic_ostream< char, std::char_traits< char > > OStream