public class Field
extends java.lang.Object
implements java.io.Serializable
Describes the name and data type at a field.
Constructor and Description |
---|
Field() |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object obj) |
java.lang.String |
getName()
The name of the field.
|
java.lang.String |
getType()
The datatype of the field.
|
int |
hashCode() |
void |
setName(java.lang.String name)
The name of the field.
|
void |
setType(FieldType type)
The datatype of the field.
|
void |
setType(java.lang.String type)
The datatype of the field.
|
java.lang.String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
Field |
withName(java.lang.String name)
The name of the field.
|
Field |
withType(FieldType type)
The datatype of the field.
|
Field |
withType(java.lang.String type)
The datatype of the field.
|
public java.lang.String getName()
The name of the field.
The name of the field.
public void setName(java.lang.String name)
The name of the field.
name
- The name of the field.
public Field withName(java.lang.String name)
The name of the field.
Returns a reference to this object so that method calls can be chained together.
name
- The name of the field.
public java.lang.String getType()
The datatype of the field.
Constraints:
Allowed Values: Number, String, Boolean
The datatype of the field.
FieldType
public void setType(java.lang.String type)
The datatype of the field.
Constraints:
Allowed Values: Number, String, Boolean
type
- The datatype of the field.
FieldType
public Field withType(java.lang.String type)
The datatype of the field.
Returns a reference to this object so that method calls can be chained together.
Constraints:
Allowed Values: Number, String, Boolean
type
- The datatype of the field.
FieldType
public void setType(FieldType type)
The datatype of the field.
Constraints:
Allowed Values: Number, String, Boolean
type
- The datatype of the field.
FieldType
public Field withType(FieldType type)
The datatype of the field.
Returns a reference to this object so that method calls can be chained together.
Constraints:
Allowed Values: Number, String, Boolean
type
- The datatype of the field.
FieldType
public java.lang.String toString()
toString
in class java.lang.Object
Object.toString()
public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
Copyright © 2018 Amazon Web Services, Inc. All Rights Reserved.