@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class Substring extends Object implements Serializable, Cloneable, StructuredPojo
A reference to a substring of a literal string in a JSON document.
Constructor and Description |
---|
Substring() |
Modifier and Type | Method and Description |
---|---|
Substring |
clone() |
boolean |
equals(Object obj) |
Integer |
getLength()
The length of the substring.
|
Integer |
getStart()
The start index of the substring, starting from 0.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setLength(Integer length)
The length of the substring.
|
void |
setStart(Integer start)
The start index of the substring, starting from 0.
|
String |
toString()
Returns a string representation of this object.
|
Substring |
withLength(Integer length)
The length of the substring.
|
Substring |
withStart(Integer start)
The start index of the substring, starting from 0.
|
public void setStart(Integer start)
The start index of the substring, starting from 0.
start
- The start index of the substring, starting from 0.public Integer getStart()
The start index of the substring, starting from 0.
public Substring withStart(Integer start)
The start index of the substring, starting from 0.
start
- The start index of the substring, starting from 0.public void setLength(Integer length)
The length of the substring.
length
- The length of the substring.public Integer getLength()
The length of the substring.
public Substring withLength(Integer length)
The length of the substring.
length
- The length of the substring.public String toString()
toString
in class Object
Object.toString()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.