AWS SDK for C++  1.9.108
AWS SDK for C++
DescribeEffectivePolicyRequest.h
Go to the documentation of this file.
1 
6 #pragma once
11 #include <utility>
12 
13 namespace Aws
14 {
15 namespace Organizations
16 {
17 namespace Model
18 {
19 
23  {
24  public:
26 
27  // Service request name is the Operation name which will send this request out,
28  // each operation should has unique request name, so that we can get operation's name from this request.
29  // Note: this is not true for response, multiple operations may have the same response name,
30  // so we can not get operation's name from response.
31  inline virtual const char* GetServiceRequestName() const override { return "DescribeEffectivePolicy"; }
32 
33  Aws::String SerializePayload() const override;
34 
36 
37 
48  inline const EffectivePolicyType& GetPolicyType() const{ return m_policyType; }
49 
60  inline bool PolicyTypeHasBeenSet() const { return m_policyTypeHasBeenSet; }
61 
72  inline void SetPolicyType(const EffectivePolicyType& value) { m_policyTypeHasBeenSet = true; m_policyType = value; }
73 
84  inline void SetPolicyType(EffectivePolicyType&& value) { m_policyTypeHasBeenSet = true; m_policyType = std::move(value); }
85 
96  inline DescribeEffectivePolicyRequest& WithPolicyType(const EffectivePolicyType& value) { SetPolicyType(value); return *this;}
97 
108  inline DescribeEffectivePolicyRequest& WithPolicyType(EffectivePolicyType&& value) { SetPolicyType(std::move(value)); return *this;}
109 
110 
116  inline const Aws::String& GetTargetId() const{ return m_targetId; }
117 
123  inline bool TargetIdHasBeenSet() const { return m_targetIdHasBeenSet; }
124 
130  inline void SetTargetId(const Aws::String& value) { m_targetIdHasBeenSet = true; m_targetId = value; }
131 
137  inline void SetTargetId(Aws::String&& value) { m_targetIdHasBeenSet = true; m_targetId = std::move(value); }
138 
144  inline void SetTargetId(const char* value) { m_targetIdHasBeenSet = true; m_targetId.assign(value); }
145 
151  inline DescribeEffectivePolicyRequest& WithTargetId(const Aws::String& value) { SetTargetId(value); return *this;}
152 
158  inline DescribeEffectivePolicyRequest& WithTargetId(Aws::String&& value) { SetTargetId(std::move(value)); return *this;}
159 
165  inline DescribeEffectivePolicyRequest& WithTargetId(const char* value) { SetTargetId(value); return *this;}
166 
167  private:
168 
169  EffectivePolicyType m_policyType;
170  bool m_policyTypeHasBeenSet;
171 
172  Aws::String m_targetId;
173  bool m_targetIdHasBeenSet;
174  };
175 
176 } // namespace Model
177 } // namespace Organizations
178 } // namespace Aws
Aws::Organizations::Model::DescribeEffectivePolicyRequest::SetTargetId
void SetTargetId(Aws::String &&value)
Definition: DescribeEffectivePolicyRequest.h:137
Aws::Organizations::Model::DescribeEffectivePolicyRequest::WithTargetId
DescribeEffectivePolicyRequest & WithTargetId(const char *value)
Definition: DescribeEffectivePolicyRequest.h:165
Aws::Http::HeaderValueCollection
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
Definition: HttpTypes.h:53
Aws::Organizations::Model::DescribeEffectivePolicyRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::Organizations::Model::EffectivePolicyType
EffectivePolicyType
Definition: EffectivePolicyType.h:17
Aws::Organizations::Model::DescribeEffectivePolicyRequest::TargetIdHasBeenSet
bool TargetIdHasBeenSet() const
Definition: DescribeEffectivePolicyRequest.h:123
Aws::Organizations::Model::DescribeEffectivePolicyRequest::PolicyTypeHasBeenSet
bool PolicyTypeHasBeenSet() const
Definition: DescribeEffectivePolicyRequest.h:60
Aws::Organizations::Model::DescribeEffectivePolicyRequest::WithTargetId
DescribeEffectivePolicyRequest & WithTargetId(Aws::String &&value)
Definition: DescribeEffectivePolicyRequest.h:158
AWS_ORGANIZATIONS_API
#define AWS_ORGANIZATIONS_API
Definition: Organizations_EXPORTS.h:28
Aws::Organizations::Model::DescribeEffectivePolicyRequest::GetTargetId
const Aws::String & GetTargetId() const
Definition: DescribeEffectivePolicyRequest.h:116
Aws::Organizations::OrganizationsRequest
Definition: OrganizationsRequest.h:17
Aws::Organizations::Model::DescribeEffectivePolicyRequest::GetRequestSpecificHeaders
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
Aws::Organizations::Model::DescribeEffectivePolicyRequest::WithPolicyType
DescribeEffectivePolicyRequest & WithPolicyType(const EffectivePolicyType &value)
Definition: DescribeEffectivePolicyRequest.h:96
Aws::Organizations::Model::DescribeEffectivePolicyRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: DescribeEffectivePolicyRequest.h:31
AWSString.h
Aws::Organizations::Model::DescribeEffectivePolicyRequest::DescribeEffectivePolicyRequest
DescribeEffectivePolicyRequest()
Aws::Organizations::Model::DescribeEffectivePolicyRequest
Definition: DescribeEffectivePolicyRequest.h:23
Aws::Organizations::Model::DescribeEffectivePolicyRequest::SetPolicyType
void SetPolicyType(EffectivePolicyType &&value)
Definition: DescribeEffectivePolicyRequest.h:84
Aws::Organizations::Model::DescribeEffectivePolicyRequest::WithTargetId
DescribeEffectivePolicyRequest & WithTargetId(const Aws::String &value)
Definition: DescribeEffectivePolicyRequest.h:151
Aws::Organizations::Model::DescribeEffectivePolicyRequest::WithPolicyType
DescribeEffectivePolicyRequest & WithPolicyType(EffectivePolicyType &&value)
Definition: DescribeEffectivePolicyRequest.h:108
Aws::Organizations::Model::DescribeEffectivePolicyRequest::SetTargetId
void SetTargetId(const char *value)
Definition: DescribeEffectivePolicyRequest.h:144
Aws
Definition: AccessManagementClient.h:15
Aws::Organizations::Model::DescribeEffectivePolicyRequest::SetTargetId
void SetTargetId(const Aws::String &value)
Definition: DescribeEffectivePolicyRequest.h:130
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::DescribeEffectivePolicyRequest::GetPolicyType
const EffectivePolicyType & GetPolicyType() const
Definition: DescribeEffectivePolicyRequest.h:48
Aws::Organizations::Model::DescribeEffectivePolicyRequest::SetPolicyType
void SetPolicyType(const EffectivePolicyType &value)
Definition: DescribeEffectivePolicyRequest.h:72
OrganizationsRequest.h