/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include #include #include #include namespace Aws { namespace CloudWatchRUM { namespace Model { /** */ class GetAppMonitorDataRequest : public CloudWatchRUMRequest { public: AWS_CLOUDWATCHRUM_API GetAppMonitorDataRequest(); // 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 "GetAppMonitorData"; } AWS_CLOUDWATCHRUM_API Aws::String SerializePayload() const override; /** *

An array of structures that you can use to filter the results to those that * match one or more sets of key-value pairs that you specify.

*/ inline const Aws::Vector& GetFilters() const{ return m_filters; } /** *

An array of structures that you can use to filter the results to those that * match one or more sets of key-value pairs that you specify.

*/ inline bool FiltersHasBeenSet() const { return m_filtersHasBeenSet; } /** *

An array of structures that you can use to filter the results to those that * match one or more sets of key-value pairs that you specify.

*/ inline void SetFilters(const Aws::Vector& value) { m_filtersHasBeenSet = true; m_filters = value; } /** *

An array of structures that you can use to filter the results to those that * match one or more sets of key-value pairs that you specify.

*/ inline void SetFilters(Aws::Vector&& value) { m_filtersHasBeenSet = true; m_filters = std::move(value); } /** *

An array of structures that you can use to filter the results to those that * match one or more sets of key-value pairs that you specify.

*/ inline GetAppMonitorDataRequest& WithFilters(const Aws::Vector& value) { SetFilters(value); return *this;} /** *

An array of structures that you can use to filter the results to those that * match one or more sets of key-value pairs that you specify.

*/ inline GetAppMonitorDataRequest& WithFilters(Aws::Vector&& value) { SetFilters(std::move(value)); return *this;} /** *

An array of structures that you can use to filter the results to those that * match one or more sets of key-value pairs that you specify.

*/ inline GetAppMonitorDataRequest& AddFilters(const QueryFilter& value) { m_filtersHasBeenSet = true; m_filters.push_back(value); return *this; } /** *

An array of structures that you can use to filter the results to those that * match one or more sets of key-value pairs that you specify.

*/ inline GetAppMonitorDataRequest& AddFilters(QueryFilter&& value) { m_filtersHasBeenSet = true; m_filters.push_back(std::move(value)); return *this; } /** *

The maximum number of results to return in one operation.

*/ inline int GetMaxResults() const{ return m_maxResults; } /** *

The maximum number of results to return in one operation.

*/ inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; } /** *

The maximum number of results to return in one operation.

*/ inline void SetMaxResults(int value) { m_maxResultsHasBeenSet = true; m_maxResults = value; } /** *

The maximum number of results to return in one operation.

*/ inline GetAppMonitorDataRequest& WithMaxResults(int value) { SetMaxResults(value); return *this;} /** *

The name of the app monitor that collected the data that you want to * retrieve.

*/ inline const Aws::String& GetName() const{ return m_name; } /** *

The name of the app monitor that collected the data that you want to * retrieve.

*/ inline bool NameHasBeenSet() const { return m_nameHasBeenSet; } /** *

The name of the app monitor that collected the data that you want to * retrieve.

*/ inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; } /** *

The name of the app monitor that collected the data that you want to * retrieve.

*/ inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); } /** *

The name of the app monitor that collected the data that you want to * retrieve.

*/ inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); } /** *

The name of the app monitor that collected the data that you want to * retrieve.

*/ inline GetAppMonitorDataRequest& WithName(const Aws::String& value) { SetName(value); return *this;} /** *

The name of the app monitor that collected the data that you want to * retrieve.

*/ inline GetAppMonitorDataRequest& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;} /** *

The name of the app monitor that collected the data that you want to * retrieve.

*/ inline GetAppMonitorDataRequest& WithName(const char* value) { SetName(value); return *this;} /** *

Use the token returned by the previous operation to request the next page of * results.

*/ inline const Aws::String& GetNextToken() const{ return m_nextToken; } /** *

Use the token returned by the previous operation to request the next page of * results.

*/ inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; } /** *

Use the token returned by the previous operation to request the next page of * results.

*/ inline void SetNextToken(const Aws::String& value) { m_nextTokenHasBeenSet = true; m_nextToken = value; } /** *

Use the token returned by the previous operation to request the next page of * results.

*/ inline void SetNextToken(Aws::String&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::move(value); } /** *

Use the token returned by the previous operation to request the next page of * results.

*/ inline void SetNextToken(const char* value) { m_nextTokenHasBeenSet = true; m_nextToken.assign(value); } /** *

Use the token returned by the previous operation to request the next page of * results.

*/ inline GetAppMonitorDataRequest& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;} /** *

Use the token returned by the previous operation to request the next page of * results.

*/ inline GetAppMonitorDataRequest& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;} /** *

Use the token returned by the previous operation to request the next page of * results.

*/ inline GetAppMonitorDataRequest& WithNextToken(const char* value) { SetNextToken(value); return *this;} /** *

A structure that defines the time range that you want to retrieve results * from.

*/ inline const TimeRange& GetTimeRange() const{ return m_timeRange; } /** *

A structure that defines the time range that you want to retrieve results * from.

*/ inline bool TimeRangeHasBeenSet() const { return m_timeRangeHasBeenSet; } /** *

A structure that defines the time range that you want to retrieve results * from.

*/ inline void SetTimeRange(const TimeRange& value) { m_timeRangeHasBeenSet = true; m_timeRange = value; } /** *

A structure that defines the time range that you want to retrieve results * from.

*/ inline void SetTimeRange(TimeRange&& value) { m_timeRangeHasBeenSet = true; m_timeRange = std::move(value); } /** *

A structure that defines the time range that you want to retrieve results * from.

*/ inline GetAppMonitorDataRequest& WithTimeRange(const TimeRange& value) { SetTimeRange(value); return *this;} /** *

A structure that defines the time range that you want to retrieve results * from.

*/ inline GetAppMonitorDataRequest& WithTimeRange(TimeRange&& value) { SetTimeRange(std::move(value)); return *this;} private: Aws::Vector m_filters; bool m_filtersHasBeenSet = false; int m_maxResults; bool m_maxResultsHasBeenSet = false; Aws::String m_name; bool m_nameHasBeenSet = false; Aws::String m_nextToken; bool m_nextTokenHasBeenSet = false; TimeRange m_timeRange; bool m_timeRangeHasBeenSet = false; }; } // namespace Model } // namespace CloudWatchRUM } // namespace Aws