/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include namespace Aws { namespace Utils { namespace Json { class JsonValue; class JsonView; } // namespace Json } // namespace Utils namespace IoTThingsGraph { namespace Model { /** *

An AWS IoT thing.

See Also:

AWS * API Reference

*/ class Thing { public: AWS_IOTTHINGSGRAPH_API Thing(); AWS_IOTTHINGSGRAPH_API Thing(Aws::Utils::Json::JsonView jsonValue); AWS_IOTTHINGSGRAPH_API Thing& operator=(Aws::Utils::Json::JsonView jsonValue); AWS_IOTTHINGSGRAPH_API Aws::Utils::Json::JsonValue Jsonize() const; /** *

The ARN of the thing.

*/ inline const Aws::String& GetThingArn() const{ return m_thingArn; } /** *

The ARN of the thing.

*/ inline bool ThingArnHasBeenSet() const { return m_thingArnHasBeenSet; } /** *

The ARN of the thing.

*/ inline void SetThingArn(const Aws::String& value) { m_thingArnHasBeenSet = true; m_thingArn = value; } /** *

The ARN of the thing.

*/ inline void SetThingArn(Aws::String&& value) { m_thingArnHasBeenSet = true; m_thingArn = std::move(value); } /** *

The ARN of the thing.

*/ inline void SetThingArn(const char* value) { m_thingArnHasBeenSet = true; m_thingArn.assign(value); } /** *

The ARN of the thing.

*/ inline Thing& WithThingArn(const Aws::String& value) { SetThingArn(value); return *this;} /** *

The ARN of the thing.

*/ inline Thing& WithThingArn(Aws::String&& value) { SetThingArn(std::move(value)); return *this;} /** *

The ARN of the thing.

*/ inline Thing& WithThingArn(const char* value) { SetThingArn(value); return *this;} /** *

The name of the thing.

*/ inline const Aws::String& GetThingName() const{ return m_thingName; } /** *

The name of the thing.

*/ inline bool ThingNameHasBeenSet() const { return m_thingNameHasBeenSet; } /** *

The name of the thing.

*/ inline void SetThingName(const Aws::String& value) { m_thingNameHasBeenSet = true; m_thingName = value; } /** *

The name of the thing.

*/ inline void SetThingName(Aws::String&& value) { m_thingNameHasBeenSet = true; m_thingName = std::move(value); } /** *

The name of the thing.

*/ inline void SetThingName(const char* value) { m_thingNameHasBeenSet = true; m_thingName.assign(value); } /** *

The name of the thing.

*/ inline Thing& WithThingName(const Aws::String& value) { SetThingName(value); return *this;} /** *

The name of the thing.

*/ inline Thing& WithThingName(Aws::String&& value) { SetThingName(std::move(value)); return *this;} /** *

The name of the thing.

*/ inline Thing& WithThingName(const char* value) { SetThingName(value); return *this;} private: Aws::String m_thingArn; bool m_thingArnHasBeenSet = false; Aws::String m_thingName; bool m_thingNameHasBeenSet = false; }; } // namespace Model } // namespace IoTThingsGraph } // namespace Aws