7#include <aws/redshift/Redshift_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSStreamFwd.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
50 inline void SetResourceArn(
const char* value) { m_resourceArnHasBeenSet =
true; m_resourceArn.assign(value); }
64 inline void SetPolicy(
const char* value) { m_policyHasBeenSet =
true; m_policy.assign(value); }
72 bool m_resourceArnHasBeenSet =
false;
75 bool m_policyHasBeenSet =
false;
ResourcePolicy & WithPolicy(Aws::String &&value)
AWS_REDSHIFT_API ResourcePolicy & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
AWS_REDSHIFT_API ResourcePolicy()
bool PolicyHasBeenSet() const
bool ResourceArnHasBeenSet() const
void SetPolicy(const Aws::String &value)
void SetResourceArn(const Aws::String &value)
const Aws::String & GetResourceArn() const
AWS_REDSHIFT_API void OutputToStream(Aws::OStream &oStream, const char *location) const
const Aws::String & GetPolicy() const
ResourcePolicy & WithPolicy(const Aws::String &value)
void SetResourceArn(const char *value)
AWS_REDSHIFT_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
ResourcePolicy & WithResourceArn(const Aws::String &value)
ResourcePolicy & WithPolicy(const char *value)
void SetPolicy(const char *value)
void SetPolicy(Aws::String &&value)
ResourcePolicy & WithResourceArn(const char *value)
void SetResourceArn(Aws::String &&value)
AWS_REDSHIFT_API ResourcePolicy(const Aws::Utils::Xml::XmlNode &xmlNode)
ResourcePolicy & WithResourceArn(Aws::String &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::basic_ostream< char, std::char_traits< char > > OStream