public static class TableUpdateRequest.UpdateTableColumnNullabilityRequest 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 |
---|
UpdateTableColumnNullabilityRequest()
Default constructor for Jackson deserialization.
|
UpdateTableColumnNullabilityRequest(java.lang.String[] fieldName,
boolean nullable)
Constructor for UpdateTableColumnNullabilityRequest.
|
Modifier and Type | Method and Description |
---|---|
TableChange |
tableChange()
Validates the request.
|
void |
validate()
Validates the request.
|
public UpdateTableColumnNullabilityRequest(java.lang.String[] fieldName, boolean nullable)
fieldName
- the field name to updatenullable
- the new nullability of the fieldpublic UpdateTableColumnNullabilityRequest()
public TableChange tableChange()
tableChange
in interface TableUpdateRequest
public void validate() throws java.lang.IllegalArgumentException
validate
in interface RESTMessage
java.lang.IllegalArgumentException
- If the request is invalid, this exception is thrown.