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

The ID of the Amazon Web Services account.

*/ inline const Aws::Vector& GetAccountIds() const{ return m_accountIds; } /** *

The ID of the Amazon Web Services account.

*/ inline bool AccountIdsHasBeenSet() const { return m_accountIdsHasBeenSet; } /** *

The ID of the Amazon Web Services account.

*/ inline void SetAccountIds(const Aws::Vector& value) { m_accountIdsHasBeenSet = true; m_accountIds = value; } /** *

The ID of the Amazon Web Services account.

*/ inline void SetAccountIds(Aws::Vector&& value) { m_accountIdsHasBeenSet = true; m_accountIds = std::move(value); } /** *

The ID of the Amazon Web Services account.

*/ inline SearchOrganizationInsightsRequest& WithAccountIds(const Aws::Vector& value) { SetAccountIds(value); return *this;} /** *

The ID of the Amazon Web Services account.

*/ inline SearchOrganizationInsightsRequest& WithAccountIds(Aws::Vector&& value) { SetAccountIds(std::move(value)); return *this;} /** *

The ID of the Amazon Web Services account.

*/ inline SearchOrganizationInsightsRequest& AddAccountIds(const Aws::String& value) { m_accountIdsHasBeenSet = true; m_accountIds.push_back(value); return *this; } /** *

The ID of the Amazon Web Services account.

*/ inline SearchOrganizationInsightsRequest& AddAccountIds(Aws::String&& value) { m_accountIdsHasBeenSet = true; m_accountIds.push_back(std::move(value)); return *this; } /** *

The ID of the Amazon Web Services account.

*/ inline SearchOrganizationInsightsRequest& AddAccountIds(const char* value) { m_accountIdsHasBeenSet = true; m_accountIds.push_back(value); return *this; } inline const StartTimeRange& GetStartTimeRange() const{ return m_startTimeRange; } inline bool StartTimeRangeHasBeenSet() const { return m_startTimeRangeHasBeenSet; } inline void SetStartTimeRange(const StartTimeRange& value) { m_startTimeRangeHasBeenSet = true; m_startTimeRange = value; } inline void SetStartTimeRange(StartTimeRange&& value) { m_startTimeRangeHasBeenSet = true; m_startTimeRange = std::move(value); } inline SearchOrganizationInsightsRequest& WithStartTimeRange(const StartTimeRange& value) { SetStartTimeRange(value); return *this;} inline SearchOrganizationInsightsRequest& WithStartTimeRange(StartTimeRange&& value) { SetStartTimeRange(std::move(value)); return *this;} /** *

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

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

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

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

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

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

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

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

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

*/ inline SearchOrganizationInsightsRequest& WithFilters(const SearchOrganizationInsightsFilters& value) { SetFilters(value); return *this;} /** *

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

*/ inline SearchOrganizationInsightsRequest& WithFilters(SearchOrganizationInsightsFilters&& 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 SearchOrganizationInsightsRequest& 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 SearchOrganizationInsightsRequest& 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 SearchOrganizationInsightsRequest& 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 SearchOrganizationInsightsRequest& 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 SearchOrganizationInsightsRequest& WithType(const InsightType& value) { SetType(value); return *this;} /** *

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

*/ inline SearchOrganizationInsightsRequest& WithType(InsightType&& value) { SetType(std::move(value)); return *this;} private: Aws::Vector m_accountIds; bool m_accountIdsHasBeenSet = false; StartTimeRange m_startTimeRange; bool m_startTimeRangeHasBeenSet = false; SearchOrganizationInsightsFilters 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