Class CreateType

java.lang.Object
io.stargate.sdk.rest.domain.CreateType
All Implemented Interfaces:
Serializable

public class CreateType extends Object implements Serializable
Represent an creation request for an UDT.
Author:
Cedrick LUNVEN (@clunven)
See Also:
  • Constructor Details

    • CreateType

      public CreateType()
      Default Constructor
    • CreateType

      public CreateType(String name, boolean ifNotExist)
      Create and populate.
      Parameters:
      name - type name
      ifNotExist - use if not exist at cql
  • Method Details

    • getName

      public String getName()
      Getter accessor for attribute 'name'.
      Returns:
      current value of 'name'
    • setName

      public void setName(String name)
      Setter accessor for attribute 'name'.
      Parameters:
      name - new value for 'name '
    • isIfNotExists

      public boolean isIfNotExists()
      Getter accessor for attribute 'ifNotExists'.
      Returns:
      current value of 'ifNotExists'
    • setIfNotExists

      public void setIfNotExists(boolean ifNotExists)
      Setter accessor for attribute 'ifNotExists'.
      Parameters:
      ifNotExists - new value for 'ifNotExists '
    • getFields

      public List<TypeFieldDefinition> getFields()
      Getter accessor for attribute 'fields'.
      Returns:
      current value of 'fields'
    • setFields

      public void setFields(List<TypeFieldDefinition> fields)
      Setter accessor for attribute 'fields'.
      Parameters:
      fields - new value for 'fields '