Interface CreateFacetRequest.Builder

  • Method Details

    • schemaArn

      CreateFacetRequest.Builder schemaArn(String schemaArn)

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

      Parameters:
      schemaArn - The schema ARN in which the new Facet will be created. For more information, see arns.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • name

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

      Parameters:
      name - The name of the Facet, which is unique for a given schema.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • attributes

      The attributes that are associated with the Facet.

      Parameters:
      attributes - The attributes that are associated with the Facet.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • attributes

      CreateFacetRequest.Builder attributes(FacetAttribute... attributes)

      The attributes that are associated with the Facet.

      Parameters:
      attributes - The attributes that are associated with the Facet.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • attributes

      The attributes that are associated with the Facet.

      This is a convenience method that creates an instance of the FacetAttribute.Builder avoiding the need to create one manually via FacetAttribute.builder() .

      When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to attributes(List<FacetAttribute>).

      Parameters:
      attributes - a consumer that will call methods on FacetAttribute.Builder
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • objectType

      CreateFacetRequest.Builder objectType(String 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.

      Parameters:
      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.

      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • objectType

      CreateFacetRequest.Builder objectType(ObjectType 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.

      Parameters:
      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.

      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • facetStyle

      CreateFacetRequest.Builder facetStyle(String 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.

      Parameters:
      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.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • facetStyle

      CreateFacetRequest.Builder facetStyle(FacetStyle 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.

      Parameters:
      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.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • overrideConfiguration

      CreateFacetRequest.Builder overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration)
      Description copied from interface: AwsRequest.Builder
      Add an optional request override configuration.
      Specified by:
      overrideConfiguration in interface AwsRequest.Builder
      Parameters:
      overrideConfiguration - The override configuration.
      Returns:
      This object for method chaining.
    • overrideConfiguration

      Description copied from interface: AwsRequest.Builder
      Add an optional request override configuration.
      Specified by:
      overrideConfiguration in interface AwsRequest.Builder
      Parameters:
      builderConsumer - A Consumer to which an empty AwsRequestOverrideConfiguration.Builder will be given.
      Returns:
      This object for method chaining.