AWS SDK for C++  1.9.105
AWS SDK for C++
Policy.h
Go to the documentation of this file.
1 
6 #pragma once
10 #include <utility>
11 
12 namespace Aws
13 {
14 namespace Utils
15 {
16 namespace Json
17 {
18  class JsonValue;
19  class JsonView;
20 } // namespace Json
21 } // namespace Utils
22 namespace Organizations
23 {
24 namespace Model
25 {
26 
35  {
36  public:
37  Policy();
41 
42 
46  inline const PolicySummary& GetPolicySummary() const{ return m_policySummary; }
47 
51  inline bool PolicySummaryHasBeenSet() const { return m_policySummaryHasBeenSet; }
52 
56  inline void SetPolicySummary(const PolicySummary& value) { m_policySummaryHasBeenSet = true; m_policySummary = value; }
57 
61  inline void SetPolicySummary(PolicySummary&& value) { m_policySummaryHasBeenSet = true; m_policySummary = std::move(value); }
62 
66  inline Policy& WithPolicySummary(const PolicySummary& value) { SetPolicySummary(value); return *this;}
67 
71  inline Policy& WithPolicySummary(PolicySummary&& value) { SetPolicySummary(std::move(value)); return *this;}
72 
73 
77  inline const Aws::String& GetContent() const{ return m_content; }
78 
82  inline bool ContentHasBeenSet() const { return m_contentHasBeenSet; }
83 
87  inline void SetContent(const Aws::String& value) { m_contentHasBeenSet = true; m_content = value; }
88 
92  inline void SetContent(Aws::String&& value) { m_contentHasBeenSet = true; m_content = std::move(value); }
93 
97  inline void SetContent(const char* value) { m_contentHasBeenSet = true; m_content.assign(value); }
98 
102  inline Policy& WithContent(const Aws::String& value) { SetContent(value); return *this;}
103 
107  inline Policy& WithContent(Aws::String&& value) { SetContent(std::move(value)); return *this;}
108 
112  inline Policy& WithContent(const char* value) { SetContent(value); return *this;}
113 
114  private:
115 
116  PolicySummary m_policySummary;
117  bool m_policySummaryHasBeenSet;
118 
119  Aws::String m_content;
120  bool m_contentHasBeenSet;
121  };
122 
123 } // namespace Model
124 } // namespace Organizations
125 } // namespace Aws
Aws::Organizations::Model::Policy
Definition: Policy.h:35
Aws::Organizations::Model::Policy::SetContent
void SetContent(const char *value)
Definition: Policy.h:97
Aws::Organizations::Model::Policy::operator=
Policy & operator=(Aws::Utils::Json::JsonView jsonValue)
Aws::Organizations::Model::Policy::SetContent
void SetContent(const Aws::String &value)
Definition: Policy.h:87
Aws::Organizations::Model::Policy::WithContent
Policy & WithContent(const Aws::String &value)
Definition: Policy.h:102
Aws::Organizations::Model::Policy::Policy
Policy()
Aws::Organizations::Model::Policy::GetContent
const Aws::String & GetContent() const
Definition: Policy.h:77
Aws::Organizations::Model::Policy::ContentHasBeenSet
bool ContentHasBeenSet() const
Definition: Policy.h:82
Aws::Organizations::Model::Policy::WithPolicySummary
Policy & WithPolicySummary(PolicySummary &&value)
Definition: Policy.h:71
AWS_ORGANIZATIONS_API
#define AWS_ORGANIZATIONS_API
Definition: Organizations_EXPORTS.h:28
Aws::Organizations::Model::Policy::PolicySummaryHasBeenSet
bool PolicySummaryHasBeenSet() const
Definition: Policy.h:51
PolicySummary.h
Aws::Utils::Json::JsonView
Definition: JsonSerializer.h:235
AWSString.h
Aws::Utils::Json::JsonValue
Definition: JsonSerializer.h:33
Aws::Organizations::Model::PolicySummary
Definition: PolicySummary.h:35
Aws::Organizations::Model::Policy::SetPolicySummary
void SetPolicySummary(const PolicySummary &value)
Definition: Policy.h:56
Aws::Organizations::Model::Policy::GetPolicySummary
const PolicySummary & GetPolicySummary() const
Definition: Policy.h:46
Aws::Organizations::Model::Policy::Policy
Policy(Aws::Utils::Json::JsonView jsonValue)
Aws::Organizations::Model::Policy::WithContent
Policy & WithContent(const char *value)
Definition: Policy.h:112
Aws
Definition: AccessManagementClient.h:15
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Organizations_EXPORTS.h
Aws::Organizations::Model::Policy::SetContent
void SetContent(Aws::String &&value)
Definition: Policy.h:92
Aws::Organizations::Model::Policy::SetPolicySummary
void SetPolicySummary(PolicySummary &&value)
Definition: Policy.h:61
Aws::Organizations::Model::Policy::WithContent
Policy & WithContent(Aws::String &&value)
Definition: Policy.h:107
Aws::Organizations::Model::Policy::Jsonize
Aws::Utils::Json::JsonValue Jsonize() const
Aws::Organizations::Model::Policy::WithPolicySummary
Policy & WithPolicySummary(const PolicySummary &value)
Definition: Policy.h:66