133 lines
3.4 KiB
C++
133 lines
3.4 KiB
C++
/**
|
|
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
|
* SPDX-License-Identifier: Apache-2.0.
|
|
*/
|
|
|
|
#pragma once
|
|
#include <aws/iotthingsgraph/IoTThingsGraph_EXPORTS.h>
|
|
#include <aws/core/utils/memory/stl/AWSString.h>
|
|
#include <utility>
|
|
|
|
namespace Aws
|
|
{
|
|
namespace Utils
|
|
{
|
|
namespace Json
|
|
{
|
|
class JsonValue;
|
|
class JsonView;
|
|
} // namespace Json
|
|
} // namespace Utils
|
|
namespace IoTThingsGraph
|
|
{
|
|
namespace Model
|
|
{
|
|
|
|
/**
|
|
* <p>An AWS IoT thing.</p><p><h3>See Also:</h3> <a
|
|
* href="http://docs.aws.amazon.com/goto/WebAPI/iotthingsgraph-2018-09-06/Thing">AWS
|
|
* API Reference</a></p>
|
|
*/
|
|
class AWS_IOTTHINGSGRAPH_API Thing
|
|
{
|
|
public:
|
|
Thing();
|
|
Thing(Aws::Utils::Json::JsonView jsonValue);
|
|
Thing& operator=(Aws::Utils::Json::JsonView jsonValue);
|
|
Aws::Utils::Json::JsonValue Jsonize() const;
|
|
|
|
|
|
/**
|
|
* <p>The ARN of the thing.</p>
|
|
*/
|
|
inline const Aws::String& GetThingArn() const{ return m_thingArn; }
|
|
|
|
/**
|
|
* <p>The ARN of the thing.</p>
|
|
*/
|
|
inline bool ThingArnHasBeenSet() const { return m_thingArnHasBeenSet; }
|
|
|
|
/**
|
|
* <p>The ARN of the thing.</p>
|
|
*/
|
|
inline void SetThingArn(const Aws::String& value) { m_thingArnHasBeenSet = true; m_thingArn = value; }
|
|
|
|
/**
|
|
* <p>The ARN of the thing.</p>
|
|
*/
|
|
inline void SetThingArn(Aws::String&& value) { m_thingArnHasBeenSet = true; m_thingArn = std::move(value); }
|
|
|
|
/**
|
|
* <p>The ARN of the thing.</p>
|
|
*/
|
|
inline void SetThingArn(const char* value) { m_thingArnHasBeenSet = true; m_thingArn.assign(value); }
|
|
|
|
/**
|
|
* <p>The ARN of the thing.</p>
|
|
*/
|
|
inline Thing& WithThingArn(const Aws::String& value) { SetThingArn(value); return *this;}
|
|
|
|
/**
|
|
* <p>The ARN of the thing.</p>
|
|
*/
|
|
inline Thing& WithThingArn(Aws::String&& value) { SetThingArn(std::move(value)); return *this;}
|
|
|
|
/**
|
|
* <p>The ARN of the thing.</p>
|
|
*/
|
|
inline Thing& WithThingArn(const char* value) { SetThingArn(value); return *this;}
|
|
|
|
|
|
/**
|
|
* <p>The name of the thing.</p>
|
|
*/
|
|
inline const Aws::String& GetThingName() const{ return m_thingName; }
|
|
|
|
/**
|
|
* <p>The name of the thing.</p>
|
|
*/
|
|
inline bool ThingNameHasBeenSet() const { return m_thingNameHasBeenSet; }
|
|
|
|
/**
|
|
* <p>The name of the thing.</p>
|
|
*/
|
|
inline void SetThingName(const Aws::String& value) { m_thingNameHasBeenSet = true; m_thingName = value; }
|
|
|
|
/**
|
|
* <p>The name of the thing.</p>
|
|
*/
|
|
inline void SetThingName(Aws::String&& value) { m_thingNameHasBeenSet = true; m_thingName = std::move(value); }
|
|
|
|
/**
|
|
* <p>The name of the thing.</p>
|
|
*/
|
|
inline void SetThingName(const char* value) { m_thingNameHasBeenSet = true; m_thingName.assign(value); }
|
|
|
|
/**
|
|
* <p>The name of the thing.</p>
|
|
*/
|
|
inline Thing& WithThingName(const Aws::String& value) { SetThingName(value); return *this;}
|
|
|
|
/**
|
|
* <p>The name of the thing.</p>
|
|
*/
|
|
inline Thing& WithThingName(Aws::String&& value) { SetThingName(std::move(value)); return *this;}
|
|
|
|
/**
|
|
* <p>The name of the thing.</p>
|
|
*/
|
|
inline Thing& WithThingName(const char* value) { SetThingName(value); return *this;}
|
|
|
|
private:
|
|
|
|
Aws::String m_thingArn;
|
|
bool m_thingArnHasBeenSet;
|
|
|
|
Aws::String m_thingName;
|
|
bool m_thingNameHasBeenSet;
|
|
};
|
|
|
|
} // namespace Model
|
|
} // namespace IoTThingsGraph
|
|
} // namespace Aws
|