/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #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.

See Also:

AWS * API Reference

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

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

*/ inline const Aws::String& GetPolicy() const{ return m_policy; } /** *

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

*/ inline bool PolicyHasBeenSet() const { return m_policyHasBeenSet; } /** *

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

*/ inline void SetPolicy(const Aws::String& value) { m_policyHasBeenSet = true; m_policy = value; } /** *

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

*/ inline void SetPolicy(Aws::String&& value) { m_policyHasBeenSet = true; m_policy = std::move(value); } /** *

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

*/ inline void SetPolicy(const char* value) { m_policyHasBeenSet = true; m_policy.assign(value); } /** *

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

*/ inline GeneratedPolicy& WithPolicy(const Aws::String& value) { SetPolicy(value); return *this;} /** *

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

*/ inline GeneratedPolicy& WithPolicy(Aws::String&& value) { SetPolicy(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 GeneratedPolicy& WithPolicy(const char* value) { SetPolicy(value); return *this;} private: Aws::String m_policy; bool m_policyHasBeenSet = false; }; } // namespace Model } // namespace AccessAnalyzer } // namespace Aws