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

The JobId that is returned by the * StartPolicyGeneration operation. The JobId can be used * with GetGeneratedPolicy to retrieve the generated policies or used * with CancelPolicyGeneration to cancel the policy generation * request.

*/ inline const Aws::String& GetJobId() const{ return m_jobId; } /** *

The JobId that is returned by the * StartPolicyGeneration operation. The JobId can be used * with GetGeneratedPolicy to retrieve the generated policies or used * with CancelPolicyGeneration to cancel the policy generation * request.

*/ inline bool JobIdHasBeenSet() const { return m_jobIdHasBeenSet; } /** *

The JobId that is returned by the * StartPolicyGeneration operation. The JobId can be used * with GetGeneratedPolicy to retrieve the generated policies or used * with CancelPolicyGeneration to cancel the policy generation * request.

*/ inline void SetJobId(const Aws::String& value) { m_jobIdHasBeenSet = true; m_jobId = value; } /** *

The JobId that is returned by the * StartPolicyGeneration operation. The JobId can be used * with GetGeneratedPolicy to retrieve the generated policies or used * with CancelPolicyGeneration to cancel the policy generation * request.

*/ inline void SetJobId(Aws::String&& value) { m_jobIdHasBeenSet = true; m_jobId = std::move(value); } /** *

The JobId that is returned by the * StartPolicyGeneration operation. The JobId can be used * with GetGeneratedPolicy to retrieve the generated policies or used * with CancelPolicyGeneration to cancel the policy generation * request.

*/ inline void SetJobId(const char* value) { m_jobIdHasBeenSet = true; m_jobId.assign(value); } /** *

The JobId that is returned by the * StartPolicyGeneration operation. The JobId can be used * with GetGeneratedPolicy to retrieve the generated policies or used * with CancelPolicyGeneration to cancel the policy generation * request.

*/ inline GetGeneratedPolicyRequest& WithJobId(const Aws::String& value) { SetJobId(value); return *this;} /** *

The JobId that is returned by the * StartPolicyGeneration operation. The JobId can be used * with GetGeneratedPolicy to retrieve the generated policies or used * with CancelPolicyGeneration to cancel the policy generation * request.

*/ inline GetGeneratedPolicyRequest& WithJobId(Aws::String&& value) { SetJobId(std::move(value)); return *this;} /** *

The JobId that is returned by the * StartPolicyGeneration operation. The JobId can be used * with GetGeneratedPolicy to retrieve the generated policies or used * with CancelPolicyGeneration to cancel the policy generation * request.

*/ inline GetGeneratedPolicyRequest& WithJobId(const char* value) { SetJobId(value); return *this;} /** *

The level of detail that you want to generate. You can specify whether to * generate policies with placeholders for resource ARNs for actions that support * resource level granularity in policies.

For example, in the resource * section of a policy, you can receive a placeholder such as * "Resource":"arn:aws:s3:::${BucketName}" instead of * "*".

*/ inline bool GetIncludeResourcePlaceholders() const{ return m_includeResourcePlaceholders; } /** *

The level of detail that you want to generate. You can specify whether to * generate policies with placeholders for resource ARNs for actions that support * resource level granularity in policies.

For example, in the resource * section of a policy, you can receive a placeholder such as * "Resource":"arn:aws:s3:::${BucketName}" instead of * "*".

*/ inline bool IncludeResourcePlaceholdersHasBeenSet() const { return m_includeResourcePlaceholdersHasBeenSet; } /** *

The level of detail that you want to generate. You can specify whether to * generate policies with placeholders for resource ARNs for actions that support * resource level granularity in policies.

For example, in the resource * section of a policy, you can receive a placeholder such as * "Resource":"arn:aws:s3:::${BucketName}" instead of * "*".

*/ inline void SetIncludeResourcePlaceholders(bool value) { m_includeResourcePlaceholdersHasBeenSet = true; m_includeResourcePlaceholders = value; } /** *

The level of detail that you want to generate. You can specify whether to * generate policies with placeholders for resource ARNs for actions that support * resource level granularity in policies.

For example, in the resource * section of a policy, you can receive a placeholder such as * "Resource":"arn:aws:s3:::${BucketName}" instead of * "*".

*/ inline GetGeneratedPolicyRequest& WithIncludeResourcePlaceholders(bool value) { SetIncludeResourcePlaceholders(value); return *this;} /** *

The level of detail that you want to generate. You can specify whether to * generate service-level policies.

IAM Access Analyzer uses * iam:servicelastaccessed to identify services that have been used * recently to create this service-level template.

*/ inline bool GetIncludeServiceLevelTemplate() const{ return m_includeServiceLevelTemplate; } /** *

The level of detail that you want to generate. You can specify whether to * generate service-level policies.

IAM Access Analyzer uses * iam:servicelastaccessed to identify services that have been used * recently to create this service-level template.

*/ inline bool IncludeServiceLevelTemplateHasBeenSet() const { return m_includeServiceLevelTemplateHasBeenSet; } /** *

The level of detail that you want to generate. You can specify whether to * generate service-level policies.

IAM Access Analyzer uses * iam:servicelastaccessed to identify services that have been used * recently to create this service-level template.

*/ inline void SetIncludeServiceLevelTemplate(bool value) { m_includeServiceLevelTemplateHasBeenSet = true; m_includeServiceLevelTemplate = value; } /** *

The level of detail that you want to generate. You can specify whether to * generate service-level policies.

IAM Access Analyzer uses * iam:servicelastaccessed to identify services that have been used * recently to create this service-level template.

*/ inline GetGeneratedPolicyRequest& WithIncludeServiceLevelTemplate(bool value) { SetIncludeServiceLevelTemplate(value); return *this;} private: Aws::String m_jobId; bool m_jobIdHasBeenSet = false; bool m_includeResourcePlaceholders; bool m_includeResourcePlaceholdersHasBeenSet = false; bool m_includeServiceLevelTemplate; bool m_includeServiceLevelTemplateHasBeenSet = false; }; } // namespace Model } // namespace AccessAnalyzer } // namespace Aws