7#include <aws/redshift-serverless/RedshiftServerless_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
21namespace RedshiftServerless
49 inline void SetPolicy(
const char* value) { m_policyHasBeenSet =
true; m_policy.assign(value); }
63 inline void SetResourceArn(
const char* value) { m_resourceArnHasBeenSet =
true; m_resourceArn.assign(value); }
71 bool m_policyHasBeenSet =
false;
74 bool m_resourceArnHasBeenSet =
false;
ResourcePolicy & WithPolicy(const Aws::String &value)
ResourcePolicy & WithResourceArn(const Aws::String &value)
void SetPolicy(Aws::String &&value)
AWS_REDSHIFTSERVERLESS_API ResourcePolicy()
const Aws::String & GetResourceArn() const
void SetResourceArn(Aws::String &&value)
AWS_REDSHIFTSERVERLESS_API ResourcePolicy(Aws::Utils::Json::JsonView jsonValue)
void SetPolicy(const char *value)
void SetPolicy(const Aws::String &value)
ResourcePolicy & WithResourceArn(const char *value)
AWS_REDSHIFTSERVERLESS_API ResourcePolicy & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetResourceArn(const Aws::String &value)
ResourcePolicy & WithPolicy(const char *value)
ResourcePolicy & WithPolicy(Aws::String &&value)
bool PolicyHasBeenSet() const
const Aws::String & GetPolicy() const
void SetResourceArn(const char *value)
ResourcePolicy & WithResourceArn(Aws::String &&value)
bool ResourceArnHasBeenSet() const
AWS_REDSHIFTSERVERLESS_API Aws::Utils::Json::JsonValue Jsonize() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue