/** * 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 UpdateFacetRequest : public CloudDirectoryRequest { public: AWS_CLOUDDIRECTORY_API UpdateFacetRequest(); // 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 "UpdateFacet"; } 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 Facet. For * more information, see arns.

*/ inline const Aws::String& GetSchemaArn() const{ return m_schemaArn; } /** *

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

*/ inline bool SchemaArnHasBeenSet() const { return m_schemaArnHasBeenSet; } /** *

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

*/ inline void SetSchemaArn(const Aws::String& value) { m_schemaArnHasBeenSet = true; m_schemaArn = value; } /** *

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

*/ inline void SetSchemaArn(Aws::String&& value) { m_schemaArnHasBeenSet = true; m_schemaArn = std::move(value); } /** *

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

*/ inline void SetSchemaArn(const char* value) { m_schemaArnHasBeenSet = true; m_schemaArn.assign(value); } /** *

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

*/ inline UpdateFacetRequest& WithSchemaArn(const Aws::String& value) { SetSchemaArn(value); return *this;} /** *

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

*/ inline UpdateFacetRequest& WithSchemaArn(Aws::String&& value) { SetSchemaArn(std::move(value)); return *this;} /** *

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

*/ inline UpdateFacetRequest& WithSchemaArn(const char* value) { SetSchemaArn(value); return *this;} /** *

The name of the facet.

*/ inline const Aws::String& GetName() const{ return m_name; } /** *

The name of the facet.

*/ inline bool NameHasBeenSet() const { return m_nameHasBeenSet; } /** *

The name of the facet.

*/ inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; } /** *

The name of the facet.

*/ inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); } /** *

The name of the facet.

*/ inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); } /** *

The name of the facet.

*/ inline UpdateFacetRequest& WithName(const Aws::String& value) { SetName(value); return *this;} /** *

The name of the facet.

*/ inline UpdateFacetRequest& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;} /** *

The name of the facet.

*/ inline UpdateFacetRequest& WithName(const char* value) { SetName(value); return *this;} /** *

List of attributes that need to be updated in a given schema Facet. * Each attribute is followed by AttributeAction, which specifies the * type of update operation to perform.

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

List of attributes that need to be updated in a given schema Facet. * Each attribute is followed by AttributeAction, which specifies the * type of update operation to perform.

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

List of attributes that need to be updated in a given schema Facet. * Each attribute is followed by AttributeAction, which specifies the * type of update operation to perform.

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

List of attributes that need to be updated in a given schema Facet. * Each attribute is followed by AttributeAction, which specifies the * type of update operation to perform.

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

List of attributes that need to be updated in a given schema Facet. * Each attribute is followed by AttributeAction, which specifies the * type of update operation to perform.

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

List of attributes that need to be updated in a given schema Facet. * Each attribute is followed by AttributeAction, which specifies the * type of update operation to perform.

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

List of attributes that need to be updated in a given schema Facet. * Each attribute is followed by AttributeAction, which specifies the * type of update operation to perform.

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

List of attributes that need to be updated in a given schema Facet. * Each attribute is followed by AttributeAction, which specifies the * type of update operation to perform.

*/ inline UpdateFacetRequest& AddAttributeUpdates(FacetAttributeUpdate&& value) { m_attributeUpdatesHasBeenSet = true; m_attributeUpdates.push_back(std::move(value)); return *this; } /** *

The object type that is associated with the facet. See * CreateFacetRequest$ObjectType for more details.

*/ inline const ObjectType& GetObjectType() const{ return m_objectType; } /** *

The object type that is associated with the facet. See * CreateFacetRequest$ObjectType for more details.

*/ inline bool ObjectTypeHasBeenSet() const { return m_objectTypeHasBeenSet; } /** *

The object type that is associated with the facet. See * CreateFacetRequest$ObjectType for more details.

*/ inline void SetObjectType(const ObjectType& value) { m_objectTypeHasBeenSet = true; m_objectType = value; } /** *

The object type that is associated with the facet. See * CreateFacetRequest$ObjectType for more details.

*/ inline void SetObjectType(ObjectType&& value) { m_objectTypeHasBeenSet = true; m_objectType = std::move(value); } /** *

The object type that is associated with the facet. See * CreateFacetRequest$ObjectType for more details.

*/ inline UpdateFacetRequest& WithObjectType(const ObjectType& value) { SetObjectType(value); return *this;} /** *

The object type that is associated with the facet. See * CreateFacetRequest$ObjectType for more details.

*/ inline UpdateFacetRequest& WithObjectType(ObjectType&& value) { SetObjectType(std::move(value)); return *this;} private: Aws::String m_schemaArn; bool m_schemaArnHasBeenSet = false; Aws::String m_name; bool m_nameHasBeenSet = false; Aws::Vector m_attributeUpdates; bool m_attributeUpdatesHasBeenSet = false; ObjectType m_objectType; bool m_objectTypeHasBeenSet = false; }; } // namespace Model } // namespace CloudDirectory } // namespace Aws