@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.DefinitionLanguage
public String getLanguage()
The language used to define the entity. GRAPHQL
is the only valid value.
GRAPHQL
is the only valid value.DefinitionLanguage
public 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.DefinitionLanguage
public 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.DefinitionLanguage
public 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 Object
Object.toString()
public DefinitionDocument clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.Copyright © 2013 Amazon Web Services, Inc. All Rights Reserved.