This repository has been archived on 2025-09-14. You can view files and clone it, but cannot push or open issues or pull requests.
Files
pxz-hos-client-cpp-module/support/aws-sdk-cpp-master/aws-cpp-sdk-iot/include/aws/iot/model/DeleteThingRequest.h

129 lines
4.3 KiB
C++

/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/iot/IoT_EXPORTS.h>
#include <aws/iot/IoTRequest.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <utility>
namespace Aws
{
namespace Http
{
class URI;
} //namespace Http
namespace IoT
{
namespace Model
{
/**
* <p>The input for the DeleteThing operation.</p><p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/iot-2015-05-28/DeleteThingRequest">AWS
* API Reference</a></p>
*/
class AWS_IOT_API DeleteThingRequest : public IoTRequest
{
public:
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::String SerializePayload() const override;
void AddQueryStringParameters(Aws::Http::URI& uri) const override;
/**
* <p>The name of the thing to delete.</p>
*/
inline const Aws::String& GetThingName() const{ return m_thingName; }
/**
* <p>The name of the thing to delete.</p>
*/
inline bool ThingNameHasBeenSet() const { return m_thingNameHasBeenSet; }
/**
* <p>The name of the thing to delete.</p>
*/
inline void SetThingName(const Aws::String& value) { m_thingNameHasBeenSet = true; m_thingName = value; }
/**
* <p>The name of the thing to delete.</p>
*/
inline void SetThingName(Aws::String&& value) { m_thingNameHasBeenSet = true; m_thingName = std::move(value); }
/**
* <p>The name of the thing to delete.</p>
*/
inline void SetThingName(const char* value) { m_thingNameHasBeenSet = true; m_thingName.assign(value); }
/**
* <p>The name of the thing to delete.</p>
*/
inline DeleteThingRequest& WithThingName(const Aws::String& value) { SetThingName(value); return *this;}
/**
* <p>The name of the thing to delete.</p>
*/
inline DeleteThingRequest& WithThingName(Aws::String&& value) { SetThingName(std::move(value)); return *this;}
/**
* <p>The name of the thing to delete.</p>
*/
inline DeleteThingRequest& WithThingName(const char* value) { SetThingName(value); return *this;}
/**
* <p>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 <code>DeleteThing</code> request is rejected with a
* <code>VersionConflictException</code>.</p>
*/
inline long long GetExpectedVersion() const{ return m_expectedVersion; }
/**
* <p>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 <code>DeleteThing</code> request is rejected with a
* <code>VersionConflictException</code>.</p>
*/
inline bool ExpectedVersionHasBeenSet() const { return m_expectedVersionHasBeenSet; }
/**
* <p>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 <code>DeleteThing</code> request is rejected with a
* <code>VersionConflictException</code>.</p>
*/
inline void SetExpectedVersion(long long value) { m_expectedVersionHasBeenSet = true; m_expectedVersion = value; }
/**
* <p>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 <code>DeleteThing</code> request is rejected with a
* <code>VersionConflictException</code>.</p>
*/
inline DeleteThingRequest& WithExpectedVersion(long long value) { SetExpectedVersion(value); return *this;}
private:
Aws::String m_thingName;
bool m_thingNameHasBeenSet;
long long m_expectedVersion;
bool m_expectedVersionHasBeenSet;
};
} // namespace Model
} // namespace IoT
} // namespace Aws