AWS SDK for C++

AWS SDK for C++ Version 1.11.608

Loading...
Searching...
No Matches
EffectivePolicy.h
1
6#pragma once
7#include <aws/organizations/Organizations_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/DateTime.h>
10#include <aws/organizations/model/EffectivePolicyType.h>
11#include <utility>
12
13namespace Aws
14{
15namespace Utils
16{
17namespace Json
18{
19 class JsonValue;
20 class JsonView;
21} // namespace Json
22} // namespace Utils
23namespace Organizations
24{
25namespace Model
26{
27
36 {
37 public:
38 AWS_ORGANIZATIONS_API EffectivePolicy() = default;
39 AWS_ORGANIZATIONS_API EffectivePolicy(Aws::Utils::Json::JsonView jsonValue);
40 AWS_ORGANIZATIONS_API EffectivePolicy& operator=(Aws::Utils::Json::JsonView jsonValue);
41 AWS_ORGANIZATIONS_API Aws::Utils::Json::JsonValue Jsonize() const;
42
43
45
48 inline const Aws::String& GetPolicyContent() const { return m_policyContent; }
49 inline bool PolicyContentHasBeenSet() const { return m_policyContentHasBeenSet; }
50 template<typename PolicyContentT = Aws::String>
51 void SetPolicyContent(PolicyContentT&& value) { m_policyContentHasBeenSet = true; m_policyContent = std::forward<PolicyContentT>(value); }
52 template<typename PolicyContentT = Aws::String>
53 EffectivePolicy& WithPolicyContent(PolicyContentT&& value) { SetPolicyContent(std::forward<PolicyContentT>(value)); return *this;}
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) { m_lastUpdatedTimestampHasBeenSet = true; m_lastUpdatedTimestamp = std::forward<LastUpdatedTimestampT>(value); }
64 template<typename LastUpdatedTimestampT = Aws::Utils::DateTime>
65 EffectivePolicy& WithLastUpdatedTimestamp(LastUpdatedTimestampT&& value) { SetLastUpdatedTimestamp(std::forward<LastUpdatedTimestampT>(value)); return *this;}
67
69
72 inline const Aws::String& GetTargetId() const { return m_targetId; }
73 inline bool TargetIdHasBeenSet() const { return m_targetIdHasBeenSet; }
74 template<typename TargetIdT = Aws::String>
75 void SetTargetId(TargetIdT&& value) { m_targetIdHasBeenSet = true; m_targetId = std::forward<TargetIdT>(value); }
76 template<typename TargetIdT = Aws::String>
77 EffectivePolicy& WithTargetId(TargetIdT&& value) { SetTargetId(std::forward<TargetIdT>(value)); return *this;}
79
81
84 inline EffectivePolicyType GetPolicyType() const { return m_policyType; }
85 inline bool PolicyTypeHasBeenSet() const { return m_policyTypeHasBeenSet; }
86 inline void SetPolicyType(EffectivePolicyType value) { m_policyTypeHasBeenSet = true; m_policyType = value; }
87 inline EffectivePolicy& WithPolicyType(EffectivePolicyType value) { SetPolicyType(value); return *this;}
89 private:
90
91 Aws::String m_policyContent;
92 bool m_policyContentHasBeenSet = false;
93
94 Aws::Utils::DateTime m_lastUpdatedTimestamp{};
95 bool m_lastUpdatedTimestampHasBeenSet = false;
96
97 Aws::String m_targetId;
98 bool m_targetIdHasBeenSet = false;
99
101 bool m_policyTypeHasBeenSet = false;
102 };
103
104} // namespace Model
105} // namespace Organizations
106} // 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