AWS SDK for C++  0.12.9
AWS SDK for C++
UpdateThingRequest.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 UpdateThingRequest& WithThingName(const Aws::String& value) { SetThingName(value); return *this;}
61 
65  inline UpdateThingRequest& WithThingName(Aws::String&& value) { SetThingName(value); return *this;}
66 
70  inline UpdateThingRequest& WithThingName(const char* value) { SetThingName(value); return *this;}
71 
76  inline const AttributePayload& GetAttributePayload() const{ return m_attributePayload; }
77 
82  inline void SetAttributePayload(const AttributePayload& value) { m_attributePayloadHasBeenSet = true; m_attributePayload = value; }
83 
88  inline void SetAttributePayload(AttributePayload&& value) { m_attributePayloadHasBeenSet = true; m_attributePayload = value; }
89 
94  inline UpdateThingRequest& WithAttributePayload(const AttributePayload& value) { SetAttributePayload(value); return *this;}
95 
100  inline UpdateThingRequest& WithAttributePayload(AttributePayload&& value) { SetAttributePayload(value); return *this;}
101 
102  private:
103  Aws::String m_thingName;
104  bool m_thingNameHasBeenSet;
105  AttributePayload m_attributePayload;
106  bool m_attributePayloadHasBeenSet;
107  };
108 
109 } // namespace Model
110 } // namespace IoT
111 } // namespace Aws
void SetThingName(const Aws::String &value)
UpdateThingRequest & WithThingName(const char *value)
UpdateThingRequest & WithThingName(Aws::String &&value)
const Aws::String & GetThingName() const
void SetThingName(Aws::String &&value)
#define AWS_IOT_API
Definition: IoT_EXPORTS.h:34
void SetAttributePayload(AttributePayload &&value)
void SetAttributePayload(const AttributePayload &value)
void SetThingName(const char *value)
const AttributePayload & GetAttributePayload() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
UpdateThingRequest & WithAttributePayload(const AttributePayload &value)
UpdateThingRequest & WithThingName(const Aws::String &value)
UpdateThingRequest & WithAttributePayload(AttributePayload &&value)
JSON (JavaScript Object Notation).