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

Detaches the specified policy from the specified directory inside a * BatchWrite operation. For more information, see DetachPolicy and * BatchWriteRequest$Operations.

See Also:

AWS * API Reference

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

Reference that identifies the policy object.

*/ inline const ObjectReference& GetPolicyReference() const{ return m_policyReference; } /** *

Reference that identifies the policy object.

*/ inline bool PolicyReferenceHasBeenSet() const { return m_policyReferenceHasBeenSet; } /** *

Reference that identifies the policy object.

*/ inline void SetPolicyReference(const ObjectReference& value) { m_policyReferenceHasBeenSet = true; m_policyReference = value; } /** *

Reference that identifies the policy object.

*/ inline void SetPolicyReference(ObjectReference&& value) { m_policyReferenceHasBeenSet = true; m_policyReference = std::move(value); } /** *

Reference that identifies the policy object.

*/ inline BatchDetachPolicy& WithPolicyReference(const ObjectReference& value) { SetPolicyReference(value); return *this;} /** *

Reference that identifies the policy object.

*/ inline BatchDetachPolicy& WithPolicyReference(ObjectReference&& value) { SetPolicyReference(std::move(value)); return *this;} /** *

Reference that identifies the object whose policy object will be * detached.

*/ inline const ObjectReference& GetObjectReference() const{ return m_objectReference; } /** *

Reference that identifies the object whose policy object will be * detached.

*/ inline bool ObjectReferenceHasBeenSet() const { return m_objectReferenceHasBeenSet; } /** *

Reference that identifies the object whose policy object will be * detached.

*/ inline void SetObjectReference(const ObjectReference& value) { m_objectReferenceHasBeenSet = true; m_objectReference = value; } /** *

Reference that identifies the object whose policy object will be * detached.

*/ inline void SetObjectReference(ObjectReference&& value) { m_objectReferenceHasBeenSet = true; m_objectReference = std::move(value); } /** *

Reference that identifies the object whose policy object will be * detached.

*/ inline BatchDetachPolicy& WithObjectReference(const ObjectReference& value) { SetObjectReference(value); return *this;} /** *

Reference that identifies the object whose policy object will be * detached.

*/ inline BatchDetachPolicy& WithObjectReference(ObjectReference&& value) { SetObjectReference(std::move(value)); return *this;} private: ObjectReference m_policyReference; bool m_policyReferenceHasBeenSet = false; ObjectReference m_objectReference; bool m_objectReferenceHasBeenSet = false; }; } // namespace Model } // namespace CloudDirectory } // namespace Aws