AWS SDK for C++  1.9.132
AWS SDK for C++
DetachPolicyRequest.h
Go to the documentation of this file.
1 
6 #pragma once
7 #include <aws/iot/IoT_EXPORTS.h>
8 #include <aws/iot/IoTRequest.h>
10 #include <utility>
11 
12 namespace Aws
13 {
14 namespace IoT
15 {
16 namespace Model
17 {
18 
22  {
23  public:
25 
26  // Service request name is the Operation name which will send this request out,
27  // each operation should has unique request name, so that we can get operation's name from this request.
28  // Note: this is not true for response, multiple operations may have the same response name,
29  // so we can not get operation's name from response.
30  inline virtual const char* GetServiceRequestName() const override { return "DetachPolicy"; }
31 
32  Aws::String SerializePayload() const override;
33 
34 
38  inline const Aws::String& GetPolicyName() const{ return m_policyName; }
39 
43  inline bool PolicyNameHasBeenSet() const { return m_policyNameHasBeenSet; }
44 
48  inline void SetPolicyName(const Aws::String& value) { m_policyNameHasBeenSet = true; m_policyName = value; }
49 
53  inline void SetPolicyName(Aws::String&& value) { m_policyNameHasBeenSet = true; m_policyName = std::move(value); }
54 
58  inline void SetPolicyName(const char* value) { m_policyNameHasBeenSet = true; m_policyName.assign(value); }
59 
63  inline DetachPolicyRequest& WithPolicyName(const Aws::String& value) { SetPolicyName(value); return *this;}
64 
68  inline DetachPolicyRequest& WithPolicyName(Aws::String&& value) { SetPolicyName(std::move(value)); return *this;}
69 
73  inline DetachPolicyRequest& WithPolicyName(const char* value) { SetPolicyName(value); return *this;}
74 
75 
79  inline const Aws::String& GetTarget() const{ return m_target; }
80 
84  inline bool TargetHasBeenSet() const { return m_targetHasBeenSet; }
85 
89  inline void SetTarget(const Aws::String& value) { m_targetHasBeenSet = true; m_target = value; }
90 
94  inline void SetTarget(Aws::String&& value) { m_targetHasBeenSet = true; m_target = std::move(value); }
95 
99  inline void SetTarget(const char* value) { m_targetHasBeenSet = true; m_target.assign(value); }
100 
104  inline DetachPolicyRequest& WithTarget(const Aws::String& value) { SetTarget(value); return *this;}
105 
109  inline DetachPolicyRequest& WithTarget(Aws::String&& value) { SetTarget(std::move(value)); return *this;}
110 
114  inline DetachPolicyRequest& WithTarget(const char* value) { SetTarget(value); return *this;}
115 
116  private:
117 
118  Aws::String m_policyName;
119  bool m_policyNameHasBeenSet;
120 
121  Aws::String m_target;
122  bool m_targetHasBeenSet;
123  };
124 
125 } // namespace Model
126 } // namespace IoT
127 } // namespace Aws
Aws::IoT::Model::DetachPolicyRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::IoT::Model::DetachPolicyRequest::WithTarget
DetachPolicyRequest & WithTarget(const char *value)
Definition: DetachPolicyRequest.h:114
Aws::IoT::Model::DetachPolicyRequest::DetachPolicyRequest
DetachPolicyRequest()
Aws::IoT::Model::DetachPolicyRequest::WithTarget
DetachPolicyRequest & WithTarget(Aws::String &&value)
Definition: DetachPolicyRequest.h:109
Aws::IoT::Model::DetachPolicyRequest::SetTarget
void SetTarget(const Aws::String &value)
Definition: DetachPolicyRequest.h:89
Aws::IoT::Model::DetachPolicyRequest::SetPolicyName
void SetPolicyName(const char *value)
Definition: DetachPolicyRequest.h:58
Aws::IoT::Model::DetachPolicyRequest::PolicyNameHasBeenSet
bool PolicyNameHasBeenSet() const
Definition: DetachPolicyRequest.h:43
Aws::IoT::Model::DetachPolicyRequest::GetPolicyName
const Aws::String & GetPolicyName() const
Definition: DetachPolicyRequest.h:38
Aws::IoT::Model::DetachPolicyRequest::SetTarget
void SetTarget(Aws::String &&value)
Definition: DetachPolicyRequest.h:94
Aws::IoT::Model::DetachPolicyRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: DetachPolicyRequest.h:30
Aws::IoT::Model::DetachPolicyRequest::TargetHasBeenSet
bool TargetHasBeenSet() const
Definition: DetachPolicyRequest.h:84
Aws::IoT::Model::DetachPolicyRequest::WithPolicyName
DetachPolicyRequest & WithPolicyName(Aws::String &&value)
Definition: DetachPolicyRequest.h:68
Aws::IoT::Model::DetachPolicyRequest::SetPolicyName
void SetPolicyName(const Aws::String &value)
Definition: DetachPolicyRequest.h:48
AWSString.h
Aws::IoT::Model::DetachPolicyRequest::WithPolicyName
DetachPolicyRequest & WithPolicyName(const char *value)
Definition: DetachPolicyRequest.h:73
Aws::IoT::IoTRequest
Definition: IoTRequest.h:17
Aws::IoT::Model::DetachPolicyRequest::SetPolicyName
void SetPolicyName(Aws::String &&value)
Definition: DetachPolicyRequest.h:53
Aws
Definition: AccessManagementClient.h:15
Aws::IoT::Model::DetachPolicyRequest::WithTarget
DetachPolicyRequest & WithTarget(const Aws::String &value)
Definition: DetachPolicyRequest.h:104
Aws::IoT::Model::DetachPolicyRequest::GetTarget
const Aws::String & GetTarget() const
Definition: DetachPolicyRequest.h:79
AWS_IOT_API
#define AWS_IOT_API
Definition: IoT_EXPORTS.h:28
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::IoT::Model::DetachPolicyRequest
Definition: DetachPolicyRequest.h:22
Aws::IoT::Model::DetachPolicyRequest::WithPolicyName
DetachPolicyRequest & WithPolicyName(const Aws::String &value)
Definition: DetachPolicyRequest.h:63
IoTRequest.h
Aws::IoT::Model::DetachPolicyRequest::SetTarget
void SetTarget(const char *value)
Definition: DetachPolicyRequest.h:99
IoT_EXPORTS.h