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

Contains information about updates to be applied to a policy.

This * data type is used as a request parameter in the UpdatePolicy * operation.

See Also:

AWS * API Reference

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

Contains details about the updates to be applied to a static policy.

*/ inline const UpdateStaticPolicyDefinition& GetStatic() const{ return m_static; } /** *

Contains details about the updates to be applied to a static policy.

*/ inline bool StaticHasBeenSet() const { return m_staticHasBeenSet; } /** *

Contains details about the updates to be applied to a static policy.

*/ inline void SetStatic(const UpdateStaticPolicyDefinition& value) { m_staticHasBeenSet = true; m_static = value; } /** *

Contains details about the updates to be applied to a static policy.

*/ inline void SetStatic(UpdateStaticPolicyDefinition&& value) { m_staticHasBeenSet = true; m_static = std::move(value); } /** *

Contains details about the updates to be applied to a static policy.

*/ inline UpdatePolicyDefinition& WithStatic(const UpdateStaticPolicyDefinition& value) { SetStatic(value); return *this;} /** *

Contains details about the updates to be applied to a static policy.

*/ inline UpdatePolicyDefinition& WithStatic(UpdateStaticPolicyDefinition&& value) { SetStatic(std::move(value)); return *this;} private: UpdateStaticPolicyDefinition m_static; bool m_staticHasBeenSet = false; }; } // namespace Model } // namespace VerifiedPermissions } // namespace Aws