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

Retrieves an analyzed resource.

See Also:

AWS * API Reference

*/ class GetAnalyzedResourceRequest : public AccessAnalyzerRequest { public: AWS_ACCESSANALYZER_API GetAnalyzedResourceRequest(); // 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 "GetAnalyzedResource"; } AWS_ACCESSANALYZER_API Aws::String SerializePayload() const override; AWS_ACCESSANALYZER_API void AddQueryStringParameters(Aws::Http::URI& uri) const override; /** *

The ARN * of the analyzer to retrieve information from.

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

The ARN * of the analyzer to retrieve information from.

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

The ARN * of the analyzer to retrieve information from.

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

The ARN * of the analyzer to retrieve information from.

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

The ARN * of the analyzer to retrieve information from.

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

The ARN * of the analyzer to retrieve information from.

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

The ARN * of the analyzer to retrieve information from.

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

The ARN * of the analyzer to retrieve information from.

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

The ARN of the resource to retrieve information about.

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

The ARN of the resource to retrieve information about.

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

The ARN of the resource to retrieve information about.

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

The ARN of the resource to retrieve information about.

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

The ARN of the resource to retrieve information about.

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

The ARN of the resource to retrieve information about.

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

The ARN of the resource to retrieve information about.

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

The ARN of the resource to retrieve information about.

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