AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
AttachThingPrincipalRequest.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 <aws/iot/model/ThingPrincipalType.h>
11#include <utility>
12
13namespace Aws
14{
15namespace Http
16{
17 class URI;
18} //namespace Http
19namespace IoT
20{
21namespace Model
22{
23
31 {
32 public:
33 AWS_IOT_API AttachThingPrincipalRequest() = default;
34
35 // Service request name is the Operation name which will send this request out,
36 // each operation should has unique request name, so that we can get operation's name from this request.
37 // Note: this is not true for response, multiple operations may have the same response name,
38 // so we can not get operation's name from response.
39 inline virtual const char* GetServiceRequestName() const override { return "AttachThingPrincipal"; }
40
41 AWS_IOT_API Aws::String SerializePayload() const override;
42
43 AWS_IOT_API void AddQueryStringParameters(Aws::Http::URI& uri) const override;
44
46
47
49
52 inline const Aws::String& GetThingName() const { return m_thingName; }
53 inline bool ThingNameHasBeenSet() const { return m_thingNameHasBeenSet; }
54 template<typename ThingNameT = Aws::String>
55 void SetThingName(ThingNameT&& value) { m_thingNameHasBeenSet = true; m_thingName = std::forward<ThingNameT>(value); }
56 template<typename ThingNameT = Aws::String>
57 AttachThingPrincipalRequest& WithThingName(ThingNameT&& value) { SetThingName(std::forward<ThingNameT>(value)); return *this;}
59
61
65 inline const Aws::String& GetPrincipal() const { return m_principal; }
66 inline bool PrincipalHasBeenSet() const { return m_principalHasBeenSet; }
67 template<typename PrincipalT = Aws::String>
68 void SetPrincipal(PrincipalT&& value) { m_principalHasBeenSet = true; m_principal = std::forward<PrincipalT>(value); }
69 template<typename PrincipalT = Aws::String>
70 AttachThingPrincipalRequest& WithPrincipal(PrincipalT&& value) { SetPrincipal(std::forward<PrincipalT>(value)); return *this;}
72
74
83 inline ThingPrincipalType GetThingPrincipalType() const { return m_thingPrincipalType; }
84 inline bool ThingPrincipalTypeHasBeenSet() const { return m_thingPrincipalTypeHasBeenSet; }
85 inline void SetThingPrincipalType(ThingPrincipalType value) { m_thingPrincipalTypeHasBeenSet = true; m_thingPrincipalType = value; }
88 private:
89
90 Aws::String m_thingName;
91 bool m_thingNameHasBeenSet = false;
92
93 Aws::String m_principal;
94 bool m_principalHasBeenSet = false;
95
97 bool m_thingPrincipalTypeHasBeenSet = false;
98 };
99
100} // namespace Model
101} // namespace IoT
102} // 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