AWS SDK for C++

AWS SDK for C++ Version 1.11.751

Loading...
Searching...
No Matches
DetachThingPrincipalRequest.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/iot/IoTRequest.h>
9#include <aws/iot/IoT_EXPORTS.h>
10
11#include <utility>
12
13namespace Aws {
14namespace IoT {
15namespace Model {
16
24 public:
25 AWS_IOT_API DetachThingPrincipalRequest() = default;
26
27 // Service request name is the Operation name which will send this request out,
28 // each operation should has unique request name, so that we can get operation's name from this request.
29 // Note: this is not true for response, multiple operations may have the same response name,
30 // so we can not get operation's name from response.
31 inline virtual const char* GetServiceRequestName() const override { return "DetachThingPrincipal"; }
32
33 AWS_IOT_API Aws::String SerializePayload() const override;
34
36
38
41 inline const Aws::String& GetThingName() const { return m_thingName; }
42 inline bool ThingNameHasBeenSet() const { return m_thingNameHasBeenSet; }
43 template <typename ThingNameT = Aws::String>
44 void SetThingName(ThingNameT&& value) {
45 m_thingNameHasBeenSet = true;
46 m_thingName = std::forward<ThingNameT>(value);
47 }
48 template <typename ThingNameT = Aws::String>
50 SetThingName(std::forward<ThingNameT>(value));
51 return *this;
52 }
54
56
61 inline const Aws::String& GetPrincipal() const { return m_principal; }
62 inline bool PrincipalHasBeenSet() const { return m_principalHasBeenSet; }
63 template <typename PrincipalT = Aws::String>
64 void SetPrincipal(PrincipalT&& value) {
65 m_principalHasBeenSet = true;
66 m_principal = std::forward<PrincipalT>(value);
67 }
68 template <typename PrincipalT = Aws::String>
70 SetPrincipal(std::forward<PrincipalT>(value));
71 return *this;
72 }
74 private:
75 Aws::String m_thingName;
76
77 Aws::String m_principal;
78 bool m_thingNameHasBeenSet = false;
79 bool m_principalHasBeenSet = false;
80};
81
82} // namespace Model
83} // namespace IoT
84} // namespace Aws
AWS_IOT_API Aws::String SerializePayload() const override
DetachThingPrincipalRequest & WithThingName(ThingNameT &&value)
AWS_IOT_API DetachThingPrincipalRequest()=default
virtual const char * GetServiceRequestName() const override
AWS_IOT_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
DetachThingPrincipalRequest & WithPrincipal(PrincipalT &&value)
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String