/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include namespace Aws { namespace Http { class URI; } //namespace Http namespace GuardDuty { namespace Model { /** */ class ListDetectorsRequest : public GuardDutyRequest { public: AWS_GUARDDUTY_API ListDetectorsRequest(); // 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 "ListDetectors"; } AWS_GUARDDUTY_API Aws::String SerializePayload() const override; AWS_GUARDDUTY_API void AddQueryStringParameters(Aws::Http::URI& uri) const override; /** *

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 ListDetectorsRequest& WithMaxResults(int value) { SetMaxResults(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 ListDetectorsRequest& 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 ListDetectorsRequest& 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 ListDetectorsRequest& WithNextToken(const char* value) { SetNextToken(value); return *this;} private: int m_maxResults; bool m_maxResultsHasBeenSet = false; Aws::String m_nextToken; bool m_nextTokenHasBeenSet = false; }; } // namespace Model } // namespace GuardDuty } // namespace Aws