/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include #include #include namespace Aws { namespace DevOpsGuru { namespace Model { /** */ class ListOrganizationInsightsRequest : public DevOpsGuruRequest { public: AWS_DEVOPSGURU_API ListOrganizationInsightsRequest(); // 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 "ListOrganizationInsights"; } AWS_DEVOPSGURU_API Aws::String SerializePayload() const override; inline const ListInsightsStatusFilter& GetStatusFilter() const{ return m_statusFilter; } inline bool StatusFilterHasBeenSet() const { return m_statusFilterHasBeenSet; } inline void SetStatusFilter(const ListInsightsStatusFilter& value) { m_statusFilterHasBeenSet = true; m_statusFilter = value; } inline void SetStatusFilter(ListInsightsStatusFilter&& value) { m_statusFilterHasBeenSet = true; m_statusFilter = std::move(value); } inline ListOrganizationInsightsRequest& WithStatusFilter(const ListInsightsStatusFilter& value) { SetStatusFilter(value); return *this;} inline ListOrganizationInsightsRequest& WithStatusFilter(ListInsightsStatusFilter&& value) { SetStatusFilter(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 ListOrganizationInsightsRequest& WithMaxResults(int value) { SetMaxResults(value); return *this;} /** *

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 ListOrganizationInsightsRequest& WithAccountIds(const Aws::Vector& value) { SetAccountIds(value); return *this;} /** *

The ID of the Amazon Web Services account.

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

The ID of the Amazon Web Services account.

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

The ID of the Amazon Web Services account.

*/ inline ListOrganizationInsightsRequest& 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 ListOrganizationInsightsRequest& AddAccountIds(const char* value) { m_accountIdsHasBeenSet = true; m_accountIds.push_back(value); return *this; } /** *

The ID of the organizational unit.

*/ inline const Aws::Vector& GetOrganizationalUnitIds() const{ return m_organizationalUnitIds; } /** *

The ID of the organizational unit.

*/ inline bool OrganizationalUnitIdsHasBeenSet() const { return m_organizationalUnitIdsHasBeenSet; } /** *

The ID of the organizational unit.

*/ inline void SetOrganizationalUnitIds(const Aws::Vector& value) { m_organizationalUnitIdsHasBeenSet = true; m_organizationalUnitIds = value; } /** *

The ID of the organizational unit.

*/ inline void SetOrganizationalUnitIds(Aws::Vector&& value) { m_organizationalUnitIdsHasBeenSet = true; m_organizationalUnitIds = std::move(value); } /** *

The ID of the organizational unit.

*/ inline ListOrganizationInsightsRequest& WithOrganizationalUnitIds(const Aws::Vector& value) { SetOrganizationalUnitIds(value); return *this;} /** *

The ID of the organizational unit.

*/ inline ListOrganizationInsightsRequest& WithOrganizationalUnitIds(Aws::Vector&& value) { SetOrganizationalUnitIds(std::move(value)); return *this;} /** *

The ID of the organizational unit.

*/ inline ListOrganizationInsightsRequest& AddOrganizationalUnitIds(const Aws::String& value) { m_organizationalUnitIdsHasBeenSet = true; m_organizationalUnitIds.push_back(value); return *this; } /** *

The ID of the organizational unit.

*/ inline ListOrganizationInsightsRequest& AddOrganizationalUnitIds(Aws::String&& value) { m_organizationalUnitIdsHasBeenSet = true; m_organizationalUnitIds.push_back(std::move(value)); return *this; } /** *

The ID of the organizational unit.

*/ inline ListOrganizationInsightsRequest& AddOrganizationalUnitIds(const char* value) { m_organizationalUnitIdsHasBeenSet = true; m_organizationalUnitIds.push_back(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 ListOrganizationInsightsRequest& 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 ListOrganizationInsightsRequest& 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 ListOrganizationInsightsRequest& WithNextToken(const char* value) { SetNextToken(value); return *this;} private: ListInsightsStatusFilter m_statusFilter; bool m_statusFilterHasBeenSet = false; int m_maxResults; bool m_maxResultsHasBeenSet = false; Aws::Vector m_accountIds; bool m_accountIdsHasBeenSet = false; Aws::Vector m_organizationalUnitIds; bool m_organizationalUnitIdsHasBeenSet = false; Aws::String m_nextToken; bool m_nextTokenHasBeenSet = false; }; } // namespace Model } // namespace DevOpsGuru } // namespace Aws