AWS SDK for C++

AWS SDK for C++ Version 1.11.770

Loading...
Searching...
No Matches
EffectivePolicy.h
1
6#pragma once
7#include <aws/core/utils/DateTime.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/organizations/Organizations_EXPORTS.h>
10#include <aws/organizations/model/EffectivePolicyType.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Utils {
16namespace Json {
17class JsonValue;
18class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace Organizations {
22namespace Model {
23
32 public:
33 AWS_ORGANIZATIONS_API EffectivePolicy() = default;
34 AWS_ORGANIZATIONS_API EffectivePolicy(Aws::Utils::Json::JsonView jsonValue);
35 AWS_ORGANIZATIONS_API EffectivePolicy& operator=(Aws::Utils::Json::JsonView jsonValue);
36 AWS_ORGANIZATIONS_API Aws::Utils::Json::JsonValue Jsonize() const;
37
39
42 inline const Aws::String& GetPolicyContent() const { return m_policyContent; }
43 inline bool PolicyContentHasBeenSet() const { return m_policyContentHasBeenSet; }
44 template <typename PolicyContentT = Aws::String>
45 void SetPolicyContent(PolicyContentT&& value) {
46 m_policyContentHasBeenSet = true;
47 m_policyContent = std::forward<PolicyContentT>(value);
48 }
49 template <typename PolicyContentT = Aws::String>
50 EffectivePolicy& WithPolicyContent(PolicyContentT&& value) {
51 SetPolicyContent(std::forward<PolicyContentT>(value));
52 return *this;
53 }
55
57
60 inline const Aws::Utils::DateTime& GetLastUpdatedTimestamp() const { return m_lastUpdatedTimestamp; }
61 inline bool LastUpdatedTimestampHasBeenSet() const { return m_lastUpdatedTimestampHasBeenSet; }
62 template <typename LastUpdatedTimestampT = Aws::Utils::DateTime>
63 void SetLastUpdatedTimestamp(LastUpdatedTimestampT&& value) {
64 m_lastUpdatedTimestampHasBeenSet = true;
65 m_lastUpdatedTimestamp = std::forward<LastUpdatedTimestampT>(value);
66 }
67 template <typename LastUpdatedTimestampT = Aws::Utils::DateTime>
68 EffectivePolicy& WithLastUpdatedTimestamp(LastUpdatedTimestampT&& value) {
69 SetLastUpdatedTimestamp(std::forward<LastUpdatedTimestampT>(value));
70 return *this;
71 }
73
75
78 inline const Aws::String& GetTargetId() const { return m_targetId; }
79 inline bool TargetIdHasBeenSet() const { return m_targetIdHasBeenSet; }
80 template <typename TargetIdT = Aws::String>
81 void SetTargetId(TargetIdT&& value) {
82 m_targetIdHasBeenSet = true;
83 m_targetId = std::forward<TargetIdT>(value);
84 }
85 template <typename TargetIdT = Aws::String>
86 EffectivePolicy& WithTargetId(TargetIdT&& value) {
87 SetTargetId(std::forward<TargetIdT>(value));
88 return *this;
89 }
91
93
96 inline EffectivePolicyType GetPolicyType() const { return m_policyType; }
97 inline bool PolicyTypeHasBeenSet() const { return m_policyTypeHasBeenSet; }
99 m_policyTypeHasBeenSet = true;
100 m_policyType = value;
101 }
103 SetPolicyType(value);
104 return *this;
105 }
107 private:
108 Aws::String m_policyContent;
109
110 Aws::Utils::DateTime m_lastUpdatedTimestamp{};
111
112 Aws::String m_targetId;
113
115 bool m_policyContentHasBeenSet = false;
116 bool m_lastUpdatedTimestampHasBeenSet = false;
117 bool m_targetIdHasBeenSet = false;
118 bool m_policyTypeHasBeenSet = false;
119};
120
121} // namespace Model
122} // namespace Organizations
123} // namespace Aws
AWS_ORGANIZATIONS_API EffectivePolicy(Aws::Utils::Json::JsonView jsonValue)
EffectivePolicy & WithLastUpdatedTimestamp(LastUpdatedTimestampT &&value)
void SetPolicyType(EffectivePolicyType value)
EffectivePolicy & WithTargetId(TargetIdT &&value)
const Aws::String & GetPolicyContent() const
EffectivePolicy & WithPolicyType(EffectivePolicyType value)
EffectivePolicyType GetPolicyType() const
AWS_ORGANIZATIONS_API Aws::Utils::Json::JsonValue Jsonize() const
void SetPolicyContent(PolicyContentT &&value)
void SetLastUpdatedTimestamp(LastUpdatedTimestampT &&value)
AWS_ORGANIZATIONS_API EffectivePolicy & operator=(Aws::Utils::Json::JsonView jsonValue)
const Aws::Utils::DateTime & GetLastUpdatedTimestamp() const
EffectivePolicy & WithPolicyContent(PolicyContentT &&value)
const Aws::String & GetTargetId() const
AWS_ORGANIZATIONS_API EffectivePolicy()=default
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue