@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class DefinitionDocument extends Object implements Serializable, Cloneable, StructuredPojo
A document that defines an entity.
| Constructor and Description |
|---|
DefinitionDocument() |
| Modifier and Type | Method and Description |
|---|---|
DefinitionDocument |
clone() |
boolean |
equals(Object obj) |
String |
getLanguage()
The language used to define the entity.
|
String |
getText()
The GraphQL text that defines the entity.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller. |
void |
setLanguage(String language)
The language used to define the entity.
|
void |
setText(String text)
The GraphQL text that defines the entity.
|
String |
toString()
Returns a string representation of this object.
|
DefinitionDocument |
withLanguage(DefinitionLanguage language)
The language used to define the entity.
|
DefinitionDocument |
withLanguage(String language)
The language used to define the entity.
|
DefinitionDocument |
withText(String text)
The GraphQL text that defines the entity.
|
public void setLanguage(String language)
The language used to define the entity. GRAPHQL is the only valid value.
language - The language used to define the entity. GRAPHQL is the only valid value.DefinitionLanguagepublic String getLanguage()
The language used to define the entity. GRAPHQL is the only valid value.
GRAPHQL is the only valid value.DefinitionLanguagepublic DefinitionDocument withLanguage(String language)
The language used to define the entity. GRAPHQL is the only valid value.
language - The language used to define the entity. GRAPHQL is the only valid value.DefinitionLanguagepublic DefinitionDocument withLanguage(DefinitionLanguage language)
The language used to define the entity. GRAPHQL is the only valid value.
language - The language used to define the entity. GRAPHQL is the only valid value.DefinitionLanguagepublic void setText(String text)
The GraphQL text that defines the entity.
text - The GraphQL text that defines the entity.public String getText()
The GraphQL text that defines the entity.
public DefinitionDocument withText(String text)
The GraphQL text that defines the entity.
text - The GraphQL text that defines the entity.public String toString()
toString in class ObjectObject.toString()public DefinitionDocument clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojoProtocolMarshaller.marshall in interface StructuredPojoprotocolMarshaller - Implementation of ProtocolMarshaller used to marshall this object's data.