AWS SDK for C++  1.9.109
AWS SDK for C++
DetachThingPrincipalRequest.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 
26  {
27  public:
29 
30  // Service request name is the Operation name which will send this request out,
31  // each operation should has unique request name, so that we can get operation's name from this request.
32  // Note: this is not true for response, multiple operations may have the same response name,
33  // so we can not get operation's name from response.
34  inline virtual const char* GetServiceRequestName() const override { return "DetachThingPrincipal"; }
35 
36  Aws::String SerializePayload() const override;
37 
39 
40 
44  inline const Aws::String& GetThingName() const{ return m_thingName; }
45 
49  inline bool ThingNameHasBeenSet() const { return m_thingNameHasBeenSet; }
50 
54  inline void SetThingName(const Aws::String& value) { m_thingNameHasBeenSet = true; m_thingName = value; }
55 
59  inline void SetThingName(Aws::String&& value) { m_thingNameHasBeenSet = true; m_thingName = std::move(value); }
60 
64  inline void SetThingName(const char* value) { m_thingNameHasBeenSet = true; m_thingName.assign(value); }
65 
69  inline DetachThingPrincipalRequest& WithThingName(const Aws::String& value) { SetThingName(value); return *this;}
70 
74  inline DetachThingPrincipalRequest& WithThingName(Aws::String&& value) { SetThingName(std::move(value)); return *this;}
75 
79  inline DetachThingPrincipalRequest& WithThingName(const char* value) { SetThingName(value); return *this;}
80 
81 
87  inline const Aws::String& GetPrincipal() const{ return m_principal; }
88 
94  inline bool PrincipalHasBeenSet() const { return m_principalHasBeenSet; }
95 
101  inline void SetPrincipal(const Aws::String& value) { m_principalHasBeenSet = true; m_principal = value; }
102 
108  inline void SetPrincipal(Aws::String&& value) { m_principalHasBeenSet = true; m_principal = std::move(value); }
109 
115  inline void SetPrincipal(const char* value) { m_principalHasBeenSet = true; m_principal.assign(value); }
116 
122  inline DetachThingPrincipalRequest& WithPrincipal(const Aws::String& value) { SetPrincipal(value); return *this;}
123 
129  inline DetachThingPrincipalRequest& WithPrincipal(Aws::String&& value) { SetPrincipal(std::move(value)); return *this;}
130 
136  inline DetachThingPrincipalRequest& WithPrincipal(const char* value) { SetPrincipal(value); return *this;}
137 
138  private:
139 
140  Aws::String m_thingName;
141  bool m_thingNameHasBeenSet;
142 
143  Aws::String m_principal;
144  bool m_principalHasBeenSet;
145  };
146 
147 } // namespace Model
148 } // namespace IoT
149 } // namespace Aws
Aws::IoT::Model::DetachThingPrincipalRequest::ThingNameHasBeenSet
bool ThingNameHasBeenSet() const
Definition: DetachThingPrincipalRequest.h:49
Aws::IoT::Model::DetachThingPrincipalRequest::GetPrincipal
const Aws::String & GetPrincipal() const
Definition: DetachThingPrincipalRequest.h:87
Aws::Http::HeaderValueCollection
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
Definition: HttpTypes.h:53
Aws::IoT::Model::DetachThingPrincipalRequest::SetPrincipal
void SetPrincipal(const Aws::String &value)
Definition: DetachThingPrincipalRequest.h:101
Aws::IoT::Model::DetachThingPrincipalRequest::WithPrincipal
DetachThingPrincipalRequest & WithPrincipal(const Aws::String &value)
Definition: DetachThingPrincipalRequest.h:122
Aws::IoT::Model::DetachThingPrincipalRequest::WithThingName
DetachThingPrincipalRequest & WithThingName(const char *value)
Definition: DetachThingPrincipalRequest.h:79
Aws::IoT::Model::DetachThingPrincipalRequest::SetPrincipal
void SetPrincipal(Aws::String &&value)
Definition: DetachThingPrincipalRequest.h:108
Aws::IoT::Model::DetachThingPrincipalRequest
Definition: DetachThingPrincipalRequest.h:26
Aws::IoT::Model::DetachThingPrincipalRequest::DetachThingPrincipalRequest
DetachThingPrincipalRequest()
Aws::IoT::Model::DetachThingPrincipalRequest::GetThingName
const Aws::String & GetThingName() const
Definition: DetachThingPrincipalRequest.h:44
AWSString.h
Aws::IoT::IoTRequest
Definition: IoTRequest.h:17
Aws::IoT::Model::DetachThingPrincipalRequest::SetThingName
void SetThingName(const Aws::String &value)
Definition: DetachThingPrincipalRequest.h:54
Aws::IoT::Model::DetachThingPrincipalRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::IoT::Model::DetachThingPrincipalRequest::WithPrincipal
DetachThingPrincipalRequest & WithPrincipal(Aws::String &&value)
Definition: DetachThingPrincipalRequest.h:129
Aws
Definition: AccessManagementClient.h:15
Aws::IoT::Model::DetachThingPrincipalRequest::WithThingName
DetachThingPrincipalRequest & WithThingName(Aws::String &&value)
Definition: DetachThingPrincipalRequest.h:74
Aws::IoT::Model::DetachThingPrincipalRequest::WithPrincipal
DetachThingPrincipalRequest & WithPrincipal(const char *value)
Definition: DetachThingPrincipalRequest.h:136
Aws::IoT::Model::DetachThingPrincipalRequest::SetThingName
void SetThingName(const char *value)
Definition: DetachThingPrincipalRequest.h:64
Aws::IoT::Model::DetachThingPrincipalRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: DetachThingPrincipalRequest.h:34
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::DetachThingPrincipalRequest::WithThingName
DetachThingPrincipalRequest & WithThingName(const Aws::String &value)
Definition: DetachThingPrincipalRequest.h:69
Aws::IoT::Model::DetachThingPrincipalRequest::SetThingName
void SetThingName(Aws::String &&value)
Definition: DetachThingPrincipalRequest.h:59
Aws::IoT::Model::DetachThingPrincipalRequest::SetPrincipal
void SetPrincipal(const char *value)
Definition: DetachThingPrincipalRequest.h:115
Aws::IoT::Model::DetachThingPrincipalRequest::GetRequestSpecificHeaders
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
IoTRequest.h
Aws::IoT::Model::DetachThingPrincipalRequest::PrincipalHasBeenSet
bool PrincipalHasBeenSet() const
Definition: DetachThingPrincipalRequest.h:94
IoT_EXPORTS.h