/** * 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 AccessAnalyzer { namespace Model { /** *

Starts a scan of the policies applied to the specified * resource.

See Also:

AWS * API Reference

*/ class AWS_ACCESSANALYZER_API StartResourceScanRequest : public AccessAnalyzerRequest { public: StartResourceScanRequest(); // 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 "StartResourceScan"; } Aws::String SerializePayload() const override; /** *

The ARN of the analyzer to use to scan the policies applied to the specified * resource.

*/ inline const Aws::String& GetAnalyzerArn() const{ return m_analyzerArn; } /** *

The ARN of the analyzer to use to scan the policies applied to the specified * resource.

*/ inline bool AnalyzerArnHasBeenSet() const { return m_analyzerArnHasBeenSet; } /** *

The ARN of the analyzer to use to scan the policies applied to the specified * resource.

*/ inline void SetAnalyzerArn(const Aws::String& value) { m_analyzerArnHasBeenSet = true; m_analyzerArn = value; } /** *

The ARN of the analyzer to use to scan the policies applied to the specified * resource.

*/ inline void SetAnalyzerArn(Aws::String&& value) { m_analyzerArnHasBeenSet = true; m_analyzerArn = std::move(value); } /** *

The ARN of the analyzer to use to scan the policies applied to the specified * resource.

*/ inline void SetAnalyzerArn(const char* value) { m_analyzerArnHasBeenSet = true; m_analyzerArn.assign(value); } /** *

The ARN of the analyzer to use to scan the policies applied to the specified * resource.

*/ inline StartResourceScanRequest& WithAnalyzerArn(const Aws::String& value) { SetAnalyzerArn(value); return *this;} /** *

The ARN of the analyzer to use to scan the policies applied to the specified * resource.

*/ inline StartResourceScanRequest& WithAnalyzerArn(Aws::String&& value) { SetAnalyzerArn(std::move(value)); return *this;} /** *

The ARN of the analyzer to use to scan the policies applied to the specified * resource.

*/ inline StartResourceScanRequest& WithAnalyzerArn(const char* value) { SetAnalyzerArn(value); return *this;} /** *

The ARN of the resource to scan.

*/ inline const Aws::String& GetResourceArn() const{ return m_resourceArn; } /** *

The ARN of the resource to scan.

*/ inline bool ResourceArnHasBeenSet() const { return m_resourceArnHasBeenSet; } /** *

The ARN of the resource to scan.

*/ inline void SetResourceArn(const Aws::String& value) { m_resourceArnHasBeenSet = true; m_resourceArn = value; } /** *

The ARN of the resource to scan.

*/ inline void SetResourceArn(Aws::String&& value) { m_resourceArnHasBeenSet = true; m_resourceArn = std::move(value); } /** *

The ARN of the resource to scan.

*/ inline void SetResourceArn(const char* value) { m_resourceArnHasBeenSet = true; m_resourceArn.assign(value); } /** *

The ARN of the resource to scan.

*/ inline StartResourceScanRequest& WithResourceArn(const Aws::String& value) { SetResourceArn(value); return *this;} /** *

The ARN of the resource to scan.

*/ inline StartResourceScanRequest& WithResourceArn(Aws::String&& value) { SetResourceArn(std::move(value)); return *this;} /** *

The ARN of the resource to scan.

*/ inline StartResourceScanRequest& WithResourceArn(const char* value) { SetResourceArn(value); return *this;} private: Aws::String m_analyzerArn; bool m_analyzerArnHasBeenSet; Aws::String m_resourceArn; bool m_resourceArnHasBeenSet; }; } // namespace Model } // namespace AccessAnalyzer } // namespace Aws