AWS SDK for C++

AWS SDK for C++ Version 1.11.768

Loading...
Searching...
No Matches
DetachPolicyRequest.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
11#include <utility>
12
13namespace Aws {
14namespace Organizations {
15namespace Model {
16
20 public:
21 AWS_ORGANIZATIONS_API DetachPolicyRequest() = default;
22
23 // Service request name is the Operation name which will send this request out,
24 // each operation should has unique request name, so that we can get operation's name from this request.
25 // Note: this is not true for response, multiple operations may have the same response name,
26 // so we can not get operation's name from response.
27 inline virtual const char* GetServiceRequestName() const override { return "DetachPolicy"; }
28
29 AWS_ORGANIZATIONS_API Aws::String SerializePayload() const override;
30
31 AWS_ORGANIZATIONS_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
32
34
41 inline const Aws::String& GetPolicyId() const { return m_policyId; }
42 inline bool PolicyIdHasBeenSet() const { return m_policyIdHasBeenSet; }
43 template <typename PolicyIdT = Aws::String>
44 void SetPolicyId(PolicyIdT&& value) {
45 m_policyIdHasBeenSet = true;
46 m_policyId = std::forward<PolicyIdT>(value);
47 }
48 template <typename PolicyIdT = Aws::String>
49 DetachPolicyRequest& WithPolicyId(PolicyIdT&& value) {
50 SetPolicyId(std::forward<PolicyIdT>(value));
51 return *this;
52 }
54
56
69 inline const Aws::String& GetTargetId() const { return m_targetId; }
70 inline bool TargetIdHasBeenSet() const { return m_targetIdHasBeenSet; }
71 template <typename TargetIdT = Aws::String>
72 void SetTargetId(TargetIdT&& value) {
73 m_targetIdHasBeenSet = true;
74 m_targetId = std::forward<TargetIdT>(value);
75 }
76 template <typename TargetIdT = Aws::String>
77 DetachPolicyRequest& WithTargetId(TargetIdT&& value) {
78 SetTargetId(std::forward<TargetIdT>(value));
79 return *this;
80 }
82 private:
83 Aws::String m_policyId;
84
85 Aws::String m_targetId;
86 bool m_policyIdHasBeenSet = false;
87 bool m_targetIdHasBeenSet = false;
88};
89
90} // namespace Model
91} // namespace Organizations
92} // namespace Aws
AWS_ORGANIZATIONS_API DetachPolicyRequest()=default
DetachPolicyRequest & WithTargetId(TargetIdT &&value)
AWS_ORGANIZATIONS_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
DetachPolicyRequest & WithPolicyId(PolicyIdT &&value)
AWS_ORGANIZATIONS_API Aws::String SerializePayload() const override
virtual const char * GetServiceRequestName() const override
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String