146 lines
5.4 KiB
C++
146 lines
5.4 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 DescribeQueryDefinitionsRequest : public CloudWatchLogsRequest
|
|
{
|
|
public:
|
|
DescribeQueryDefinitionsRequest();
|
|
|
|
// 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 "DescribeQueryDefinitions"; }
|
|
|
|
Aws::String SerializePayload() const override;
|
|
|
|
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
|
|
|
|
|
|
/**
|
|
* <p>Use this parameter to filter your results to only the query definitions that
|
|
* have names that start with the prefix you specify.</p>
|
|
*/
|
|
inline const Aws::String& GetQueryDefinitionNamePrefix() const{ return m_queryDefinitionNamePrefix; }
|
|
|
|
/**
|
|
* <p>Use this parameter to filter your results to only the query definitions that
|
|
* have names that start with the prefix you specify.</p>
|
|
*/
|
|
inline bool QueryDefinitionNamePrefixHasBeenSet() const { return m_queryDefinitionNamePrefixHasBeenSet; }
|
|
|
|
/**
|
|
* <p>Use this parameter to filter your results to only the query definitions that
|
|
* have names that start with the prefix you specify.</p>
|
|
*/
|
|
inline void SetQueryDefinitionNamePrefix(const Aws::String& value) { m_queryDefinitionNamePrefixHasBeenSet = true; m_queryDefinitionNamePrefix = value; }
|
|
|
|
/**
|
|
* <p>Use this parameter to filter your results to only the query definitions that
|
|
* have names that start with the prefix you specify.</p>
|
|
*/
|
|
inline void SetQueryDefinitionNamePrefix(Aws::String&& value) { m_queryDefinitionNamePrefixHasBeenSet = true; m_queryDefinitionNamePrefix = std::move(value); }
|
|
|
|
/**
|
|
* <p>Use this parameter to filter your results to only the query definitions that
|
|
* have names that start with the prefix you specify.</p>
|
|
*/
|
|
inline void SetQueryDefinitionNamePrefix(const char* value) { m_queryDefinitionNamePrefixHasBeenSet = true; m_queryDefinitionNamePrefix.assign(value); }
|
|
|
|
/**
|
|
* <p>Use this parameter to filter your results to only the query definitions that
|
|
* have names that start with the prefix you specify.</p>
|
|
*/
|
|
inline DescribeQueryDefinitionsRequest& WithQueryDefinitionNamePrefix(const Aws::String& value) { SetQueryDefinitionNamePrefix(value); return *this;}
|
|
|
|
/**
|
|
* <p>Use this parameter to filter your results to only the query definitions that
|
|
* have names that start with the prefix you specify.</p>
|
|
*/
|
|
inline DescribeQueryDefinitionsRequest& WithQueryDefinitionNamePrefix(Aws::String&& value) { SetQueryDefinitionNamePrefix(std::move(value)); return *this;}
|
|
|
|
/**
|
|
* <p>Use this parameter to filter your results to only the query definitions that
|
|
* have names that start with the prefix you specify.</p>
|
|
*/
|
|
inline DescribeQueryDefinitionsRequest& WithQueryDefinitionNamePrefix(const char* value) { SetQueryDefinitionNamePrefix(value); return *this;}
|
|
|
|
|
|
/**
|
|
* <p>Limits the number of returned query definitions to the specified number.</p>
|
|
*/
|
|
inline int GetMaxResults() const{ return m_maxResults; }
|
|
|
|
/**
|
|
* <p>Limits the number of returned query definitions to the specified number.</p>
|
|
*/
|
|
inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
|
|
|
|
/**
|
|
* <p>Limits the number of returned query definitions to the specified number.</p>
|
|
*/
|
|
inline void SetMaxResults(int value) { m_maxResultsHasBeenSet = true; m_maxResults = value; }
|
|
|
|
/**
|
|
* <p>Limits the number of returned query definitions to the specified number.</p>
|
|
*/
|
|
inline DescribeQueryDefinitionsRequest& WithMaxResults(int value) { SetMaxResults(value); return *this;}
|
|
|
|
|
|
|
|
inline const Aws::String& GetNextToken() const{ return m_nextToken; }
|
|
|
|
|
|
inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
|
|
|
|
|
|
inline void SetNextToken(const Aws::String& value) { m_nextTokenHasBeenSet = true; m_nextToken = value; }
|
|
|
|
|
|
inline void SetNextToken(Aws::String&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::move(value); }
|
|
|
|
|
|
inline void SetNextToken(const char* value) { m_nextTokenHasBeenSet = true; m_nextToken.assign(value); }
|
|
|
|
|
|
inline DescribeQueryDefinitionsRequest& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;}
|
|
|
|
|
|
inline DescribeQueryDefinitionsRequest& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;}
|
|
|
|
|
|
inline DescribeQueryDefinitionsRequest& WithNextToken(const char* value) { SetNextToken(value); return *this;}
|
|
|
|
private:
|
|
|
|
Aws::String m_queryDefinitionNamePrefix;
|
|
bool m_queryDefinitionNamePrefixHasBeenSet;
|
|
|
|
int m_maxResults;
|
|
bool m_maxResultsHasBeenSet;
|
|
|
|
Aws::String m_nextToken;
|
|
bool m_nextTokenHasBeenSet;
|
|
};
|
|
|
|
} // namespace Model
|
|
} // namespace CloudWatchLogs
|
|
} // namespace Aws
|