/** * 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 GuardDuty { namespace Model { /** */ class DescribeMalwareScansRequest : public GuardDutyRequest { public: AWS_GUARDDUTY_API DescribeMalwareScansRequest(); // 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 "DescribeMalwareScans"; } AWS_GUARDDUTY_API Aws::String SerializePayload() const override; /** *

The unique ID of the detector that the request is associated with.

*/ inline const Aws::String& GetDetectorId() const{ return m_detectorId; } /** *

The unique ID of the detector that the request is associated with.

*/ inline bool DetectorIdHasBeenSet() const { return m_detectorIdHasBeenSet; } /** *

The unique ID of the detector that the request is associated with.

*/ inline void SetDetectorId(const Aws::String& value) { m_detectorIdHasBeenSet = true; m_detectorId = value; } /** *

The unique ID of the detector that the request is associated with.

*/ inline void SetDetectorId(Aws::String&& value) { m_detectorIdHasBeenSet = true; m_detectorId = std::move(value); } /** *

The unique ID of the detector that the request is associated with.

*/ inline void SetDetectorId(const char* value) { m_detectorIdHasBeenSet = true; m_detectorId.assign(value); } /** *

The unique ID of the detector that the request is associated with.

*/ inline DescribeMalwareScansRequest& WithDetectorId(const Aws::String& value) { SetDetectorId(value); return *this;} /** *

The unique ID of the detector that the request is associated with.

*/ inline DescribeMalwareScansRequest& WithDetectorId(Aws::String&& value) { SetDetectorId(std::move(value)); return *this;} /** *

The unique ID of the detector that the request is associated with.

*/ inline DescribeMalwareScansRequest& WithDetectorId(const char* value) { SetDetectorId(value); return *this;} /** *

You can use this parameter when paginating results. Set the value of this * parameter to null on your first call to the list action. For subsequent calls to * the action, fill nextToken in the request with the value of NextToken from the * previous response to continue listing data.

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

You can use this parameter when paginating results. Set the value of this * parameter to null on your first call to the list action. For subsequent calls to * the action, fill nextToken in the request with the value of NextToken from the * previous response to continue listing data.

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

You can use this parameter when paginating results. Set the value of this * parameter to null on your first call to the list action. For subsequent calls to * the action, fill nextToken in the request with the value of NextToken from the * previous response to continue listing data.

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

You can use this parameter when paginating results. Set the value of this * parameter to null on your first call to the list action. For subsequent calls to * the action, fill nextToken in the request with the value of NextToken from the * previous response to continue listing data.

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

You can use this parameter when paginating results. Set the value of this * parameter to null on your first call to the list action. For subsequent calls to * the action, fill nextToken in the request with the value of NextToken from the * previous response to continue listing data.

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

You can use this parameter when paginating results. Set the value of this * parameter to null on your first call to the list action. For subsequent calls to * the action, fill nextToken in the request with the value of NextToken from the * previous response to continue listing data.

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

You can use this parameter when paginating results. Set the value of this * parameter to null on your first call to the list action. For subsequent calls to * the action, fill nextToken in the request with the value of NextToken from the * previous response to continue listing data.

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

You can use this parameter when paginating results. Set the value of this * parameter to null on your first call to the list action. For subsequent calls to * the action, fill nextToken in the request with the value of NextToken from the * previous response to continue listing data.

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

You can use this parameter to indicate the maximum number of items that you * want in the response. The default value is 50. The maximum value is 50.

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

You can use this parameter to indicate the maximum number of items that you * want in the response. The default value is 50. The maximum value is 50.

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

You can use this parameter to indicate the maximum number of items that you * want in the response. The default value is 50. The maximum value is 50.

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

You can use this parameter to indicate the maximum number of items that you * want in the response. The default value is 50. The maximum value is 50.

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

Represents the criteria to be used in the filter for describing scan * entries.

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

Represents the criteria to be used in the filter for describing scan * entries.

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

Represents the criteria to be used in the filter for describing scan * entries.

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

Represents the criteria to be used in the filter for describing scan * entries.

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

Represents the criteria to be used in the filter for describing scan * entries.

*/ inline DescribeMalwareScansRequest& WithFilterCriteria(const FilterCriteria& value) { SetFilterCriteria(value); return *this;} /** *

Represents the criteria to be used in the filter for describing scan * entries.

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

Represents the criteria used for sorting scan entries. The * attributeName is required and it must be * scanStartTime.

*/ inline const SortCriteria& GetSortCriteria() const{ return m_sortCriteria; } /** *

Represents the criteria used for sorting scan entries. The * attributeName is required and it must be * scanStartTime.

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

Represents the criteria used for sorting scan entries. The * attributeName is required and it must be * scanStartTime.

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

Represents the criteria used for sorting scan entries. The * attributeName is required and it must be * scanStartTime.

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

Represents the criteria used for sorting scan entries. The * attributeName is required and it must be * scanStartTime.

*/ inline DescribeMalwareScansRequest& WithSortCriteria(const SortCriteria& value) { SetSortCriteria(value); return *this;} /** *

Represents the criteria used for sorting scan entries. The * attributeName is required and it must be * scanStartTime.

*/ inline DescribeMalwareScansRequest& WithSortCriteria(SortCriteria&& value) { SetSortCriteria(std::move(value)); return *this;} private: Aws::String m_detectorId; bool m_detectorIdHasBeenSet = false; Aws::String m_nextToken; bool m_nextTokenHasBeenSet = false; int m_maxResults; bool m_maxResultsHasBeenSet = false; FilterCriteria m_filterCriteria; bool m_filterCriteriaHasBeenSet = false; SortCriteria m_sortCriteria; bool m_sortCriteriaHasBeenSet = false; }; } // namespace Model } // namespace GuardDuty } // namespace Aws