/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include #include namespace Aws { namespace Utils { namespace Json { class JsonValue; class JsonView; } // namespace Json } // namespace Utils namespace AccessAnalyzer { namespace Model { /** *

Contains the text for the generated policy and its details.

See * Also:

AWS * API Reference

*/ class GeneratedPolicyResults { public: AWS_ACCESSANALYZER_API GeneratedPolicyResults(); AWS_ACCESSANALYZER_API GeneratedPolicyResults(Aws::Utils::Json::JsonView jsonValue); AWS_ACCESSANALYZER_API GeneratedPolicyResults& operator=(Aws::Utils::Json::JsonView jsonValue); AWS_ACCESSANALYZER_API Aws::Utils::Json::JsonValue Jsonize() const; /** *

A GeneratedPolicyProperties object that contains properties of * the generated policy.

*/ inline const GeneratedPolicyProperties& GetProperties() const{ return m_properties; } /** *

A GeneratedPolicyProperties object that contains properties of * the generated policy.

*/ inline bool PropertiesHasBeenSet() const { return m_propertiesHasBeenSet; } /** *

A GeneratedPolicyProperties object that contains properties of * the generated policy.

*/ inline void SetProperties(const GeneratedPolicyProperties& value) { m_propertiesHasBeenSet = true; m_properties = value; } /** *

A GeneratedPolicyProperties object that contains properties of * the generated policy.

*/ inline void SetProperties(GeneratedPolicyProperties&& value) { m_propertiesHasBeenSet = true; m_properties = std::move(value); } /** *

A GeneratedPolicyProperties object that contains properties of * the generated policy.

*/ inline GeneratedPolicyResults& WithProperties(const GeneratedPolicyProperties& value) { SetProperties(value); return *this;} /** *

A GeneratedPolicyProperties object that contains properties of * the generated policy.

*/ inline GeneratedPolicyResults& WithProperties(GeneratedPolicyProperties&& value) { SetProperties(std::move(value)); return *this;} /** *

The text to use as the content for the new policy. The policy is created * using the CreatePolicy * action.

*/ inline const Aws::Vector& GetGeneratedPolicies() const{ return m_generatedPolicies; } /** *

The text to use as the content for the new policy. The policy is created * using the CreatePolicy * action.

*/ inline bool GeneratedPoliciesHasBeenSet() const { return m_generatedPoliciesHasBeenSet; } /** *

The text to use as the content for the new policy. The policy is created * using the CreatePolicy * action.

*/ inline void SetGeneratedPolicies(const Aws::Vector& value) { m_generatedPoliciesHasBeenSet = true; m_generatedPolicies = value; } /** *

The text to use as the content for the new policy. The policy is created * using the CreatePolicy * action.

*/ inline void SetGeneratedPolicies(Aws::Vector&& value) { m_generatedPoliciesHasBeenSet = true; m_generatedPolicies = std::move(value); } /** *

The text to use as the content for the new policy. The policy is created * using the CreatePolicy * action.

*/ inline GeneratedPolicyResults& WithGeneratedPolicies(const Aws::Vector& value) { SetGeneratedPolicies(value); return *this;} /** *

The text to use as the content for the new policy. The policy is created * using the CreatePolicy * action.

*/ inline GeneratedPolicyResults& WithGeneratedPolicies(Aws::Vector&& value) { SetGeneratedPolicies(std::move(value)); return *this;} /** *

The text to use as the content for the new policy. The policy is created * using the CreatePolicy * action.

*/ inline GeneratedPolicyResults& AddGeneratedPolicies(const GeneratedPolicy& value) { m_generatedPoliciesHasBeenSet = true; m_generatedPolicies.push_back(value); return *this; } /** *

The text to use as the content for the new policy. The policy is created * using the CreatePolicy * action.

*/ inline GeneratedPolicyResults& AddGeneratedPolicies(GeneratedPolicy&& value) { m_generatedPoliciesHasBeenSet = true; m_generatedPolicies.push_back(std::move(value)); return *this; } private: GeneratedPolicyProperties m_properties; bool m_propertiesHasBeenSet = false; Aws::Vector m_generatedPolicies; bool m_generatedPoliciesHasBeenSet = false; }; } // namespace Model } // namespace AccessAnalyzer } // namespace Aws