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

The output of the CreateThing operation.

See Also:

AWS * API Reference

*/ class CreateThingResult { public: AWS_IOT_API CreateThingResult(); AWS_IOT_API CreateThingResult(const Aws::AmazonWebServiceResult& result); AWS_IOT_API CreateThingResult& operator=(const Aws::AmazonWebServiceResult& result); /** *

The name of the new thing.

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

The name of the new thing.

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

The name of the new thing.

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

The name of the new thing.

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

The name of the new thing.

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

The name of the new thing.

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

The name of the new thing.

*/ inline CreateThingResult& WithThingName(const char* value) { SetThingName(value); return *this;} /** *

The ARN of the new thing.

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

The ARN of the new thing.

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

The ARN of the new thing.

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

The ARN of the new thing.

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

The ARN of the new thing.

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

The ARN of the new thing.

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

The ARN of the new thing.

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

The thing ID.

*/ inline const Aws::String& GetThingId() const{ return m_thingId; } /** *

The thing ID.

*/ inline void SetThingId(const Aws::String& value) { m_thingId = value; } /** *

The thing ID.

*/ inline void SetThingId(Aws::String&& value) { m_thingId = std::move(value); } /** *

The thing ID.

*/ inline void SetThingId(const char* value) { m_thingId.assign(value); } /** *

The thing ID.

*/ inline CreateThingResult& WithThingId(const Aws::String& value) { SetThingId(value); return *this;} /** *

The thing ID.

*/ inline CreateThingResult& WithThingId(Aws::String&& value) { SetThingId(std::move(value)); return *this;} /** *

The thing ID.

*/ inline CreateThingResult& WithThingId(const char* value) { SetThingId(value); return *this;} inline const Aws::String& GetRequestId() const{ return m_requestId; } inline void SetRequestId(const Aws::String& value) { m_requestId = value; } inline void SetRequestId(Aws::String&& value) { m_requestId = std::move(value); } inline void SetRequestId(const char* value) { m_requestId.assign(value); } inline CreateThingResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;} inline CreateThingResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;} inline CreateThingResult& WithRequestId(const char* value) { SetRequestId(value); return *this;} private: Aws::String m_thingName; Aws::String m_thingArn; Aws::String m_thingId; Aws::String m_requestId; }; } // namespace Model } // namespace IoT } // namespace Aws