/** * 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 { /** *

Attaches a policy object to a regular object inside a BatchRead * operation. For more information, see AttachPolicy and * BatchReadRequest$Operations.

See Also:

AWS * API Reference

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

The reference that is associated with the policy object.

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

The reference that is associated with the policy object.

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

The reference that is associated with the policy object.

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

The reference that is associated with the policy object.

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

The reference that is associated with the policy object.

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

The reference that is associated with the policy object.

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

The reference that identifies the object to which the policy will be * attached.

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

The reference that identifies the object to which the policy will be * attached.

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

The reference that identifies the object to which the policy will be * attached.

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

The reference that identifies the object to which the policy will be * attached.

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

The reference that identifies the object to which the policy will be * attached.

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

The reference that identifies the object to which the policy will be * attached.

*/ inline BatchAttachPolicy& 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