7#include <aws/redshift-serverless/RedshiftServerless_EXPORTS.h>
8#include <aws/redshift-serverless/RedshiftServerlessRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
14namespace RedshiftServerless
50 inline void SetPolicy(
const char* value) { m_policyHasBeenSet =
true; m_policy.assign(value); }
65 inline void SetResourceArn(
const char* value) { m_resourceArnHasBeenSet =
true; m_resourceArn.assign(value); }
73 bool m_policyHasBeenSet =
false;
76 bool m_resourceArnHasBeenSet =
false;
void SetPolicy(const Aws::String &value)
const Aws::String & GetPolicy() const
PutResourcePolicyRequest & WithPolicy(const Aws::String &value)
bool PolicyHasBeenSet() const
void SetResourceArn(Aws::String &&value)
void SetPolicy(const char *value)
PutResourcePolicyRequest & WithResourceArn(const Aws::String &value)
void SetPolicy(Aws::String &&value)
bool ResourceArnHasBeenSet() const
AWS_REDSHIFTSERVERLESS_API Aws::String SerializePayload() const override
PutResourcePolicyRequest & WithResourceArn(Aws::String &&value)
virtual const char * GetServiceRequestName() const override
void SetResourceArn(const char *value)
AWS_REDSHIFTSERVERLESS_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
void SetResourceArn(const Aws::String &value)
PutResourcePolicyRequest & WithPolicy(const char *value)
PutResourcePolicyRequest & WithResourceArn(const char *value)
AWS_REDSHIFTSERVERLESS_API PutResourcePolicyRequest()
const Aws::String & GetResourceArn() const
PutResourcePolicyRequest & WithPolicy(Aws::String &&value)
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String