AWS SDK for C++

AWS SDK for C++ Version 1.11.685

Loading...
Searching...
No Matches
AttachThingPrincipalRequest.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#include <aws/iot/model/ThingPrincipalType.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Http {
16class URI;
17} // namespace Http
18namespace IoT {
19namespace Model {
20
28 public:
29 AWS_IOT_API AttachThingPrincipalRequest() = default;
30
31 // Service request name is the Operation name which will send this request out,
32 // each operation should has unique request name, so that we can get operation's name from this request.
33 // Note: this is not true for response, multiple operations may have the same response name,
34 // so we can not get operation's name from response.
35 inline virtual const char* GetServiceRequestName() const override { return "AttachThingPrincipal"; }
36
37 AWS_IOT_API Aws::String SerializePayload() const override;
38
39 AWS_IOT_API void AddQueryStringParameters(Aws::Http::URI& uri) const override;
40
42
44
47 inline const Aws::String& GetThingName() const { return m_thingName; }
48 inline bool ThingNameHasBeenSet() const { return m_thingNameHasBeenSet; }
49 template <typename ThingNameT = Aws::String>
50 void SetThingName(ThingNameT&& value) {
51 m_thingNameHasBeenSet = true;
52 m_thingName = std::forward<ThingNameT>(value);
53 }
54 template <typename ThingNameT = Aws::String>
56 SetThingName(std::forward<ThingNameT>(value));
57 return *this;
58 }
60
62
66 inline const Aws::String& GetPrincipal() const { return m_principal; }
67 inline bool PrincipalHasBeenSet() const { return m_principalHasBeenSet; }
68 template <typename PrincipalT = Aws::String>
69 void SetPrincipal(PrincipalT&& value) {
70 m_principalHasBeenSet = true;
71 m_principal = std::forward<PrincipalT>(value);
72 }
73 template <typename PrincipalT = Aws::String>
75 SetPrincipal(std::forward<PrincipalT>(value));
76 return *this;
77 }
79
81
90 inline ThingPrincipalType GetThingPrincipalType() const { return m_thingPrincipalType; }
91 inline bool ThingPrincipalTypeHasBeenSet() const { return m_thingPrincipalTypeHasBeenSet; }
93 m_thingPrincipalTypeHasBeenSet = true;
94 m_thingPrincipalType = value;
95 }
98 return *this;
99 }
101 private:
102 Aws::String m_thingName;
103 bool m_thingNameHasBeenSet = false;
104
105 Aws::String m_principal;
106 bool m_principalHasBeenSet = false;
107
109 bool m_thingPrincipalTypeHasBeenSet = false;
110};
111
112} // namespace Model
113} // namespace IoT
114} // namespace Aws
AWS_IOT_API Aws::String SerializePayload() const override
AttachThingPrincipalRequest & WithThingPrincipalType(ThingPrincipalType value)
AttachThingPrincipalRequest & WithPrincipal(PrincipalT &&value)
AWS_IOT_API void AddQueryStringParameters(Aws::Http::URI &uri) const override
AttachThingPrincipalRequest & WithThingName(ThingNameT &&value)
virtual const char * GetServiceRequestName() const override
AWS_IOT_API AttachThingPrincipalRequest()=default
AWS_IOT_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String