/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include #include namespace Aws { namespace CloudDirectory { namespace Model { /** */ class DetachPolicyRequest : public CloudDirectoryRequest { public: AWS_CLOUDDIRECTORY_API DetachPolicyRequest(); // Service request name is the Operation name which will send this request out, // each operation should has unique request name, so that we can get operation's name from this request. // Note: this is not true for response, multiple operations may have the same response name, // so we can not get operation's name from response. inline virtual const char* GetServiceRequestName() const override { return "DetachPolicy"; } AWS_CLOUDDIRECTORY_API Aws::String SerializePayload() const override; AWS_CLOUDDIRECTORY_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override; /** *

The Amazon Resource Name (ARN) that is associated with the Directory * where both objects reside. For more information, see arns.

*/ inline const Aws::String& GetDirectoryArn() const{ return m_directoryArn; } /** *

The Amazon Resource Name (ARN) that is associated with the Directory * where both objects reside. For more information, see arns.

*/ inline bool DirectoryArnHasBeenSet() const { return m_directoryArnHasBeenSet; } /** *

The Amazon Resource Name (ARN) that is associated with the Directory * where both objects reside. For more information, see arns.

*/ inline void SetDirectoryArn(const Aws::String& value) { m_directoryArnHasBeenSet = true; m_directoryArn = value; } /** *

The Amazon Resource Name (ARN) that is associated with the Directory * where both objects reside. For more information, see arns.

*/ inline void SetDirectoryArn(Aws::String&& value) { m_directoryArnHasBeenSet = true; m_directoryArn = std::move(value); } /** *

The Amazon Resource Name (ARN) that is associated with the Directory * where both objects reside. For more information, see arns.

*/ inline void SetDirectoryArn(const char* value) { m_directoryArnHasBeenSet = true; m_directoryArn.assign(value); } /** *

The Amazon Resource Name (ARN) that is associated with the Directory * where both objects reside. For more information, see arns.

*/ inline DetachPolicyRequest& WithDirectoryArn(const Aws::String& value) { SetDirectoryArn(value); return *this;} /** *

The Amazon Resource Name (ARN) that is associated with the Directory * where both objects reside. For more information, see arns.

*/ inline DetachPolicyRequest& WithDirectoryArn(Aws::String&& value) { SetDirectoryArn(std::move(value)); return *this;} /** *

The Amazon Resource Name (ARN) that is associated with the Directory * where both objects reside. For more information, see arns.

*/ inline DetachPolicyRequest& WithDirectoryArn(const char* value) { SetDirectoryArn(value); return *this;} /** *

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 DetachPolicyRequest& WithPolicyReference(const ObjectReference& value) { SetPolicyReference(value); return *this;} /** *

Reference that identifies the policy object.

*/ inline DetachPolicyRequest& 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 DetachPolicyRequest& WithObjectReference(const ObjectReference& value) { SetObjectReference(value); return *this;} /** *

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

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