Class ChangeAttributeTypeRequest

Object
ChangeAttributeTypeRequest
All Implemented Interfaces:
Serializable

public class ChangeAttributeTypeRequest extends Object implements Serializable
The properties of the Attribute Type to be changed.
See Also:
  • Constructor Details

    • ChangeAttributeTypeRequest

      public ChangeAttributeTypeRequest()
  • Method Details

    • builder

      public static ChangeAttributeTypeRequest.Builder builder()
    • getId

      public UUID getId()
      Required. The ID of the Attribute Type to be changed.
    • getPublicId

      public String getPublicId()
      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.
    • getName

      public String getName()
      The new name for the Attribute Type.
    • getDescription

      public String getDescription()
      The new description for the Attribute Type.
    • getLanguage

      @Deprecated public String getLanguage()
      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.
    • getStatisticsEnabled

      public Boolean getStatisticsEnabled()
      Whether statistics should be enabled. This property is only applicable to Attribute Types of kind "Numeric" or "Boolean".
    • getIsInteger

      public Boolean getIsInteger()
      Whether Attribute Type holds integer value. This property is only applicable to Attribute Types of kind "Numeric".
    • getAllowedValues

      public List<String> getAllowedValues()
      List of allowed values. This property is only applicable to Attribute Types of kind "Single Value List" or "Multi Value List"."
    • getStringType

      public StringType getStringType()
      Whether the Attribute Type holds rich text or plain text. This property is only applicable to Attribute Types of kind "String".
    • setId

      public void setId(UUID id)
      Required. The ID of the Attribute Type to be changed.
    • setPublicId

      public void setPublicId(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.
    • setName

      public void setName(String name)
      The new name for the Attribute Type.
    • setDescription

      public void setDescription(String description)
      The new description for the Attribute Type.
    • setLanguage

      @Deprecated public void setLanguage(String 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.
    • setStatisticsEnabled

      public void setStatisticsEnabled(Boolean statisticsEnabled)
      Whether statistics should be enabled. This property is only applicable to Attribute Types of kind "Numeric" or "Boolean".
    • setIsInteger

      public void setIsInteger(Boolean isInteger)
      Whether Attribute Type holds integer value. This property is only applicable to Attribute Types of kind "Numeric".
    • setAllowedValues

      public void setAllowedValues(List<String> allowedValues)
      List of allowed values. This property is only applicable to Attribute Types of kind "Single Value List" or "Multi Value List"."
    • setStringType

      public void setStringType(StringType stringType)
      Whether the Attribute Type holds rich text or plain text. This property is only applicable to Attribute Types of kind "String".
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • canEqual

      protected boolean canEqual(Object other)
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object