public class CreateModelResult
extends java.lang.Object
implements java.io.Serializable, java.lang.Cloneable
Represents the structure of a request or response payload for a method.
Modifier and Type | Field and Description |
---|---|
private java.lang.String |
contentType
The content-type for the model.
|
private java.lang.String |
description
The description of the model.
|
private java.lang.String |
id
The identifier for the model resource.
|
private java.lang.String |
name
The name of the model.
|
private java.lang.String |
schema
The schema for the model.
|
Constructor and Description |
---|
CreateModelResult() |
Modifier and Type | Method and Description |
---|---|
CreateModelResult |
clone() |
boolean |
equals(java.lang.Object obj) |
java.lang.String |
getContentType()
The content-type for the model.
|
java.lang.String |
getDescription()
The description of the model.
|
java.lang.String |
getId()
The identifier for the model resource.
|
java.lang.String |
getName()
The name of the model.
|
java.lang.String |
getSchema()
The schema for the model.
|
int |
hashCode() |
void |
setContentType(java.lang.String contentType)
The content-type for the model.
|
void |
setDescription(java.lang.String description)
The description of the model.
|
void |
setId(java.lang.String id)
The identifier for the model resource.
|
void |
setName(java.lang.String name)
The name of the model.
|
void |
setSchema(java.lang.String schema)
The schema for the model.
|
java.lang.String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
CreateModelResult |
withContentType(java.lang.String contentType)
The content-type for the model.
|
CreateModelResult |
withDescription(java.lang.String description)
The description of the model.
|
CreateModelResult |
withId(java.lang.String id)
The identifier for the model resource.
|
CreateModelResult |
withName(java.lang.String name)
The name of the model.
|
CreateModelResult |
withSchema(java.lang.String schema)
The schema for the model.
|
private java.lang.String id
The identifier for the model resource.
private java.lang.String name
The name of the model.
private java.lang.String description
The description of the model.
private java.lang.String schema
The schema for the model. For application/json
models, this
should be JSON-schema draft v4 model.
private java.lang.String contentType
The content-type for the model.
public void setId(java.lang.String id)
The identifier for the model resource.
id
- The identifier for the model resource.public java.lang.String getId()
The identifier for the model resource.
public CreateModelResult withId(java.lang.String id)
The identifier for the model resource.
id
- The identifier for the model resource.public void setName(java.lang.String name)
The name of the model.
name
- The name of the model.public java.lang.String getName()
The name of the model.
public CreateModelResult withName(java.lang.String name)
The name of the model.
name
- The name of the model.public void setDescription(java.lang.String description)
The description of the model.
description
- The description of the model.public java.lang.String getDescription()
The description of the model.
public CreateModelResult withDescription(java.lang.String description)
The description of the model.
description
- The description of the model.public void setSchema(java.lang.String schema)
The schema for the model. For application/json
models, this
should be JSON-schema draft v4 model.
schema
- The schema for the model. For application/json
models, this should be JSON-schema draft v4 model.public java.lang.String getSchema()
The schema for the model. For application/json
models, this
should be JSON-schema draft v4 model.
application/json
models, this should be JSON-schema draft v4 model.public CreateModelResult withSchema(java.lang.String schema)
The schema for the model. For application/json
models, this
should be JSON-schema draft v4 model.
schema
- The schema for the model. For application/json
models, this should be JSON-schema draft v4 model.public void setContentType(java.lang.String contentType)
The content-type for the model.
contentType
- The content-type for the model.public java.lang.String getContentType()
The content-type for the model.
public CreateModelResult withContentType(java.lang.String contentType)
The content-type for the model.
contentType
- The content-type for the model.public java.lang.String toString()
toString
in class java.lang.Object
Object.toString()
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public CreateModelResult clone()
clone
in class java.lang.Object