AWS SDK for C++  1.9.104
AWS SDK for C++
EffectivePolicy.h
Go to the documentation of this file.
1 
6 #pragma once
11 #include <utility>
12 
13 namespace Aws
14 {
15 namespace Utils
16 {
17 namespace Json
18 {
19  class JsonValue;
20  class JsonView;
21 } // namespace Json
22 } // namespace Utils
23 namespace Organizations
24 {
25 namespace Model
26 {
27 
36  {
37  public:
42 
43 
47  inline const Aws::String& GetPolicyContent() const{ return m_policyContent; }
48 
52  inline bool PolicyContentHasBeenSet() const { return m_policyContentHasBeenSet; }
53 
57  inline void SetPolicyContent(const Aws::String& value) { m_policyContentHasBeenSet = true; m_policyContent = value; }
58 
62  inline void SetPolicyContent(Aws::String&& value) { m_policyContentHasBeenSet = true; m_policyContent = std::move(value); }
63 
67  inline void SetPolicyContent(const char* value) { m_policyContentHasBeenSet = true; m_policyContent.assign(value); }
68 
72  inline EffectivePolicy& WithPolicyContent(const Aws::String& value) { SetPolicyContent(value); return *this;}
73 
77  inline EffectivePolicy& WithPolicyContent(Aws::String&& value) { SetPolicyContent(std::move(value)); return *this;}
78 
82  inline EffectivePolicy& WithPolicyContent(const char* value) { SetPolicyContent(value); return *this;}
83 
84 
88  inline const Aws::Utils::DateTime& GetLastUpdatedTimestamp() const{ return m_lastUpdatedTimestamp; }
89 
93  inline bool LastUpdatedTimestampHasBeenSet() const { return m_lastUpdatedTimestampHasBeenSet; }
94 
98  inline void SetLastUpdatedTimestamp(const Aws::Utils::DateTime& value) { m_lastUpdatedTimestampHasBeenSet = true; m_lastUpdatedTimestamp = value; }
99 
103  inline void SetLastUpdatedTimestamp(Aws::Utils::DateTime&& value) { m_lastUpdatedTimestampHasBeenSet = true; m_lastUpdatedTimestamp = std::move(value); }
104 
108  inline EffectivePolicy& WithLastUpdatedTimestamp(const Aws::Utils::DateTime& value) { SetLastUpdatedTimestamp(value); return *this;}
109 
113  inline EffectivePolicy& WithLastUpdatedTimestamp(Aws::Utils::DateTime&& value) { SetLastUpdatedTimestamp(std::move(value)); return *this;}
114 
115 
119  inline const Aws::String& GetTargetId() const{ return m_targetId; }
120 
124  inline bool TargetIdHasBeenSet() const { return m_targetIdHasBeenSet; }
125 
129  inline void SetTargetId(const Aws::String& value) { m_targetIdHasBeenSet = true; m_targetId = value; }
130 
134  inline void SetTargetId(Aws::String&& value) { m_targetIdHasBeenSet = true; m_targetId = std::move(value); }
135 
139  inline void SetTargetId(const char* value) { m_targetIdHasBeenSet = true; m_targetId.assign(value); }
140 
144  inline EffectivePolicy& WithTargetId(const Aws::String& value) { SetTargetId(value); return *this;}
145 
149  inline EffectivePolicy& WithTargetId(Aws::String&& value) { SetTargetId(std::move(value)); return *this;}
150 
154  inline EffectivePolicy& WithTargetId(const char* value) { SetTargetId(value); return *this;}
155 
156 
160  inline const EffectivePolicyType& GetPolicyType() const{ return m_policyType; }
161 
165  inline bool PolicyTypeHasBeenSet() const { return m_policyTypeHasBeenSet; }
166 
170  inline void SetPolicyType(const EffectivePolicyType& value) { m_policyTypeHasBeenSet = true; m_policyType = value; }
171 
175  inline void SetPolicyType(EffectivePolicyType&& value) { m_policyTypeHasBeenSet = true; m_policyType = std::move(value); }
176 
180  inline EffectivePolicy& WithPolicyType(const EffectivePolicyType& value) { SetPolicyType(value); return *this;}
181 
185  inline EffectivePolicy& WithPolicyType(EffectivePolicyType&& value) { SetPolicyType(std::move(value)); return *this;}
186 
187  private:
188 
189  Aws::String m_policyContent;
190  bool m_policyContentHasBeenSet;
191 
192  Aws::Utils::DateTime m_lastUpdatedTimestamp;
193  bool m_lastUpdatedTimestampHasBeenSet;
194 
195  Aws::String m_targetId;
196  bool m_targetIdHasBeenSet;
197 
198  EffectivePolicyType m_policyType;
199  bool m_policyTypeHasBeenSet;
200  };
201 
202 } // namespace Model
203 } // namespace Organizations
204 } // namespace Aws
Aws::Utils::DateTime
Definition: DateTime.h:55
Aws::Organizations::Model::EffectivePolicy::WithLastUpdatedTimestamp
EffectivePolicy & WithLastUpdatedTimestamp(Aws::Utils::DateTime &&value)
Definition: EffectivePolicy.h:113
Aws::Organizations::Model::EffectivePolicy::EffectivePolicy
EffectivePolicy()
Aws::Organizations::Model::EffectivePolicy::WithTargetId
EffectivePolicy & WithTargetId(const Aws::String &value)
Definition: EffectivePolicy.h:144
Aws::Organizations::Model::EffectivePolicy::SetPolicyContent
void SetPolicyContent(Aws::String &&value)
Definition: EffectivePolicy.h:62
DateTime.h
Aws::Organizations::Model::EffectivePolicy::WithPolicyContent
EffectivePolicy & WithPolicyContent(const char *value)
Definition: EffectivePolicy.h:82
Aws::Organizations::Model::EffectivePolicy::WithTargetId
EffectivePolicy & WithTargetId(const char *value)
Definition: EffectivePolicy.h:154
Aws::Organizations::Model::EffectivePolicy::WithLastUpdatedTimestamp
EffectivePolicy & WithLastUpdatedTimestamp(const Aws::Utils::DateTime &value)
Definition: EffectivePolicy.h:108
Aws::Organizations::Model::EffectivePolicyType
EffectivePolicyType
Definition: EffectivePolicyType.h:17
Aws::Organizations::Model::EffectivePolicy::LastUpdatedTimestampHasBeenSet
bool LastUpdatedTimestampHasBeenSet() const
Definition: EffectivePolicy.h:93
Aws::Organizations::Model::EffectivePolicy::WithPolicyContent
EffectivePolicy & WithPolicyContent(const Aws::String &value)
Definition: EffectivePolicy.h:72
Aws::Organizations::Model::EffectivePolicy::SetPolicyType
void SetPolicyType(const EffectivePolicyType &value)
Definition: EffectivePolicy.h:170
Aws::Organizations::Model::EffectivePolicy::SetPolicyType
void SetPolicyType(EffectivePolicyType &&value)
Definition: EffectivePolicy.h:175
Aws::Organizations::Model::EffectivePolicy::WithPolicyType
EffectivePolicy & WithPolicyType(EffectivePolicyType &&value)
Definition: EffectivePolicy.h:185
AWS_ORGANIZATIONS_API
#define AWS_ORGANIZATIONS_API
Definition: Organizations_EXPORTS.h:28
Aws::Organizations::Model::EffectivePolicy::SetTargetId
void SetTargetId(const char *value)
Definition: EffectivePolicy.h:139
Aws::Organizations::Model::EffectivePolicy::GetLastUpdatedTimestamp
const Aws::Utils::DateTime & GetLastUpdatedTimestamp() const
Definition: EffectivePolicy.h:88
Aws::Organizations::Model::EffectivePolicy::PolicyTypeHasBeenSet
bool PolicyTypeHasBeenSet() const
Definition: EffectivePolicy.h:165
Aws::Organizations::Model::EffectivePolicy::SetTargetId
void SetTargetId(Aws::String &&value)
Definition: EffectivePolicy.h:134
Aws::Organizations::Model::EffectivePolicy::WithTargetId
EffectivePolicy & WithTargetId(Aws::String &&value)
Definition: EffectivePolicy.h:149
Aws::Utils::Json::JsonView
Definition: JsonSerializer.h:235
AWSString.h
Aws::Utils::Json::JsonValue
Definition: JsonSerializer.h:33
Aws::Organizations::Model::EffectivePolicy::PolicyContentHasBeenSet
bool PolicyContentHasBeenSet() const
Definition: EffectivePolicy.h:52
Aws::Organizations::Model::EffectivePolicy::GetTargetId
const Aws::String & GetTargetId() const
Definition: EffectivePolicy.h:119
Aws::Organizations::Model::EffectivePolicy::SetPolicyContent
void SetPolicyContent(const char *value)
Definition: EffectivePolicy.h:67
Aws::Organizations::Model::EffectivePolicy::GetPolicyContent
const Aws::String & GetPolicyContent() const
Definition: EffectivePolicy.h:47
Aws::Organizations::Model::EffectivePolicy::GetPolicyType
const EffectivePolicyType & GetPolicyType() const
Definition: EffectivePolicy.h:160
Aws::Organizations::Model::EffectivePolicy::SetTargetId
void SetTargetId(const Aws::String &value)
Definition: EffectivePolicy.h:129
Aws::Organizations::Model::EffectivePolicy::SetLastUpdatedTimestamp
void SetLastUpdatedTimestamp(Aws::Utils::DateTime &&value)
Definition: EffectivePolicy.h:103
Aws::Organizations::Model::EffectivePolicy::WithPolicyType
EffectivePolicy & WithPolicyType(const EffectivePolicyType &value)
Definition: EffectivePolicy.h:180
Aws::Organizations::Model::EffectivePolicy::EffectivePolicy
EffectivePolicy(Aws::Utils::Json::JsonView jsonValue)
Aws
Definition: AccessManagementClient.h:15
Aws::Organizations::Model::EffectivePolicy::WithPolicyContent
EffectivePolicy & WithPolicyContent(Aws::String &&value)
Definition: EffectivePolicy.h:77
Aws::Organizations::Model::EffectivePolicy::operator=
EffectivePolicy & operator=(Aws::Utils::Json::JsonView jsonValue)
EffectivePolicyType.h
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Organizations_EXPORTS.h
Aws::Organizations::Model::EffectivePolicy::Jsonize
Aws::Utils::Json::JsonValue Jsonize() const
Aws::Organizations::Model::EffectivePolicy::SetPolicyContent
void SetPolicyContent(const Aws::String &value)
Definition: EffectivePolicy.h:57
Aws::Organizations::Model::EffectivePolicy
Definition: EffectivePolicy.h:36
Aws::Organizations::Model::EffectivePolicy::SetLastUpdatedTimestamp
void SetLastUpdatedTimestamp(const Aws::Utils::DateTime &value)
Definition: EffectivePolicy.h:98
Aws::Organizations::Model::EffectivePolicy::TargetIdHasBeenSet
bool TargetIdHasBeenSet() const
Definition: EffectivePolicy.h:124