public static class TableUpdateRequest.AddTableColumnRequest extends java.lang.Object implements TableUpdateRequest
TableUpdateRequest.AddTableColumnRequest, TableUpdateRequest.DeleteTableColumnRequest, TableUpdateRequest.RemoveTablePropertyRequest, TableUpdateRequest.RenameTableColumnRequest, TableUpdateRequest.RenameTableRequest, TableUpdateRequest.SetTablePropertyRequest, TableUpdateRequest.UpdateTableColumnCommentRequest, TableUpdateRequest.UpdateTableColumnNullabilityRequest, TableUpdateRequest.UpdateTableColumnPositionRequest, TableUpdateRequest.UpdateTableColumnTypeRequest, TableUpdateRequest.UpdateTableCommentRequest| Constructor and Description |
|---|
AddTableColumnRequest() |
AddTableColumnRequest(java.lang.String[] fieldName,
Type dataType,
java.lang.String comment)
Constructor for AddTableColumnRequest with default position and nullable value(true).
|
AddTableColumnRequest(java.lang.String[] fieldName,
Type dataType,
java.lang.String comment,
TableChange.ColumnPosition position)
Constructor for AddTableColumnRequest with default nullable value(true).
|
AddTableColumnRequest(java.lang.String[] fieldName,
Type dataType,
java.lang.String comment,
TableChange.ColumnPosition position,
boolean nullable)
Constructor for AddTableColumnRequest.
|
| Modifier and Type | Method and Description |
|---|---|
TableChange |
tableChange() |
void |
validate()
Ensures that a constructed instance of a REST message is valid according to the REST spec.
|
public AddTableColumnRequest()
public AddTableColumnRequest(java.lang.String[] fieldName,
Type dataType,
java.lang.String comment,
TableChange.ColumnPosition position,
boolean nullable)
fieldName - the field name to adddataType - the data type of the field to addcomment - the comment of the field to addposition - the position of the field to add, null for default positionnullable - whether the field to add is nullablepublic AddTableColumnRequest(java.lang.String[] fieldName,
Type dataType,
java.lang.String comment,
TableChange.ColumnPosition position)
fieldName - the field name to adddataType - the data type of the field to addcomment - the comment of the field to addposition - the position of the field to addpublic AddTableColumnRequest(java.lang.String[] fieldName,
Type dataType,
java.lang.String comment)
fieldName - the field name to adddataType - the data type of the field to addcomment - the comment of the field to addpublic void validate()
throws java.lang.IllegalArgumentException
RESTMessageThis is needed when parsing data that comes from external sources and the object might have been constructed without all the required fields present.
validate in interface RESTMessagejava.lang.IllegalArgumentExceptionpublic TableChange tableChange()
tableChange in interface TableUpdateRequest