AWS SDK for C++

AWS SDK for C++ Version 1.11.907

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
63 inline EffectivePolicyType GetPolicyType() const { return m_policyType; }
64 inline bool PolicyTypeHasBeenSet() const { return m_policyTypeHasBeenSet; }
66 m_policyTypeHasBeenSet = true;
67 m_policyType = value;
68 }
70 SetPolicyType(value);
71 return *this;
72 }
74
76
81 inline const Aws::String& GetTargetId() const { return m_targetId; }
82 inline bool TargetIdHasBeenSet() const { return m_targetIdHasBeenSet; }
83 template <typename TargetIdT = Aws::String>
84 void SetTargetId(TargetIdT&& value) {
85 m_targetIdHasBeenSet = true;
86 m_targetId = std::forward<TargetIdT>(value);
87 }
88 template <typename TargetIdT = Aws::String>
90 SetTargetId(std::forward<TargetIdT>(value));
91 return *this;
92 }
94 private:
96
97 Aws::String m_targetId;
98 bool m_policyTypeHasBeenSet = false;
99 bool m_targetIdHasBeenSet = false;
100};
101
102} // namespace Model
103} // namespace Organizations
104} // 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