Package io.stargate.sdk.rest.domain
Class CreateType
java.lang.Object
io.stargate.sdk.rest.domain.CreateType
- All Implemented Interfaces:
Serializable
Represent an creation request for an UDT.
- Author:
- Cedrick LUNVEN (@clunven)
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionDefault ConstructorCreateType(String name, boolean ifNotExist) Create and populate. -
Method Summary
Modifier and TypeMethodDescriptionGetter accessor for attribute 'fields'.getName()Getter accessor for attribute 'name'.booleanGetter accessor for attribute 'ifNotExists'.voidsetFields(List<TypeFieldDefinition> fields) Setter accessor for attribute 'fields'.voidsetIfNotExists(boolean ifNotExists) Setter accessor for attribute 'ifNotExists'.voidSetter accessor for attribute 'name'.
-
Constructor Details
-
CreateType
public CreateType()Default Constructor -
CreateType
Create and populate.- Parameters:
name- type nameifNotExist- use if not exist at cql
-
-
Method Details
-
getName
Getter accessor for attribute 'name'.- Returns:
- current value of 'name'
-
setName
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
Getter accessor for attribute 'fields'.- Returns:
- current value of 'fields'
-
setFields
Setter accessor for attribute 'fields'.- Parameters:
fields- new value for 'fields '
-