AWS SDK for C++

AWS SDK for C++ Version 1.11.717

Loading...
Searching...
No Matches
GetThingShadowRequest.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/iot-data/IoTDataPlaneRequest.h>
9#include <aws/iot-data/IoTDataPlane_EXPORTS.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Http {
15class URI;
16} // namespace Http
17namespace IoTDataPlane {
18namespace Model {
19
26 public:
27 AWS_IOTDATAPLANE_API GetThingShadowRequest() = default;
28
29 // Service request name is the Operation name which will send this request out,
30 // each operation should has unique request name, so that we can get operation's name from this request.
31 // Note: this is not true for response, multiple operations may have the same response name,
32 // so we can not get operation's name from response.
33 inline virtual const char* GetServiceRequestName() const override { return "GetThingShadow"; }
34
35 AWS_IOTDATAPLANE_API Aws::String SerializePayload() const override;
36
37 AWS_IOTDATAPLANE_API void AddQueryStringParameters(Aws::Http::URI& uri) const override;
38
40
43 inline const Aws::String& GetThingName() const { return m_thingName; }
44 inline bool ThingNameHasBeenSet() const { return m_thingNameHasBeenSet; }
45 template <typename ThingNameT = Aws::String>
46 void SetThingName(ThingNameT&& value) {
47 m_thingNameHasBeenSet = true;
48 m_thingName = std::forward<ThingNameT>(value);
49 }
50 template <typename ThingNameT = Aws::String>
51 GetThingShadowRequest& WithThingName(ThingNameT&& value) {
52 SetThingName(std::forward<ThingNameT>(value));
53 return *this;
54 }
56
58
61 inline const Aws::String& GetShadowName() const { return m_shadowName; }
62 inline bool ShadowNameHasBeenSet() const { return m_shadowNameHasBeenSet; }
63 template <typename ShadowNameT = Aws::String>
64 void SetShadowName(ShadowNameT&& value) {
65 m_shadowNameHasBeenSet = true;
66 m_shadowName = std::forward<ShadowNameT>(value);
67 }
68 template <typename ShadowNameT = Aws::String>
69 GetThingShadowRequest& WithShadowName(ShadowNameT&& value) {
70 SetShadowName(std::forward<ShadowNameT>(value));
71 return *this;
72 }
74 private:
75 Aws::String m_thingName;
76
77 Aws::String m_shadowName;
78 bool m_thingNameHasBeenSet = false;
79 bool m_shadowNameHasBeenSet = false;
80};
81
82} // namespace Model
83} // namespace IoTDataPlane
84} // namespace Aws
GetThingShadowRequest & WithThingName(ThingNameT &&value)
GetThingShadowRequest & WithShadowName(ShadowNameT &&value)
AWS_IOTDATAPLANE_API void AddQueryStringParameters(Aws::Http::URI &uri) const override
virtual const char * GetServiceRequestName() const override
AWS_IOTDATAPLANE_API GetThingShadowRequest()=default
AWS_IOTDATAPLANE_API Aws::String SerializePayload() const override
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String