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

The input for the DeleteThing operation.

See Also:

AWS * API Reference

*/ class DeleteThingRequest : public IoTRequest { public: AWS_IOT_API DeleteThingRequest(); // Service request name is the Operation name which will send this request out, // each operation should has unique request name, so that we can get operation's name from this request. // Note: this is not true for response, multiple operations may have the same response name, // so we can not get operation's name from response. inline virtual const char* GetServiceRequestName() const override { return "DeleteThing"; } AWS_IOT_API Aws::String SerializePayload() const override; AWS_IOT_API void AddQueryStringParameters(Aws::Http::URI& uri) const override; /** *

The name of the thing to delete.

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

The name of the thing to delete.

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

The name of the thing to delete.

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

The name of the thing to delete.

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

The name of the thing to delete.

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

The name of the thing to delete.

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

The name of the thing to delete.

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

The name of the thing to delete.

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

The expected version of the thing record in the registry. If the version of * the record in the registry does not match the expected version specified in the * request, the DeleteThing request is rejected with a * VersionConflictException.

*/ inline long long GetExpectedVersion() const{ return m_expectedVersion; } /** *

The expected version of the thing record in the registry. If the version of * the record in the registry does not match the expected version specified in the * request, the DeleteThing request is rejected with a * VersionConflictException.

*/ inline bool ExpectedVersionHasBeenSet() const { return m_expectedVersionHasBeenSet; } /** *

The expected version of the thing record in the registry. If the version of * the record in the registry does not match the expected version specified in the * request, the DeleteThing request is rejected with a * VersionConflictException.

*/ inline void SetExpectedVersion(long long value) { m_expectedVersionHasBeenSet = true; m_expectedVersion = value; } /** *

The expected version of the thing record in the registry. If the version of * the record in the registry does not match the expected version specified in the * request, the DeleteThing request is rejected with a * VersionConflictException.

*/ inline DeleteThingRequest& WithExpectedVersion(long long value) { SetExpectedVersion(value); return *this;} private: Aws::String m_thingName; bool m_thingNameHasBeenSet = false; long long m_expectedVersion; bool m_expectedVersionHasBeenSet = false; }; } // namespace Model } // namespace IoT } // namespace Aws