AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetPolicyContent(const Aws::String& value) { m_policyContentHasBeenSet = true; m_policyContent = value; }
51 inline void SetPolicyContent(Aws::String&& value) { m_policyContentHasBeenSet = true; m_policyContent = std::move(value); }
52 inline void SetPolicyContent(const char* value) { m_policyContentHasBeenSet = true; m_policyContent.assign(value); }
53 inline EffectivePolicy& WithPolicyContent(const Aws::String& value) { SetPolicyContent(value); return *this;}
54 inline EffectivePolicy& WithPolicyContent(Aws::String&& value) { SetPolicyContent(std::move(value)); return *this;}
55 inline EffectivePolicy& WithPolicyContent(const char* value) { SetPolicyContent(value); return *this;}
57
59
62 inline const Aws::Utils::DateTime& GetLastUpdatedTimestamp() const{ return m_lastUpdatedTimestamp; }
63 inline bool LastUpdatedTimestampHasBeenSet() const { return m_lastUpdatedTimestampHasBeenSet; }
64 inline void SetLastUpdatedTimestamp(const Aws::Utils::DateTime& value) { m_lastUpdatedTimestampHasBeenSet = true; m_lastUpdatedTimestamp = value; }
65 inline void SetLastUpdatedTimestamp(Aws::Utils::DateTime&& value) { m_lastUpdatedTimestampHasBeenSet = true; m_lastUpdatedTimestamp = std::move(value); }
67 inline EffectivePolicy& WithLastUpdatedTimestamp(Aws::Utils::DateTime&& value) { SetLastUpdatedTimestamp(std::move(value)); return *this;}
69
71
74 inline const Aws::String& GetTargetId() const{ return m_targetId; }
75 inline bool TargetIdHasBeenSet() const { return m_targetIdHasBeenSet; }
76 inline void SetTargetId(const Aws::String& value) { m_targetIdHasBeenSet = true; m_targetId = value; }
77 inline void SetTargetId(Aws::String&& value) { m_targetIdHasBeenSet = true; m_targetId = std::move(value); }
78 inline void SetTargetId(const char* value) { m_targetIdHasBeenSet = true; m_targetId.assign(value); }
79 inline EffectivePolicy& WithTargetId(const Aws::String& value) { SetTargetId(value); return *this;}
80 inline EffectivePolicy& WithTargetId(Aws::String&& value) { SetTargetId(std::move(value)); return *this;}
81 inline EffectivePolicy& WithTargetId(const char* value) { SetTargetId(value); return *this;}
83
85
88 inline const EffectivePolicyType& GetPolicyType() const{ return m_policyType; }
89 inline bool PolicyTypeHasBeenSet() const { return m_policyTypeHasBeenSet; }
90 inline void SetPolicyType(const EffectivePolicyType& value) { m_policyTypeHasBeenSet = true; m_policyType = value; }
91 inline void SetPolicyType(EffectivePolicyType&& value) { m_policyTypeHasBeenSet = true; m_policyType = std::move(value); }
92 inline EffectivePolicy& WithPolicyType(const EffectivePolicyType& value) { SetPolicyType(value); return *this;}
93 inline EffectivePolicy& WithPolicyType(EffectivePolicyType&& value) { SetPolicyType(std::move(value)); return *this;}
95 private:
96
97 Aws::String m_policyContent;
98 bool m_policyContentHasBeenSet = false;
99
100 Aws::Utils::DateTime m_lastUpdatedTimestamp;
101 bool m_lastUpdatedTimestampHasBeenSet = false;
102
103 Aws::String m_targetId;
104 bool m_targetIdHasBeenSet = false;
105
106 EffectivePolicyType m_policyType;
107 bool m_policyTypeHasBeenSet = false;
108 };
109
110} // namespace Model
111} // namespace Organizations
112} // namespace Aws
EffectivePolicy & WithPolicyType(EffectivePolicyType &&value)
AWS_ORGANIZATIONS_API EffectivePolicy(Aws::Utils::Json::JsonView jsonValue)
EffectivePolicy & WithPolicyType(const EffectivePolicyType &value)
const EffectivePolicyType & GetPolicyType() const
void SetTargetId(const Aws::String &value)
void SetLastUpdatedTimestamp(Aws::Utils::DateTime &&value)
const Aws::String & GetPolicyContent() const
EffectivePolicy & WithLastUpdatedTimestamp(const Aws::Utils::DateTime &value)
EffectivePolicy & WithPolicyContent(const char *value)
EffectivePolicy & WithTargetId(Aws::String &&value)
EffectivePolicy & WithPolicyContent(const Aws::String &value)
EffectivePolicy & WithTargetId(const Aws::String &value)
void SetPolicyType(const EffectivePolicyType &value)
void SetLastUpdatedTimestamp(const Aws::Utils::DateTime &value)
EffectivePolicy & WithLastUpdatedTimestamp(Aws::Utils::DateTime &&value)
AWS_ORGANIZATIONS_API Aws::Utils::Json::JsonValue Jsonize() const
EffectivePolicy & WithTargetId(const char *value)
AWS_ORGANIZATIONS_API EffectivePolicy & operator=(Aws::Utils::Json::JsonView jsonValue)
EffectivePolicy & WithPolicyContent(Aws::String &&value)
void SetPolicyContent(const Aws::String &value)
const Aws::Utils::DateTime & GetLastUpdatedTimestamp() const
const Aws::String & GetTargetId() const
void SetPolicyType(EffectivePolicyType &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue