AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
Policy.h
1
6#pragma once
7#include <aws/organizations/Organizations_EXPORTS.h>
8#include <aws/organizations/model/PolicySummary.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <utility>
11
12namespace Aws
13{
14namespace Utils
15{
16namespace Json
17{
18 class JsonValue;
19 class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace Organizations
23{
24namespace Model
25{
26
34 class Policy
35 {
36 public:
37 AWS_ORGANIZATIONS_API Policy();
38 AWS_ORGANIZATIONS_API Policy(Aws::Utils::Json::JsonView jsonValue);
39 AWS_ORGANIZATIONS_API Policy& operator=(Aws::Utils::Json::JsonView jsonValue);
40 AWS_ORGANIZATIONS_API Aws::Utils::Json::JsonValue Jsonize() const;
41
42
44
47 inline const PolicySummary& GetPolicySummary() const{ return m_policySummary; }
48 inline bool PolicySummaryHasBeenSet() const { return m_policySummaryHasBeenSet; }
49 inline void SetPolicySummary(const PolicySummary& value) { m_policySummaryHasBeenSet = true; m_policySummary = value; }
50 inline void SetPolicySummary(PolicySummary&& value) { m_policySummaryHasBeenSet = true; m_policySummary = std::move(value); }
51 inline Policy& WithPolicySummary(const PolicySummary& value) { SetPolicySummary(value); return *this;}
52 inline Policy& WithPolicySummary(PolicySummary&& value) { SetPolicySummary(std::move(value)); return *this;}
54
56
59 inline const Aws::String& GetContent() const{ return m_content; }
60 inline bool ContentHasBeenSet() const { return m_contentHasBeenSet; }
61 inline void SetContent(const Aws::String& value) { m_contentHasBeenSet = true; m_content = value; }
62 inline void SetContent(Aws::String&& value) { m_contentHasBeenSet = true; m_content = std::move(value); }
63 inline void SetContent(const char* value) { m_contentHasBeenSet = true; m_content.assign(value); }
64 inline Policy& WithContent(const Aws::String& value) { SetContent(value); return *this;}
65 inline Policy& WithContent(Aws::String&& value) { SetContent(std::move(value)); return *this;}
66 inline Policy& WithContent(const char* value) { SetContent(value); return *this;}
68 private:
69
70 PolicySummary m_policySummary;
71 bool m_policySummaryHasBeenSet = false;
72
73 Aws::String m_content;
74 bool m_contentHasBeenSet = false;
75 };
76
77} // namespace Model
78} // namespace Organizations
79} // namespace Aws
AWS_ORGANIZATIONS_API Policy(Aws::Utils::Json::JsonView jsonValue)
void SetContent(const char *value)
Definition Policy.h:63
Policy & WithPolicySummary(const PolicySummary &value)
Definition Policy.h:51
Policy & WithContent(const char *value)
Definition Policy.h:66
AWS_ORGANIZATIONS_API Policy()
AWS_ORGANIZATIONS_API Policy & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetPolicySummary(PolicySummary &&value)
Definition Policy.h:50
Policy & WithContent(const Aws::String &value)
Definition Policy.h:64
Policy & WithContent(Aws::String &&value)
Definition Policy.h:65
Policy & WithPolicySummary(PolicySummary &&value)
Definition Policy.h:52
const PolicySummary & GetPolicySummary() const
Definition Policy.h:47
const Aws::String & GetContent() const
Definition Policy.h:59
bool PolicySummaryHasBeenSet() const
Definition Policy.h:48
void SetContent(Aws::String &&value)
Definition Policy.h:62
AWS_ORGANIZATIONS_API Aws::Utils::Json::JsonValue Jsonize() const
void SetPolicySummary(const PolicySummary &value)
Definition Policy.h:49
void SetContent(const Aws::String &value)
Definition Policy.h:61
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue