AWS SDK for C++

AWS SDK for C++ Version 1.11.612

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:
28 AWS_IOT_API DetachThingPrincipalRequest() = default;
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 template<typename ThingNameT = Aws::String>
48 void SetThingName(ThingNameT&& value) { m_thingNameHasBeenSet = true; m_thingName = std::forward<ThingNameT>(value); }
49 template<typename ThingNameT = Aws::String>
50 DetachThingPrincipalRequest& WithThingName(ThingNameT&& value) { SetThingName(std::forward<ThingNameT>(value)); return *this;}
52
54
59 inline const Aws::String& GetPrincipal() const { return m_principal; }
60 inline bool PrincipalHasBeenSet() const { return m_principalHasBeenSet; }
61 template<typename PrincipalT = Aws::String>
62 void SetPrincipal(PrincipalT&& value) { m_principalHasBeenSet = true; m_principal = std::forward<PrincipalT>(value); }
63 template<typename PrincipalT = Aws::String>
64 DetachThingPrincipalRequest& WithPrincipal(PrincipalT&& value) { SetPrincipal(std::forward<PrincipalT>(value)); return *this;}
66 private:
67
68 Aws::String m_thingName;
69 bool m_thingNameHasBeenSet = false;
70
71 Aws::String m_principal;
72 bool m_principalHasBeenSet = false;
73 };
74
75} // namespace Model
76} // namespace IoT
77} // 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