AWS SDK for C++  0.14.3
AWS SDK for C++
CreateThingRequest.h
Go to the documentation of this file.
1 /*
2 * Copyright 2010-2016 Amazon.com, Inc. or its affiliates. All Rights Reserved.
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License").
5 * You may not use this file except in compliance with the License.
6 * A copy of the License is located at
7 *
8 * http://aws.amazon.com/apache2.0
9 *
10 * or in the "license" file accompanying this file. This file is distributed
11 * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
12 * express or implied. See the License for the specific language governing
13 * permissions and limitations under the License.
14 */
15 #pragma once
16 #include <aws/iot/IoT_EXPORTS.h>
17 #include <aws/iot/IoTRequest.h>
20 
21 namespace Aws
22 {
23 namespace IoT
24 {
25 namespace Model
26 {
27 
32  {
33  public:
35  Aws::String SerializePayload() const override;
36 
40  inline const Aws::String& GetThingName() const{ return m_thingName; }
41 
45  inline void SetThingName(const Aws::String& value) { m_thingNameHasBeenSet = true; m_thingName = value; }
46 
50  inline void SetThingName(Aws::String&& value) { m_thingNameHasBeenSet = true; m_thingName = value; }
51 
55  inline void SetThingName(const char* value) { m_thingNameHasBeenSet = true; m_thingName.assign(value); }
56 
60  inline CreateThingRequest& WithThingName(const Aws::String& value) { SetThingName(value); return *this;}
61 
65  inline CreateThingRequest& WithThingName(Aws::String&& value) { SetThingName(value); return *this;}
66 
70  inline CreateThingRequest& WithThingName(const char* value) { SetThingName(value); return *this;}
71 
75  inline const Aws::String& GetThingTypeName() const{ return m_thingTypeName; }
76 
80  inline void SetThingTypeName(const Aws::String& value) { m_thingTypeNameHasBeenSet = true; m_thingTypeName = value; }
81 
85  inline void SetThingTypeName(Aws::String&& value) { m_thingTypeNameHasBeenSet = true; m_thingTypeName = value; }
86 
90  inline void SetThingTypeName(const char* value) { m_thingTypeNameHasBeenSet = true; m_thingTypeName.assign(value); }
91 
95  inline CreateThingRequest& WithThingTypeName(const Aws::String& value) { SetThingTypeName(value); return *this;}
96 
100  inline CreateThingRequest& WithThingTypeName(Aws::String&& value) { SetThingTypeName(value); return *this;}
101 
105  inline CreateThingRequest& WithThingTypeName(const char* value) { SetThingTypeName(value); return *this;}
106 
112  inline const AttributePayload& GetAttributePayload() const{ return m_attributePayload; }
113 
119  inline void SetAttributePayload(const AttributePayload& value) { m_attributePayloadHasBeenSet = true; m_attributePayload = value; }
120 
126  inline void SetAttributePayload(AttributePayload&& value) { m_attributePayloadHasBeenSet = true; m_attributePayload = value; }
127 
133  inline CreateThingRequest& WithAttributePayload(const AttributePayload& value) { SetAttributePayload(value); return *this;}
134 
140  inline CreateThingRequest& WithAttributePayload(AttributePayload&& value) { SetAttributePayload(value); return *this;}
141 
142  private:
143  Aws::String m_thingName;
144  bool m_thingNameHasBeenSet;
145  Aws::String m_thingTypeName;
146  bool m_thingTypeNameHasBeenSet;
147  AttributePayload m_attributePayload;
148  bool m_attributePayloadHasBeenSet;
149  };
150 
151 } // namespace Model
152 } // namespace IoT
153 } // namespace Aws
void SetThingName(Aws::String &&value)
CreateThingRequest & WithThingName(const Aws::String &value)
void SetAttributePayload(AttributePayload &&value)
const AttributePayload & GetAttributePayload() const
void SetThingTypeName(const char *value)
CreateThingRequest & WithAttributePayload(AttributePayload &&value)
#define AWS_IOT_API
Definition: IoT_EXPORTS.h:37
void SetAttributePayload(const AttributePayload &value)
void SetThingName(const char *value)
CreateThingRequest & WithThingName(Aws::String &&value)
CreateThingRequest & WithThingTypeName(const Aws::String &value)
const Aws::String & GetThingName() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
CreateThingRequest & WithThingTypeName(Aws::String &&value)
void SetThingTypeName(Aws::String &&value)
CreateThingRequest & WithThingTypeName(const char *value)
CreateThingRequest & WithThingName(const char *value)
void SetThingTypeName(const Aws::String &value)
const Aws::String & GetThingTypeName() const
CreateThingRequest & WithAttributePayload(const AttributePayload &value)
JSON (JavaScript Object Notation).
void SetThingName(const Aws::String &value)