/** * 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 CreateFacetRequest : public CloudDirectoryRequest { public: AWS_CLOUDDIRECTORY_API CreateFacetRequest(); // 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 "CreateFacet"; } AWS_CLOUDDIRECTORY_API Aws::String SerializePayload() const override; AWS_CLOUDDIRECTORY_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override; /** *

The schema ARN in which the new Facet will be created. For more * information, see arns.

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

The schema ARN in which the new Facet will be created. For more * information, see arns.

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

The schema ARN in which the new Facet will be created. For more * information, see arns.

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

The schema ARN in which the new Facet will be created. For more * information, see arns.

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

The schema ARN in which the new Facet will be created. For more * information, see arns.

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

The schema ARN in which the new Facet will be created. For more * information, see arns.

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

The schema ARN in which the new Facet will be created. For more * information, see arns.

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

The schema ARN in which the new Facet will be created. For more * information, see arns.

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

The name of the Facet, which is unique for a given schema.

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

The name of the Facet, which is unique for a given schema.

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

The name of the Facet, which is unique for a given schema.

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

The name of the Facet, which is unique for a given schema.

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

The name of the Facet, which is unique for a given schema.

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

The name of the Facet, which is unique for a given schema.

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

The name of the Facet, which is unique for a given schema.

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

The name of the Facet, which is unique for a given schema.

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

The attributes that are associated with the Facet.

*/ inline const Aws::Vector& GetAttributes() const{ return m_attributes; } /** *

The attributes that are associated with the Facet.

*/ inline bool AttributesHasBeenSet() const { return m_attributesHasBeenSet; } /** *

The attributes that are associated with the Facet.

*/ inline void SetAttributes(const Aws::Vector& value) { m_attributesHasBeenSet = true; m_attributes = value; } /** *

The attributes that are associated with the Facet.

*/ inline void SetAttributes(Aws::Vector&& value) { m_attributesHasBeenSet = true; m_attributes = std::move(value); } /** *

The attributes that are associated with the Facet.

*/ inline CreateFacetRequest& WithAttributes(const Aws::Vector& value) { SetAttributes(value); return *this;} /** *

The attributes that are associated with the Facet.

*/ inline CreateFacetRequest& WithAttributes(Aws::Vector&& value) { SetAttributes(std::move(value)); return *this;} /** *

The attributes that are associated with the Facet.

*/ inline CreateFacetRequest& AddAttributes(const FacetAttribute& value) { m_attributesHasBeenSet = true; m_attributes.push_back(value); return *this; } /** *

The attributes that are associated with the Facet.

*/ inline CreateFacetRequest& AddAttributes(FacetAttribute&& value) { m_attributesHasBeenSet = true; m_attributes.push_back(std::move(value)); return *this; } /** *

Specifies whether a given object created from this facet is of type node, * leaf node, policy or index.

  • Node: Can have multiple children * but one parent.

  • Leaf node: Cannot have children but * can have multiple parents.

  • Policy: Allows you to * store a policy document and policy type. For more information, see Policies.

    *
  • Index: Can be created with the Index API.

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

Specifies whether a given object created from this facet is of type node, * leaf node, policy or index.

  • Node: Can have multiple children * but one parent.

  • Leaf node: Cannot have children but * can have multiple parents.

  • Policy: Allows you to * store a policy document and policy type. For more information, see Policies.

    *
  • Index: Can be created with the Index API.

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

Specifies whether a given object created from this facet is of type node, * leaf node, policy or index.

  • Node: Can have multiple children * but one parent.

  • Leaf node: Cannot have children but * can have multiple parents.

  • Policy: Allows you to * store a policy document and policy type. For more information, see Policies.

    *
  • Index: Can be created with the Index API.

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

Specifies whether a given object created from this facet is of type node, * leaf node, policy or index.

  • Node: Can have multiple children * but one parent.

  • Leaf node: Cannot have children but * can have multiple parents.

  • Policy: Allows you to * store a policy document and policy type. For more information, see Policies.

    *
  • Index: Can be created with the Index API.

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

Specifies whether a given object created from this facet is of type node, * leaf node, policy or index.

  • Node: Can have multiple children * but one parent.

  • Leaf node: Cannot have children but * can have multiple parents.

  • Policy: Allows you to * store a policy document and policy type. For more information, see Policies.

    *
  • Index: Can be created with the Index API.

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

Specifies whether a given object created from this facet is of type node, * leaf node, policy or index.

  • Node: Can have multiple children * but one parent.

  • Leaf node: Cannot have children but * can have multiple parents.

  • Policy: Allows you to * store a policy document and policy type. For more information, see Policies.

    *
  • Index: Can be created with the Index API.

  • *
*/ inline CreateFacetRequest& WithObjectType(ObjectType&& value) { SetObjectType(std::move(value)); return *this;} /** *

There are two different styles that you can define on any given facet, * Static and Dynamic. For static facets, all attributes * must be defined in the schema. For dynamic facets, attributes can be defined * during data plane operations.

*/ inline const FacetStyle& GetFacetStyle() const{ return m_facetStyle; } /** *

There are two different styles that you can define on any given facet, * Static and Dynamic. For static facets, all attributes * must be defined in the schema. For dynamic facets, attributes can be defined * during data plane operations.

*/ inline bool FacetStyleHasBeenSet() const { return m_facetStyleHasBeenSet; } /** *

There are two different styles that you can define on any given facet, * Static and Dynamic. For static facets, all attributes * must be defined in the schema. For dynamic facets, attributes can be defined * during data plane operations.

*/ inline void SetFacetStyle(const FacetStyle& value) { m_facetStyleHasBeenSet = true; m_facetStyle = value; } /** *

There are two different styles that you can define on any given facet, * Static and Dynamic. For static facets, all attributes * must be defined in the schema. For dynamic facets, attributes can be defined * during data plane operations.

*/ inline void SetFacetStyle(FacetStyle&& value) { m_facetStyleHasBeenSet = true; m_facetStyle = std::move(value); } /** *

There are two different styles that you can define on any given facet, * Static and Dynamic. For static facets, all attributes * must be defined in the schema. For dynamic facets, attributes can be defined * during data plane operations.

*/ inline CreateFacetRequest& WithFacetStyle(const FacetStyle& value) { SetFacetStyle(value); return *this;} /** *

There are two different styles that you can define on any given facet, * Static and Dynamic. For static facets, all attributes * must be defined in the schema. For dynamic facets, attributes can be defined * during data plane operations.

*/ inline CreateFacetRequest& WithFacetStyle(FacetStyle&& value) { SetFacetStyle(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_attributes; bool m_attributesHasBeenSet = false; ObjectType m_objectType; bool m_objectTypeHasBeenSet = false; FacetStyle m_facetStyle; bool m_facetStyleHasBeenSet = false; }; } // namespace Model } // namespace CloudDirectory } // namespace Aws