public class Body extends java.lang.Object implements JsonSerializable, StringTruncatable<Body>
| Modifier and Type | Class and Description |
|---|---|
static class |
Body.Builder
Builder class for
body. |
| Modifier and Type | Method and Description |
|---|---|
java.lang.Object |
asJson()
Returns the object that should be an equivalent representation of itself in json.
|
boolean |
equals(java.lang.Object o) |
BodyContent |
getContents()
Getter.
|
int |
hashCode() |
java.lang.String |
toString() |
Body |
truncateStrings(int maxSize) |
public BodyContent getContents()
public java.lang.Object asJson()
JsonSerializableasJson in interface JsonSerializablepublic Body truncateStrings(int maxSize)
truncateStrings in interface StringTruncatable<Body>public boolean equals(java.lang.Object o)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Objectpublic java.lang.String toString()
toString in class java.lang.Object