AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
DescribeEffectivePolicyRequest.h
1
6#pragma once
7#include <aws/organizations/Organizations_EXPORTS.h>
8#include <aws/organizations/OrganizationsRequest.h>
9#include <aws/organizations/model/EffectivePolicyType.h>
10#include <aws/core/utils/memory/stl/AWSString.h>
11#include <utility>
12
13namespace Aws
14{
15namespace Organizations
16{
17namespace Model
18{
19
23 {
24 public:
25 AWS_ORGANIZATIONS_API DescribeEffectivePolicyRequest();
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_ORGANIZATIONS_API Aws::String SerializePayload() const override;
34
35 AWS_ORGANIZATIONS_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
36
37
39
51 inline const EffectivePolicyType& GetPolicyType() const{ return m_policyType; }
52 inline bool PolicyTypeHasBeenSet() const { return m_policyTypeHasBeenSet; }
53 inline void SetPolicyType(const EffectivePolicyType& value) { m_policyTypeHasBeenSet = true; m_policyType = value; }
54 inline void SetPolicyType(EffectivePolicyType&& value) { m_policyTypeHasBeenSet = true; m_policyType = std::move(value); }
56 inline DescribeEffectivePolicyRequest& WithPolicyType(EffectivePolicyType&& value) { SetPolicyType(std::move(value)); return *this;}
58
60
65 inline const Aws::String& GetTargetId() const{ return m_targetId; }
66 inline bool TargetIdHasBeenSet() const { return m_targetIdHasBeenSet; }
67 inline void SetTargetId(const Aws::String& value) { m_targetIdHasBeenSet = true; m_targetId = value; }
68 inline void SetTargetId(Aws::String&& value) { m_targetIdHasBeenSet = true; m_targetId = std::move(value); }
69 inline void SetTargetId(const char* value) { m_targetIdHasBeenSet = true; m_targetId.assign(value); }
70 inline DescribeEffectivePolicyRequest& WithTargetId(const Aws::String& value) { SetTargetId(value); return *this;}
71 inline DescribeEffectivePolicyRequest& WithTargetId(Aws::String&& value) { SetTargetId(std::move(value)); return *this;}
72 inline DescribeEffectivePolicyRequest& WithTargetId(const char* value) { SetTargetId(value); return *this;}
74 private:
75
76 EffectivePolicyType m_policyType;
77 bool m_policyTypeHasBeenSet = false;
78
79 Aws::String m_targetId;
80 bool m_targetIdHasBeenSet = false;
81 };
82
83} // namespace Model
84} // namespace Organizations
85} // namespace Aws
DescribeEffectivePolicyRequest & WithPolicyType(const EffectivePolicyType &value)
AWS_ORGANIZATIONS_API Aws::String SerializePayload() const override
DescribeEffectivePolicyRequest & WithTargetId(const char *value)
AWS_ORGANIZATIONS_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
DescribeEffectivePolicyRequest & WithTargetId(Aws::String &&value)
DescribeEffectivePolicyRequest & WithTargetId(const Aws::String &value)
DescribeEffectivePolicyRequest & WithPolicyType(EffectivePolicyType &&value)
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String