Class ChangeAttributeTypeRequest.Builder

Object
Builder
Enclosing class:
ChangeAttributeTypeRequest

public static final class ChangeAttributeTypeRequest.Builder extends Object
  • Method Details

    • but

      Deprecated.
      This method will be removed in the future. Please, use ChangeAttributeTypeRequest.builder().
      Clone method for this Builder.
    • id

      Required. The ID of the Attribute Type to be changed. Silently ignored if the ID is provided as path parameter of the request.
      Returns:
      this.
    • publicId

      public ChangeAttributeTypeRequest.Builder publicId(String publicId)
      The new public id for the Attribute Type.

      It must be unique within all Attribute Types. It should contain only ASCII letters and digits. It must start with an uppercase ASCII character. It must end with "_C".

      WARNING : The public id should only be changed with extreme caution, since it can break existing customizations. The only valid use case is to change it after creation of the type, if no public id was specified, and the generated proposal is not acceptable.
      Returns:
      this.
    • name

      The new name for the Attribute Type.
      Returns:
      this.
    • description

      public ChangeAttributeTypeRequest.Builder description(String description)
      The new description for the Attribute Type.
      Returns:
      this.
    • language

      Deprecated.
      This parameter will be removed from the next major release, and has no effect.
      The new script language of the new Attribute Type, for script Attribute Types.
      Returns:
      this.
    • statisticsEnabled

      public ChangeAttributeTypeRequest.Builder statisticsEnabled(Boolean statisticsEnabled)
      Whether statistics should be enabled. This property is only applicable to Attribute Types of kind "Numeric" or "Boolean".
      Returns:
      this.
    • isInteger

      public ChangeAttributeTypeRequest.Builder isInteger(Boolean isInteger)
      Whether Attribute Type holds integer value. This property is only applicable to Attribute Types of kind "Numeric".
      Returns:
      this.
    • allowedValues

      public ChangeAttributeTypeRequest.Builder allowedValues(List<String> allowedValues)
      List of allowed values. This property is only applicable to Attribute Types of kind "Single Value List" or "Multi Value List"."
      Returns:
      this.
    • stringType

      public ChangeAttributeTypeRequest.Builder stringType(StringType stringType)
      Whether the Attribute Type holds rich text or plain text. This property is only applicable to Attribute Types of kind "String".
      Returns:
      this.
    • build

    • toString

      public String toString()
      Overrides:
      toString in class Object