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