AWS SDK for C++  1.9.104
AWS SDK for C++
DescribeThingRequest.h
Go to the documentation of this file.
1 
6 #pragma once
7 #include <aws/iot/IoT_EXPORTS.h>
8 #include <aws/iot/IoTRequest.h>
10 #include <utility>
11 
12 namespace Aws
13 {
14 namespace IoT
15 {
16 namespace Model
17 {
18 
25  {
26  public:
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 "DescribeThing"; }
34 
35  Aws::String SerializePayload() const override;
36 
37 
41  inline const Aws::String& GetThingName() const{ return m_thingName; }
42 
46  inline bool ThingNameHasBeenSet() const { return m_thingNameHasBeenSet; }
47 
51  inline void SetThingName(const Aws::String& value) { m_thingNameHasBeenSet = true; m_thingName = value; }
52 
56  inline void SetThingName(Aws::String&& value) { m_thingNameHasBeenSet = true; m_thingName = std::move(value); }
57 
61  inline void SetThingName(const char* value) { m_thingNameHasBeenSet = true; m_thingName.assign(value); }
62 
66  inline DescribeThingRequest& WithThingName(const Aws::String& value) { SetThingName(value); return *this;}
67 
71  inline DescribeThingRequest& WithThingName(Aws::String&& value) { SetThingName(std::move(value)); return *this;}
72 
76  inline DescribeThingRequest& WithThingName(const char* value) { SetThingName(value); return *this;}
77 
78  private:
79 
80  Aws::String m_thingName;
81  bool m_thingNameHasBeenSet;
82  };
83 
84 } // namespace Model
85 } // namespace IoT
86 } // namespace Aws
Aws::IoT::Model::DescribeThingRequest::SetThingName
void SetThingName(const char *value)
Definition: DescribeThingRequest.h:61
Aws::IoT::Model::DescribeThingRequest::ThingNameHasBeenSet
bool ThingNameHasBeenSet() const
Definition: DescribeThingRequest.h:46
Aws::IoT::Model::DescribeThingRequest::WithThingName
DescribeThingRequest & WithThingName(Aws::String &&value)
Definition: DescribeThingRequest.h:71
Aws::IoT::Model::DescribeThingRequest
Definition: DescribeThingRequest.h:25
Aws::IoT::Model::DescribeThingRequest::GetThingName
const Aws::String & GetThingName() const
Definition: DescribeThingRequest.h:41
Aws::IoT::Model::DescribeThingRequest::DescribeThingRequest
DescribeThingRequest()
AWSString.h
Aws::IoT::Model::DescribeThingRequest::WithThingName
DescribeThingRequest & WithThingName(const char *value)
Definition: DescribeThingRequest.h:76
Aws::IoT::IoTRequest
Definition: IoTRequest.h:17
Aws::IoT::Model::DescribeThingRequest::SetThingName
void SetThingName(const Aws::String &value)
Definition: DescribeThingRequest.h:51
Aws
Definition: AccessManagementClient.h:15
AWS_IOT_API
#define AWS_IOT_API
Definition: IoT_EXPORTS.h:28
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::IoT::Model::DescribeThingRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: DescribeThingRequest.h:33
Aws::IoT::Model::DescribeThingRequest::WithThingName
DescribeThingRequest & WithThingName(const Aws::String &value)
Definition: DescribeThingRequest.h:66
IoTRequest.h
Aws::IoT::Model::DescribeThingRequest::SetThingName
void SetThingName(Aws::String &&value)
Definition: DescribeThingRequest.h:56
Aws::IoT::Model::DescribeThingRequest::SerializePayload
Aws::String SerializePayload() const override
IoT_EXPORTS.h