94 lines
3.0 KiB
C++
94 lines
3.0 KiB
C++
/**
|
|
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
|
* SPDX-License-Identifier: Apache-2.0.
|
|
*/
|
|
|
|
#pragma once
|
|
#include <aws/logs/CloudWatchLogs_EXPORTS.h>
|
|
#include <aws/logs/CloudWatchLogsRequest.h>
|
|
#include <aws/core/utils/memory/stl/AWSString.h>
|
|
#include <utility>
|
|
|
|
namespace Aws
|
|
{
|
|
namespace CloudWatchLogs
|
|
{
|
|
namespace Model
|
|
{
|
|
|
|
/**
|
|
*/
|
|
class AWS_CLOUDWATCHLOGS_API StopQueryRequest : public CloudWatchLogsRequest
|
|
{
|
|
public:
|
|
StopQueryRequest();
|
|
|
|
// 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 "StopQuery"; }
|
|
|
|
Aws::String SerializePayload() const override;
|
|
|
|
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
|
|
|
|
|
|
/**
|
|
* <p>The ID number of the query to stop. To find this ID number, use
|
|
* <code>DescribeQueries</code>.</p>
|
|
*/
|
|
inline const Aws::String& GetQueryId() const{ return m_queryId; }
|
|
|
|
/**
|
|
* <p>The ID number of the query to stop. To find this ID number, use
|
|
* <code>DescribeQueries</code>.</p>
|
|
*/
|
|
inline bool QueryIdHasBeenSet() const { return m_queryIdHasBeenSet; }
|
|
|
|
/**
|
|
* <p>The ID number of the query to stop. To find this ID number, use
|
|
* <code>DescribeQueries</code>.</p>
|
|
*/
|
|
inline void SetQueryId(const Aws::String& value) { m_queryIdHasBeenSet = true; m_queryId = value; }
|
|
|
|
/**
|
|
* <p>The ID number of the query to stop. To find this ID number, use
|
|
* <code>DescribeQueries</code>.</p>
|
|
*/
|
|
inline void SetQueryId(Aws::String&& value) { m_queryIdHasBeenSet = true; m_queryId = std::move(value); }
|
|
|
|
/**
|
|
* <p>The ID number of the query to stop. To find this ID number, use
|
|
* <code>DescribeQueries</code>.</p>
|
|
*/
|
|
inline void SetQueryId(const char* value) { m_queryIdHasBeenSet = true; m_queryId.assign(value); }
|
|
|
|
/**
|
|
* <p>The ID number of the query to stop. To find this ID number, use
|
|
* <code>DescribeQueries</code>.</p>
|
|
*/
|
|
inline StopQueryRequest& WithQueryId(const Aws::String& value) { SetQueryId(value); return *this;}
|
|
|
|
/**
|
|
* <p>The ID number of the query to stop. To find this ID number, use
|
|
* <code>DescribeQueries</code>.</p>
|
|
*/
|
|
inline StopQueryRequest& WithQueryId(Aws::String&& value) { SetQueryId(std::move(value)); return *this;}
|
|
|
|
/**
|
|
* <p>The ID number of the query to stop. To find this ID number, use
|
|
* <code>DescribeQueries</code>.</p>
|
|
*/
|
|
inline StopQueryRequest& WithQueryId(const char* value) { SetQueryId(value); return *this;}
|
|
|
|
private:
|
|
|
|
Aws::String m_queryId;
|
|
bool m_queryIdHasBeenSet;
|
|
};
|
|
|
|
} // namespace Model
|
|
} // namespace CloudWatchLogs
|
|
} // namespace Aws
|