/** * 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 Inspector { namespace Model { /** */ class PreviewAgentsRequest : public InspectorRequest { public: AWS_INSPECTOR_API PreviewAgentsRequest(); // 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 "PreviewAgents"; } AWS_INSPECTOR_API Aws::String SerializePayload() const override; AWS_INSPECTOR_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override; /** *

The ARN of the assessment target whose agents you want to preview.

*/ inline const Aws::String& GetPreviewAgentsArn() const{ return m_previewAgentsArn; } /** *

The ARN of the assessment target whose agents you want to preview.

*/ inline bool PreviewAgentsArnHasBeenSet() const { return m_previewAgentsArnHasBeenSet; } /** *

The ARN of the assessment target whose agents you want to preview.

*/ inline void SetPreviewAgentsArn(const Aws::String& value) { m_previewAgentsArnHasBeenSet = true; m_previewAgentsArn = value; } /** *

The ARN of the assessment target whose agents you want to preview.

*/ inline void SetPreviewAgentsArn(Aws::String&& value) { m_previewAgentsArnHasBeenSet = true; m_previewAgentsArn = std::move(value); } /** *

The ARN of the assessment target whose agents you want to preview.

*/ inline void SetPreviewAgentsArn(const char* value) { m_previewAgentsArnHasBeenSet = true; m_previewAgentsArn.assign(value); } /** *

The ARN of the assessment target whose agents you want to preview.

*/ inline PreviewAgentsRequest& WithPreviewAgentsArn(const Aws::String& value) { SetPreviewAgentsArn(value); return *this;} /** *

The ARN of the assessment target whose agents you want to preview.

*/ inline PreviewAgentsRequest& WithPreviewAgentsArn(Aws::String&& value) { SetPreviewAgentsArn(std::move(value)); return *this;} /** *

The ARN of the assessment target whose agents you want to preview.

*/ inline PreviewAgentsRequest& WithPreviewAgentsArn(const char* value) { SetPreviewAgentsArn(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 PreviewAgents action. * 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 PreviewAgents action. * 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 PreviewAgents action. * 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 PreviewAgents action. * 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 PreviewAgents action. * 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 PreviewAgents action. * Subsequent calls to the action fill nextToken in the request with the * value of NextToken from the previous response to continue listing * data.

*/ inline PreviewAgentsRequest& 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 PreviewAgents action. * Subsequent calls to the action fill nextToken in the request with the * value of NextToken from the previous response to continue listing * data.

*/ inline PreviewAgentsRequest& 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 PreviewAgents action. * Subsequent calls to the action fill nextToken in the request with the * value of NextToken from the previous response to continue listing * data.

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

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

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

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

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

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

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

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

*/ inline PreviewAgentsRequest& WithMaxResults(int value) { SetMaxResults(value); return *this;} private: Aws::String m_previewAgentsArn; bool m_previewAgentsArnHasBeenSet = false; Aws::String m_nextToken; bool m_nextTokenHasBeenSet = false; int m_maxResults; bool m_maxResultsHasBeenSet = false; }; } // namespace Model } // namespace Inspector } // namespace Aws