/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include #include #include #include namespace Aws { namespace CloudDirectory { namespace Model { /** */ class UpdateObjectAttributesRequest : public CloudDirectoryRequest { public: AWS_CLOUDDIRECTORY_API UpdateObjectAttributesRequest(); // 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 "UpdateObjectAttributes"; } 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 the object resides. 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 the object resides. For more information, see arns.

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

The Amazon Resource Name (ARN) that is associated with the Directory * where the object resides. 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 the object resides. 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 the object resides. 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 the object resides. For more information, see arns.

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

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

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

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

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

The reference that identifies the object.

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

The reference that identifies the object.

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

The reference that identifies the object.

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

The reference that identifies the object.

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

The reference that identifies the object.

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

The reference that identifies the object.

*/ inline UpdateObjectAttributesRequest& WithObjectReference(ObjectReference&& value) { SetObjectReference(std::move(value)); return *this;} /** *

The attributes update structure.

*/ inline const Aws::Vector& GetAttributeUpdates() const{ return m_attributeUpdates; } /** *

The attributes update structure.

*/ inline bool AttributeUpdatesHasBeenSet() const { return m_attributeUpdatesHasBeenSet; } /** *

The attributes update structure.

*/ inline void SetAttributeUpdates(const Aws::Vector& value) { m_attributeUpdatesHasBeenSet = true; m_attributeUpdates = value; } /** *

The attributes update structure.

*/ inline void SetAttributeUpdates(Aws::Vector&& value) { m_attributeUpdatesHasBeenSet = true; m_attributeUpdates = std::move(value); } /** *

The attributes update structure.

*/ inline UpdateObjectAttributesRequest& WithAttributeUpdates(const Aws::Vector& value) { SetAttributeUpdates(value); return *this;} /** *

The attributes update structure.

*/ inline UpdateObjectAttributesRequest& WithAttributeUpdates(Aws::Vector&& value) { SetAttributeUpdates(std::move(value)); return *this;} /** *

The attributes update structure.

*/ inline UpdateObjectAttributesRequest& AddAttributeUpdates(const ObjectAttributeUpdate& value) { m_attributeUpdatesHasBeenSet = true; m_attributeUpdates.push_back(value); return *this; } /** *

The attributes update structure.

*/ inline UpdateObjectAttributesRequest& AddAttributeUpdates(ObjectAttributeUpdate&& value) { m_attributeUpdatesHasBeenSet = true; m_attributeUpdates.push_back(std::move(value)); return *this; } private: Aws::String m_directoryArn; bool m_directoryArnHasBeenSet = false; ObjectReference m_objectReference; bool m_objectReferenceHasBeenSet = false; Aws::Vector m_attributeUpdates; bool m_attributeUpdatesHasBeenSet = false; }; } // namespace Model } // namespace CloudDirectory } // namespace Aws