AWS SDK for C++

AWS SDK for C++ Version 1.11.769

Loading...
Searching...
No Matches
DescribeEffectivePolicyRequest.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/organizations/OrganizationsRequest.h>
9#include <aws/organizations/Organizations_EXPORTS.h>
10#include <aws/organizations/model/EffectivePolicyType.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Organizations {
16namespace Model {
17
21 public:
22 AWS_ORGANIZATIONS_API DescribeEffectivePolicyRequest() = default;
23
24 // Service request name is the Operation name which will send this request out,
25 // each operation should has unique request name, so that we can get operation's name from this request.
26 // Note: this is not true for response, multiple operations may have the same response name,
27 // so we can not get operation's name from response.
28 inline virtual const char* GetServiceRequestName() const override { return "DescribeEffectivePolicy"; }
29
30 AWS_ORGANIZATIONS_API Aws::String SerializePayload() const override;
31
32 AWS_ORGANIZATIONS_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
33
35
61 inline EffectivePolicyType GetPolicyType() const { return m_policyType; }
62 inline bool PolicyTypeHasBeenSet() const { return m_policyTypeHasBeenSet; }
64 m_policyTypeHasBeenSet = true;
65 m_policyType = value;
66 }
68 SetPolicyType(value);
69 return *this;
70 }
72
74
79 inline const Aws::String& GetTargetId() const { return m_targetId; }
80 inline bool TargetIdHasBeenSet() const { return m_targetIdHasBeenSet; }
81 template <typename TargetIdT = Aws::String>
82 void SetTargetId(TargetIdT&& value) {
83 m_targetIdHasBeenSet = true;
84 m_targetId = std::forward<TargetIdT>(value);
85 }
86 template <typename TargetIdT = Aws::String>
88 SetTargetId(std::forward<TargetIdT>(value));
89 return *this;
90 }
92 private:
94
95 Aws::String m_targetId;
96 bool m_policyTypeHasBeenSet = false;
97 bool m_targetIdHasBeenSet = false;
98};
99
100} // namespace Model
101} // namespace Organizations
102} // namespace Aws
AWS_ORGANIZATIONS_API Aws::String SerializePayload() const override
AWS_ORGANIZATIONS_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
AWS_ORGANIZATIONS_API DescribeEffectivePolicyRequest()=default
DescribeEffectivePolicyRequest & WithPolicyType(EffectivePolicyType value)
DescribeEffectivePolicyRequest & WithTargetId(TargetIdT &&value)
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String