public static class TableUpdateRequest.RenameTableColumnRequest 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 |
---|
RenameTableColumnRequest()
Default constructor for Jackson deserialization.
|
RenameTableColumnRequest(java.lang.String[] oldFieldName,
java.lang.String newFieldName)
Constructor for RenameTableColumnRequest.
|
Modifier and Type | Method and Description |
---|---|
TableChange |
tableChange()
The table change that is requested.
|
void |
validate()
Validates the request.
|
public RenameTableColumnRequest(java.lang.String[] oldFieldName, java.lang.String newFieldName)
oldFieldName
- the old field name to renamenewFieldName
- the new field namepublic RenameTableColumnRequest()
public void validate() throws java.lang.IllegalArgumentException
validate
in interface RESTMessage
java.lang.IllegalArgumentException
- If the request is invalid, this exception is thrown.public TableChange tableChange()
TableUpdateRequest
tableChange
in interface TableUpdateRequest