/** * 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 Utils { namespace Json { class JsonValue; class JsonView; } // namespace Json } // namespace Utils namespace CloudDirectory { namespace Model { /** *

Represents the output of a CreateObject operation.

See * Also:

AWS * API Reference

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

A list of FacetArns that will be associated with the object. For * more information, see arns.

*/ inline const Aws::Vector& GetSchemaFacet() const{ return m_schemaFacet; } /** *

A list of FacetArns that will be associated with the object. For * more information, see arns.

*/ inline bool SchemaFacetHasBeenSet() const { return m_schemaFacetHasBeenSet; } /** *

A list of FacetArns that will be associated with the object. For * more information, see arns.

*/ inline void SetSchemaFacet(const Aws::Vector& value) { m_schemaFacetHasBeenSet = true; m_schemaFacet = value; } /** *

A list of FacetArns that will be associated with the object. For * more information, see arns.

*/ inline void SetSchemaFacet(Aws::Vector&& value) { m_schemaFacetHasBeenSet = true; m_schemaFacet = std::move(value); } /** *

A list of FacetArns that will be associated with the object. For * more information, see arns.

*/ inline BatchCreateObject& WithSchemaFacet(const Aws::Vector& value) { SetSchemaFacet(value); return *this;} /** *

A list of FacetArns that will be associated with the object. For * more information, see arns.

*/ inline BatchCreateObject& WithSchemaFacet(Aws::Vector&& value) { SetSchemaFacet(std::move(value)); return *this;} /** *

A list of FacetArns that will be associated with the object. For * more information, see arns.

*/ inline BatchCreateObject& AddSchemaFacet(const SchemaFacet& value) { m_schemaFacetHasBeenSet = true; m_schemaFacet.push_back(value); return *this; } /** *

A list of FacetArns that will be associated with the object. For * more information, see arns.

*/ inline BatchCreateObject& AddSchemaFacet(SchemaFacet&& value) { m_schemaFacetHasBeenSet = true; m_schemaFacet.push_back(std::move(value)); return *this; } /** *

An attribute map, which contains an attribute ARN as the key and attribute * value as the map value.

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

An attribute map, which contains an attribute ARN as the key and attribute * value as the map value.

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

An attribute map, which contains an attribute ARN as the key and attribute * value as the map value.

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

An attribute map, which contains an attribute ARN as the key and attribute * value as the map value.

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

An attribute map, which contains an attribute ARN as the key and attribute * value as the map value.

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

An attribute map, which contains an attribute ARN as the key and attribute * value as the map value.

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

An attribute map, which contains an attribute ARN as the key and attribute * value as the map value.

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

An attribute map, which contains an attribute ARN as the key and attribute * value as the map value.

*/ inline BatchCreateObject& 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 BatchCreateObject& WithParentReference(const ObjectReference& value) { SetParentReference(value); return *this;} /** *

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

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

The name of the link.

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

The name of the link.

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

The name of the link.

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

The name of the link.

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

The name of the link.

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

The name of the link.

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

The name of the link.

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

The name of the link.

*/ inline BatchCreateObject& WithLinkName(const char* value) { SetLinkName(value); return *this;} /** *

The batch reference name. See Transaction * Support for more information.

*/ inline const Aws::String& GetBatchReferenceName() const{ return m_batchReferenceName; } /** *

The batch reference name. See Transaction * Support for more information.

*/ inline bool BatchReferenceNameHasBeenSet() const { return m_batchReferenceNameHasBeenSet; } /** *

The batch reference name. See Transaction * Support for more information.

*/ inline void SetBatchReferenceName(const Aws::String& value) { m_batchReferenceNameHasBeenSet = true; m_batchReferenceName = value; } /** *

The batch reference name. See Transaction * Support for more information.

*/ inline void SetBatchReferenceName(Aws::String&& value) { m_batchReferenceNameHasBeenSet = true; m_batchReferenceName = std::move(value); } /** *

The batch reference name. See Transaction * Support for more information.

*/ inline void SetBatchReferenceName(const char* value) { m_batchReferenceNameHasBeenSet = true; m_batchReferenceName.assign(value); } /** *

The batch reference name. See Transaction * Support for more information.

*/ inline BatchCreateObject& WithBatchReferenceName(const Aws::String& value) { SetBatchReferenceName(value); return *this;} /** *

The batch reference name. See Transaction * Support for more information.

*/ inline BatchCreateObject& WithBatchReferenceName(Aws::String&& value) { SetBatchReferenceName(std::move(value)); return *this;} /** *

The batch reference name. See Transaction * Support for more information.

*/ inline BatchCreateObject& WithBatchReferenceName(const char* value) { SetBatchReferenceName(value); return *this;} private: Aws::Vector m_schemaFacet; bool m_schemaFacetHasBeenSet = false; Aws::Vector m_objectAttributeList; bool m_objectAttributeListHasBeenSet = false; ObjectReference m_parentReference; bool m_parentReferenceHasBeenSet = false; Aws::String m_linkName; bool m_linkNameHasBeenSet = false; Aws::String m_batchReferenceName; bool m_batchReferenceNameHasBeenSet = false; }; } // namespace Model } // namespace CloudDirectory } // namespace Aws