AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
ResourcePolicy.h
1
6#pragma once
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>
10#include <utility>
11
12namespace Aws
13{
14namespace Utils
15{
16namespace Xml
17{
18 class XmlNode;
19} // namespace Xml
20} // namespace Utils
21namespace Redshift
22{
23namespace Model
24{
25
32 {
33 public:
34 AWS_REDSHIFT_API ResourcePolicy();
35 AWS_REDSHIFT_API ResourcePolicy(const Aws::Utils::Xml::XmlNode& xmlNode);
36 AWS_REDSHIFT_API ResourcePolicy& operator=(const Aws::Utils::Xml::XmlNode& xmlNode);
37
38 AWS_REDSHIFT_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
39 AWS_REDSHIFT_API void OutputToStream(Aws::OStream& oStream, const char* location) const;
40
41
43
46 inline const Aws::String& GetResourceArn() const{ return m_resourceArn; }
47 inline bool ResourceArnHasBeenSet() const { return m_resourceArnHasBeenSet; }
48 inline void SetResourceArn(const Aws::String& value) { m_resourceArnHasBeenSet = true; m_resourceArn = value; }
49 inline void SetResourceArn(Aws::String&& value) { m_resourceArnHasBeenSet = true; m_resourceArn = std::move(value); }
50 inline void SetResourceArn(const char* value) { m_resourceArnHasBeenSet = true; m_resourceArn.assign(value); }
51 inline ResourcePolicy& WithResourceArn(const Aws::String& value) { SetResourceArn(value); return *this;}
52 inline ResourcePolicy& WithResourceArn(Aws::String&& value) { SetResourceArn(std::move(value)); return *this;}
53 inline ResourcePolicy& WithResourceArn(const char* value) { SetResourceArn(value); return *this;}
55
57
60 inline const Aws::String& GetPolicy() const{ return m_policy; }
61 inline bool PolicyHasBeenSet() const { return m_policyHasBeenSet; }
62 inline void SetPolicy(const Aws::String& value) { m_policyHasBeenSet = true; m_policy = value; }
63 inline void SetPolicy(Aws::String&& value) { m_policyHasBeenSet = true; m_policy = std::move(value); }
64 inline void SetPolicy(const char* value) { m_policyHasBeenSet = true; m_policy.assign(value); }
65 inline ResourcePolicy& WithPolicy(const Aws::String& value) { SetPolicy(value); return *this;}
66 inline ResourcePolicy& WithPolicy(Aws::String&& value) { SetPolicy(std::move(value)); return *this;}
67 inline ResourcePolicy& WithPolicy(const char* value) { SetPolicy(value); return *this;}
69 private:
70
71 Aws::String m_resourceArn;
72 bool m_resourceArnHasBeenSet = false;
73
74 Aws::String m_policy;
75 bool m_policyHasBeenSet = false;
76 };
77
78} // namespace Model
79} // namespace Redshift
80} // namespace Aws
ResourcePolicy & WithPolicy(Aws::String &&value)
AWS_REDSHIFT_API ResourcePolicy & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
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