/** * 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 DevOpsGuru { namespace Model { /** */ class SearchInsightsRequest : public DevOpsGuruRequest { public: AWS_DEVOPSGURU_API SearchInsightsRequest(); // 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 "SearchInsights"; } AWS_DEVOPSGURU_API Aws::String SerializePayload() const override; /** *

The start of the time range passed in. Returned insights occurred after this * time.

*/ inline const StartTimeRange& GetStartTimeRange() const{ return m_startTimeRange; } /** *

The start of the time range passed in. Returned insights occurred after this * time.

*/ inline bool StartTimeRangeHasBeenSet() const { return m_startTimeRangeHasBeenSet; } /** *

The start of the time range passed in. Returned insights occurred after this * time.

*/ inline void SetStartTimeRange(const StartTimeRange& value) { m_startTimeRangeHasBeenSet = true; m_startTimeRange = value; } /** *

The start of the time range passed in. Returned insights occurred after this * time.

*/ inline void SetStartTimeRange(StartTimeRange&& value) { m_startTimeRangeHasBeenSet = true; m_startTimeRange = std::move(value); } /** *

The start of the time range passed in. Returned insights occurred after this * time.

*/ inline SearchInsightsRequest& WithStartTimeRange(const StartTimeRange& value) { SetStartTimeRange(value); return *this;} /** *

The start of the time range passed in. Returned insights occurred after this * time.

*/ inline SearchInsightsRequest& WithStartTimeRange(StartTimeRange&& value) { SetStartTimeRange(std::move(value)); return *this;} /** *

A SearchInsightsFilters object that is used to set the severity * and status filters on your insight search.

*/ inline const SearchInsightsFilters& GetFilters() const{ return m_filters; } /** *

A SearchInsightsFilters object that is used to set the severity * and status filters on your insight search.

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

A SearchInsightsFilters object that is used to set the severity * and status filters on your insight search.

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

A SearchInsightsFilters object that is used to set the severity * and status filters on your insight search.

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

A SearchInsightsFilters object that is used to set the severity * and status filters on your insight search.

*/ inline SearchInsightsRequest& WithFilters(const SearchInsightsFilters& value) { SetFilters(value); return *this;} /** *

A SearchInsightsFilters object that is used to set the severity * and status filters on your insight search.

*/ inline SearchInsightsRequest& WithFilters(SearchInsightsFilters&& value) { SetFilters(std::move(value)); return *this;} /** *

The maximum number of results to return with a single call. To retrieve the * remaining results, make another call with the returned nextToken * value.

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

The maximum number of results to return with a single call. To retrieve the * remaining results, make another call with the returned nextToken * value.

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

The maximum number of results to return with a single call. To retrieve the * remaining results, make another call with the returned nextToken * value.

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

The maximum number of results to return with a single call. To retrieve the * remaining results, make another call with the returned nextToken * value.

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

The pagination token to use to retrieve the next page of results for this * operation. If this value is null, it retrieves the first page.

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

The pagination token to use to retrieve the next page of results for this * operation. If this value is null, it retrieves the first page.

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

The pagination token to use to retrieve the next page of results for this * operation. If this value is null, it retrieves the first page.

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

The pagination token to use to retrieve the next page of results for this * operation. If this value is null, it retrieves the first page.

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

The pagination token to use to retrieve the next page of results for this * operation. If this value is null, it retrieves the first page.

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

The pagination token to use to retrieve the next page of results for this * operation. If this value is null, it retrieves the first page.

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

The pagination token to use to retrieve the next page of results for this * operation. If this value is null, it retrieves the first page.

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

The pagination token to use to retrieve the next page of results for this * operation. If this value is null, it retrieves the first page.

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

The type of insights you are searching for (REACTIVE or * PROACTIVE).

*/ inline const InsightType& GetType() const{ return m_type; } /** *

The type of insights you are searching for (REACTIVE or * PROACTIVE).

*/ inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; } /** *

The type of insights you are searching for (REACTIVE or * PROACTIVE).

*/ inline void SetType(const InsightType& value) { m_typeHasBeenSet = true; m_type = value; } /** *

The type of insights you are searching for (REACTIVE or * PROACTIVE).

*/ inline void SetType(InsightType&& value) { m_typeHasBeenSet = true; m_type = std::move(value); } /** *

The type of insights you are searching for (REACTIVE or * PROACTIVE).

*/ inline SearchInsightsRequest& WithType(const InsightType& value) { SetType(value); return *this;} /** *

The type of insights you are searching for (REACTIVE or * PROACTIVE).

*/ inline SearchInsightsRequest& WithType(InsightType&& value) { SetType(std::move(value)); return *this;} private: StartTimeRange m_startTimeRange; bool m_startTimeRangeHasBeenSet = false; SearchInsightsFilters m_filters; bool m_filtersHasBeenSet = false; int m_maxResults; bool m_maxResultsHasBeenSet = false; Aws::String m_nextToken; bool m_nextTokenHasBeenSet = false; InsightType m_type; bool m_typeHasBeenSet = false; }; } // namespace Model } // namespace DevOpsGuru } // namespace Aws