Class GetModelResult
- All Implemented Interfaces:
Serializable
,Cloneable
Represents the structure of a request or response payload for a method.
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionclone()
boolean
The content-type for the model.The description of the model.getId()
The identifier for the model resource.getName()
The name of the model.The schema for the model.int
hashCode()
void
setContentType
(String contentType) The content-type for the model.void
setDescription
(String description) The description of the model.void
The identifier for the model resource.void
The name of the model.void
The schema for the model.toString()
Returns a string representation of this object; useful for testing and debugging.withContentType
(String contentType) The content-type for the model.withDescription
(String description) The description of the model.The identifier for the model resource.The name of the model.withSchema
(String schema) The schema for the model.
-
Constructor Details
-
GetModelResult
public GetModelResult()
-
-
Method Details
-
setId
The identifier for the model resource.
- Parameters:
id
- The identifier for the model resource.
-
getId
The identifier for the model resource.
- Returns:
- The identifier for the model resource.
-
withId
The identifier for the model resource.
- Parameters:
id
- The identifier for the model resource.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setName
The name of the model.
- Parameters:
name
- The name of the model.
-
getName
The name of the model.
- Returns:
- The name of the model.
-
withName
The name of the model.
- Parameters:
name
- The name of the model.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setDescription
The description of the model.
- Parameters:
description
- The description of the model.
-
getDescription
The description of the model.
- Returns:
- The description of the model.
-
withDescription
The description of the model.
- Parameters:
description
- The description of the model.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setSchema
The schema for the model. For
application/json
models, this should be JSON-schema draft v4 model.- Parameters:
schema
- The schema for the model. Forapplication/json
models, this should be JSON-schema draft v4 model.
-
getSchema
The schema for the model. For
application/json
models, this should be JSON-schema draft v4 model.- Returns:
- The schema for the model. For
application/json
models, this should be JSON-schema draft v4 model.
-
withSchema
The schema for the model. For
application/json
models, this should be JSON-schema draft v4 model.- Parameters:
schema
- The schema for the model. Forapplication/json
models, this should be JSON-schema draft v4 model.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setContentType
The content-type for the model.
- Parameters:
contentType
- The content-type for the model.
-
getContentType
The content-type for the model.
- Returns:
- The content-type for the model.
-
withContentType
The content-type for the model.
- Parameters:
contentType
- The content-type for the model.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
toString
Returns a string representation of this object; useful for testing and debugging. -
equals
-
hashCode
public int hashCode() -
clone
-