/** * 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 SecurityHub { namespace Model { /** */ class GetFindingsRequest : public SecurityHubRequest { public: AWS_SECURITYHUB_API GetFindingsRequest(); // 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 "GetFindings"; } AWS_SECURITYHUB_API Aws::String SerializePayload() const override; /** *

The finding attributes used to define a condition to filter the returned * findings.

You can filter by up to 10 finding attributes. For each * attribute, you can provide up to 20 filter values.

Note that in the * available filter fields, WorkflowState is deprecated. To search for * a finding based on its workflow status, use WorkflowStatus.

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

The finding attributes used to define a condition to filter the returned * findings.

You can filter by up to 10 finding attributes. For each * attribute, you can provide up to 20 filter values.

Note that in the * available filter fields, WorkflowState is deprecated. To search for * a finding based on its workflow status, use WorkflowStatus.

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

The finding attributes used to define a condition to filter the returned * findings.

You can filter by up to 10 finding attributes. For each * attribute, you can provide up to 20 filter values.

Note that in the * available filter fields, WorkflowState is deprecated. To search for * a finding based on its workflow status, use WorkflowStatus.

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

The finding attributes used to define a condition to filter the returned * findings.

You can filter by up to 10 finding attributes. For each * attribute, you can provide up to 20 filter values.

Note that in the * available filter fields, WorkflowState is deprecated. To search for * a finding based on its workflow status, use WorkflowStatus.

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

The finding attributes used to define a condition to filter the returned * findings.

You can filter by up to 10 finding attributes. For each * attribute, you can provide up to 20 filter values.

Note that in the * available filter fields, WorkflowState is deprecated. To search for * a finding based on its workflow status, use WorkflowStatus.

*/ inline GetFindingsRequest& WithFilters(const AwsSecurityFindingFilters& value) { SetFilters(value); return *this;} /** *

The finding attributes used to define a condition to filter the returned * findings.

You can filter by up to 10 finding attributes. For each * attribute, you can provide up to 20 filter values.

Note that in the * available filter fields, WorkflowState is deprecated. To search for * a finding based on its workflow status, use WorkflowStatus.

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

The finding attributes used to sort the list of returned findings.

*/ inline const Aws::Vector& GetSortCriteria() const{ return m_sortCriteria; } /** *

The finding attributes used to sort the list of returned findings.

*/ inline bool SortCriteriaHasBeenSet() const { return m_sortCriteriaHasBeenSet; } /** *

The finding attributes used to sort the list of returned findings.

*/ inline void SetSortCriteria(const Aws::Vector& value) { m_sortCriteriaHasBeenSet = true; m_sortCriteria = value; } /** *

The finding attributes used to sort the list of returned findings.

*/ inline void SetSortCriteria(Aws::Vector&& value) { m_sortCriteriaHasBeenSet = true; m_sortCriteria = std::move(value); } /** *

The finding attributes used to sort the list of returned findings.

*/ inline GetFindingsRequest& WithSortCriteria(const Aws::Vector& value) { SetSortCriteria(value); return *this;} /** *

The finding attributes used to sort the list of returned findings.

*/ inline GetFindingsRequest& WithSortCriteria(Aws::Vector&& value) { SetSortCriteria(std::move(value)); return *this;} /** *

The finding attributes used to sort the list of returned findings.

*/ inline GetFindingsRequest& AddSortCriteria(const SortCriterion& value) { m_sortCriteriaHasBeenSet = true; m_sortCriteria.push_back(value); return *this; } /** *

The finding attributes used to sort the list of returned findings.

*/ inline GetFindingsRequest& AddSortCriteria(SortCriterion&& value) { m_sortCriteriaHasBeenSet = true; m_sortCriteria.push_back(std::move(value)); return *this; } /** *

The token that is required for pagination. On your first call to the * GetFindings operation, set the value of this parameter to * NULL.

For subsequent calls to the operation, to continue * listing data, set the value of this parameter to the value returned from the * previous response.

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

The token that is required for pagination. On your first call to the * GetFindings operation, set the value of this parameter to * NULL.

For subsequent calls to the operation, to continue * listing data, set the value of this parameter to the value returned from the * previous response.

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

The token that is required for pagination. On your first call to the * GetFindings operation, set the value of this parameter to * NULL.

For subsequent calls to the operation, to continue * listing data, set the value of this parameter to the value returned from the * previous response.

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

The token that is required for pagination. On your first call to the * GetFindings operation, set the value of this parameter to * NULL.

For subsequent calls to the operation, to continue * listing data, set the value of this parameter to the value returned from the * previous response.

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

The token that is required for pagination. On your first call to the * GetFindings operation, set the value of this parameter to * NULL.

For subsequent calls to the operation, to continue * listing data, set the value of this parameter to the value returned from the * previous response.

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

The token that is required for pagination. On your first call to the * GetFindings operation, set the value of this parameter to * NULL.

For subsequent calls to the operation, to continue * listing data, set the value of this parameter to the value returned from the * previous response.

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

The token that is required for pagination. On your first call to the * GetFindings operation, set the value of this parameter to * NULL.

For subsequent calls to the operation, to continue * listing data, set the value of this parameter to the value returned from the * previous response.

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

The token that is required for pagination. On your first call to the * GetFindings operation, set the value of this parameter to * NULL.

For subsequent calls to the operation, to continue * listing data, set the value of this parameter to the value returned from the * previous response.

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

The maximum number of findings to return.

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

The maximum number of findings to return.

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

The maximum number of findings to return.

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

The maximum number of findings to return.

*/ inline GetFindingsRequest& WithMaxResults(int value) { SetMaxResults(value); return *this;} private: AwsSecurityFindingFilters m_filters; bool m_filtersHasBeenSet = false; Aws::Vector m_sortCriteria; bool m_sortCriteriaHasBeenSet = false; Aws::String m_nextToken; bool m_nextTokenHasBeenSet = false; int m_maxResults; bool m_maxResultsHasBeenSet = false; }; } // namespace Model } // namespace SecurityHub } // namespace Aws