AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
DetachThingPrincipalRequest.h
1
6#pragma once
7#include <aws/iot/IoT_EXPORTS.h>
8#include <aws/iot/IoTRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <utility>
11
12namespace Aws
13{
14namespace IoT
15{
16namespace 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_IOT_API Aws::String SerializePayload() const override;
37
39
40
42
45 inline const Aws::String& GetThingName() const{ return m_thingName; }
46 inline bool ThingNameHasBeenSet() const { return m_thingNameHasBeenSet; }
47 inline void SetThingName(const Aws::String& value) { m_thingNameHasBeenSet = true; m_thingName = value; }
48 inline void SetThingName(Aws::String&& value) { m_thingNameHasBeenSet = true; m_thingName = std::move(value); }
49 inline void SetThingName(const char* value) { m_thingNameHasBeenSet = true; m_thingName.assign(value); }
50 inline DetachThingPrincipalRequest& WithThingName(const Aws::String& value) { SetThingName(value); return *this;}
51 inline DetachThingPrincipalRequest& WithThingName(Aws::String&& value) { SetThingName(std::move(value)); return *this;}
52 inline DetachThingPrincipalRequest& WithThingName(const char* value) { SetThingName(value); return *this;}
54
56
61 inline const Aws::String& GetPrincipal() const{ return m_principal; }
62 inline bool PrincipalHasBeenSet() const { return m_principalHasBeenSet; }
63 inline void SetPrincipal(const Aws::String& value) { m_principalHasBeenSet = true; m_principal = value; }
64 inline void SetPrincipal(Aws::String&& value) { m_principalHasBeenSet = true; m_principal = std::move(value); }
65 inline void SetPrincipal(const char* value) { m_principalHasBeenSet = true; m_principal.assign(value); }
66 inline DetachThingPrincipalRequest& WithPrincipal(const Aws::String& value) { SetPrincipal(value); return *this;}
67 inline DetachThingPrincipalRequest& WithPrincipal(Aws::String&& value) { SetPrincipal(std::move(value)); return *this;}
68 inline DetachThingPrincipalRequest& WithPrincipal(const char* value) { SetPrincipal(value); return *this;}
70 private:
71
72 Aws::String m_thingName;
73 bool m_thingNameHasBeenSet = false;
74
75 Aws::String m_principal;
76 bool m_principalHasBeenSet = false;
77 };
78
79} // namespace Model
80} // namespace IoT
81} // namespace Aws
AWS_IOT_API Aws::String SerializePayload() const override
DetachThingPrincipalRequest & WithThingName(const char *value)
DetachThingPrincipalRequest & WithThingName(const Aws::String &value)
DetachThingPrincipalRequest & WithPrincipal(Aws::String &&value)
virtual const char * GetServiceRequestName() const override
DetachThingPrincipalRequest & WithPrincipal(const Aws::String &value)
AWS_IOT_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
DetachThingPrincipalRequest & WithThingName(Aws::String &&value)
DetachThingPrincipalRequest & WithPrincipal(const char *value)
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String