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

The criteria used to filter the results of a vulnerability search.

*/ inline const SearchVulnerabilitiesFilterCriteria& GetFilterCriteria() const{ return m_filterCriteria; } /** *

The criteria used to filter the results of a vulnerability search.

*/ inline bool FilterCriteriaHasBeenSet() const { return m_filterCriteriaHasBeenSet; } /** *

The criteria used to filter the results of a vulnerability search.

*/ inline void SetFilterCriteria(const SearchVulnerabilitiesFilterCriteria& value) { m_filterCriteriaHasBeenSet = true; m_filterCriteria = value; } /** *

The criteria used to filter the results of a vulnerability search.

*/ inline void SetFilterCriteria(SearchVulnerabilitiesFilterCriteria&& value) { m_filterCriteriaHasBeenSet = true; m_filterCriteria = std::move(value); } /** *

The criteria used to filter the results of a vulnerability search.

*/ inline SearchVulnerabilitiesRequest& WithFilterCriteria(const SearchVulnerabilitiesFilterCriteria& value) { SetFilterCriteria(value); return *this;} /** *

The criteria used to filter the results of a vulnerability search.

*/ inline SearchVulnerabilitiesRequest& WithFilterCriteria(SearchVulnerabilitiesFilterCriteria&& value) { SetFilterCriteria(std::move(value)); return *this;} /** *

A token to use for paginating results that are returned in the response. Set * the value of this parameter to null for the first request to a list action. For * subsequent calls, use the NextToken value returned from the * previous request to continue listing results after the first page.

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

A token to use for paginating results that are returned in the response. Set * the value of this parameter to null for the first request to a list action. For * subsequent calls, use the NextToken value returned from the * previous request to continue listing results after the first page.

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

A token to use for paginating results that are returned in the response. Set * the value of this parameter to null for the first request to a list action. For * subsequent calls, use the NextToken value returned from the * previous request to continue listing results after the first page.

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

A token to use for paginating results that are returned in the response. Set * the value of this parameter to null for the first request to a list action. For * subsequent calls, use the NextToken value returned from the * previous request to continue listing results after the first page.

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

A token to use for paginating results that are returned in the response. Set * the value of this parameter to null for the first request to a list action. For * subsequent calls, use the NextToken value returned from the * previous request to continue listing results after the first page.

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

A token to use for paginating results that are returned in the response. Set * the value of this parameter to null for the first request to a list action. For * subsequent calls, use the NextToken value returned from the * previous request to continue listing results after the first page.

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

A token to use for paginating results that are returned in the response. Set * the value of this parameter to null for the first request to a list action. For * subsequent calls, use the NextToken value returned from the * previous request to continue listing results after the first page.

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

A token to use for paginating results that are returned in the response. Set * the value of this parameter to null for the first request to a list action. For * subsequent calls, use the NextToken value returned from the * previous request to continue listing results after the first page.

*/ inline SearchVulnerabilitiesRequest& WithNextToken(const char* value) { SetNextToken(value); return *this;} private: SearchVulnerabilitiesFilterCriteria m_filterCriteria; bool m_filterCriteriaHasBeenSet = false; Aws::String m_nextToken; bool m_nextTokenHasBeenSet = false; }; } // namespace Model } // namespace Inspector2 } // namespace Aws