/** * 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 #include namespace Aws { namespace CloudDirectory { namespace Model { /** */ class CreateObjectRequest : public CloudDirectoryRequest { public: AWS_CLOUDDIRECTORY_API CreateObjectRequest(); // 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 "CreateObject"; } 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 * in which the object will be created. 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 * in which the object will be created. For more information, see arns.

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

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

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

The Amazon Resource Name (ARN) that is associated with the Directory * in which the object will be created. For more information, see arns.

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

The Amazon Resource Name (ARN) that is associated with the Directory * in which the object will be created. For more information, see arns.

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

A list of schema facets to be associated with the object. Do not provide * minor version components. See SchemaFacet for details.

*/ inline const Aws::Vector& GetSchemaFacets() const{ return m_schemaFacets; } /** *

A list of schema facets to be associated with the object. Do not provide * minor version components. See SchemaFacet for details.

*/ inline bool SchemaFacetsHasBeenSet() const { return m_schemaFacetsHasBeenSet; } /** *

A list of schema facets to be associated with the object. Do not provide * minor version components. See SchemaFacet for details.

*/ inline void SetSchemaFacets(const Aws::Vector& value) { m_schemaFacetsHasBeenSet = true; m_schemaFacets = value; } /** *

A list of schema facets to be associated with the object. Do not provide * minor version components. See SchemaFacet for details.

*/ inline void SetSchemaFacets(Aws::Vector&& value) { m_schemaFacetsHasBeenSet = true; m_schemaFacets = std::move(value); } /** *

A list of schema facets to be associated with the object. Do not provide * minor version components. See SchemaFacet for details.

*/ inline CreateObjectRequest& WithSchemaFacets(const Aws::Vector& value) { SetSchemaFacets(value); return *this;} /** *

A list of schema facets to be associated with the object. Do not provide * minor version components. See SchemaFacet for details.

*/ inline CreateObjectRequest& WithSchemaFacets(Aws::Vector&& value) { SetSchemaFacets(std::move(value)); return *this;} /** *

A list of schema facets to be associated with the object. Do not provide * minor version components. See SchemaFacet for details.

*/ inline CreateObjectRequest& AddSchemaFacets(const SchemaFacet& value) { m_schemaFacetsHasBeenSet = true; m_schemaFacets.push_back(value); return *this; } /** *

A list of schema facets to be associated with the object. Do not provide * minor version components. See SchemaFacet for details.

*/ inline CreateObjectRequest& AddSchemaFacets(SchemaFacet&& value) { m_schemaFacetsHasBeenSet = true; m_schemaFacets.push_back(std::move(value)); return *this; } /** *

The attribute map whose attribute ARN contains the key and attribute value as * the map value.

*/ inline const Aws::Vector& GetObjectAttributeList() const{ return m_objectAttributeList; } /** *

The attribute map whose attribute ARN contains the key and attribute value as * the map value.

*/ inline bool ObjectAttributeListHasBeenSet() const { return m_objectAttributeListHasBeenSet; } /** *

The attribute map whose attribute ARN contains the key and attribute value as * the map value.

*/ inline void SetObjectAttributeList(const Aws::Vector& value) { m_objectAttributeListHasBeenSet = true; m_objectAttributeList = value; } /** *

The attribute map whose attribute ARN contains the key and attribute value as * the map value.

*/ inline void SetObjectAttributeList(Aws::Vector&& value) { m_objectAttributeListHasBeenSet = true; m_objectAttributeList = std::move(value); } /** *

The attribute map whose attribute ARN contains the key and attribute value as * the map value.

*/ inline CreateObjectRequest& WithObjectAttributeList(const Aws::Vector& value) { SetObjectAttributeList(value); return *this;} /** *

The attribute map whose attribute ARN contains the key and attribute value as * the map value.

*/ inline CreateObjectRequest& WithObjectAttributeList(Aws::Vector&& value) { SetObjectAttributeList(std::move(value)); return *this;} /** *

The attribute map whose attribute ARN contains the key and attribute value as * the map value.

*/ inline CreateObjectRequest& AddObjectAttributeList(const AttributeKeyAndValue& value) { m_objectAttributeListHasBeenSet = true; m_objectAttributeList.push_back(value); return *this; } /** *

The attribute map whose attribute ARN contains the key and attribute value as * the map value.

*/ inline CreateObjectRequest& AddObjectAttributeList(AttributeKeyAndValue&& value) { m_objectAttributeListHasBeenSet = true; m_objectAttributeList.push_back(std::move(value)); return *this; } /** *

If specified, the parent reference to which this object will be attached.

*/ inline const ObjectReference& GetParentReference() const{ return m_parentReference; } /** *

If specified, the parent reference to which this object will be attached.

*/ inline bool ParentReferenceHasBeenSet() const { return m_parentReferenceHasBeenSet; } /** *

If specified, the parent reference to which this object will be attached.

*/ inline void SetParentReference(const ObjectReference& value) { m_parentReferenceHasBeenSet = true; m_parentReference = value; } /** *

If specified, the parent reference to which this object will be attached.

*/ inline void SetParentReference(ObjectReference&& value) { m_parentReferenceHasBeenSet = true; m_parentReference = std::move(value); } /** *

If specified, the parent reference to which this object will be attached.

*/ inline CreateObjectRequest& WithParentReference(const ObjectReference& value) { SetParentReference(value); return *this;} /** *

If specified, the parent reference to which this object will be attached.

*/ inline CreateObjectRequest& WithParentReference(ObjectReference&& value) { SetParentReference(std::move(value)); return *this;} /** *

The name of link that is used to attach this object to a parent.

*/ inline const Aws::String& GetLinkName() const{ return m_linkName; } /** *

The name of link that is used to attach this object to a parent.

*/ inline bool LinkNameHasBeenSet() const { return m_linkNameHasBeenSet; } /** *

The name of link that is used to attach this object to a parent.

*/ inline void SetLinkName(const Aws::String& value) { m_linkNameHasBeenSet = true; m_linkName = value; } /** *

The name of link that is used to attach this object to a parent.

*/ inline void SetLinkName(Aws::String&& value) { m_linkNameHasBeenSet = true; m_linkName = std::move(value); } /** *

The name of link that is used to attach this object to a parent.

*/ inline void SetLinkName(const char* value) { m_linkNameHasBeenSet = true; m_linkName.assign(value); } /** *

The name of link that is used to attach this object to a parent.

*/ inline CreateObjectRequest& WithLinkName(const Aws::String& value) { SetLinkName(value); return *this;} /** *

The name of link that is used to attach this object to a parent.

*/ inline CreateObjectRequest& WithLinkName(Aws::String&& value) { SetLinkName(std::move(value)); return *this;} /** *

The name of link that is used to attach this object to a parent.

*/ inline CreateObjectRequest& WithLinkName(const char* value) { SetLinkName(value); return *this;} private: Aws::String m_directoryArn; bool m_directoryArnHasBeenSet = false; Aws::Vector m_schemaFacets; bool m_schemaFacetsHasBeenSet = false; Aws::Vector m_objectAttributeList; bool m_objectAttributeListHasBeenSet = false; ObjectReference m_parentReference; bool m_parentReferenceHasBeenSet = false; Aws::String m_linkName; bool m_linkNameHasBeenSet = false; }; } // namespace Model } // namespace CloudDirectory } // namespace Aws