Class GetModelResult
- java.lang.Object
-
- com.amazonaws.services.apigateway.model.GetModelResult
-
- All Implemented Interfaces:
Serializable,Cloneable
public class GetModelResult extends Object implements Serializable, Cloneable
Represents the structure of a request or response payload for a method.
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description GetModelResult()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description GetModelResultclone()booleanequals(Object obj)StringgetContentType()The content-type for the model.StringgetDescription()The description of the model.StringgetId()The identifier for the model resource.StringgetName()The name of the model.StringgetSchema()The schema for the model.inthashCode()voidsetContentType(String contentType)The content-type for the model.voidsetDescription(String description)The description of the model.voidsetId(String id)The identifier for the model resource.voidsetName(String name)The name of the model.voidsetSchema(String schema)The schema for the model.StringtoString()Returns a string representation of this object; useful for testing and debugging.GetModelResultwithContentType(String contentType)The content-type for the model.GetModelResultwithDescription(String description)The description of the model.GetModelResultwithId(String id)The identifier for the model resource.GetModelResultwithName(String name)The name of the model.GetModelResultwithSchema(String schema)The schema for the model.
-
-
-
Method Detail
-
setId
public void setId(String id)
The identifier for the model resource.
- Parameters:
id- The identifier for the model resource.
-
getId
public String getId()
The identifier for the model resource.
- Returns:
- The identifier for the model resource.
-
withId
public GetModelResult withId(String id)
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
public void setName(String name)
The name of the model.
- Parameters:
name- The name of the model.
-
getName
public String getName()
The name of the model.
- Returns:
- The name of the model.
-
withName
public GetModelResult withName(String name)
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
public void setDescription(String description)
The description of the model.
- Parameters:
description- The description of the model.
-
getDescription
public String getDescription()
The description of the model.
- Returns:
- The description of the model.
-
withDescription
public GetModelResult withDescription(String description)
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
public void setSchema(String schema)
The schema for the model. For
application/jsonmodels, this should be JSON-schema draft v4 model.- Parameters:
schema- The schema for the model. Forapplication/jsonmodels, this should be JSON-schema draft v4 model.
-
getSchema
public String getSchema()
The schema for the model. For
application/jsonmodels, this should be JSON-schema draft v4 model.- Returns:
- The schema for the model. For
application/jsonmodels, this should be JSON-schema draft v4 model.
-
withSchema
public GetModelResult withSchema(String schema)
The schema for the model. For
application/jsonmodels, this should be JSON-schema draft v4 model.- Parameters:
schema- The schema for the model. Forapplication/jsonmodels, this should be JSON-schema draft v4 model.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setContentType
public void setContentType(String contentType)
The content-type for the model.
- Parameters:
contentType- The content-type for the model.
-
getContentType
public String getContentType()
The content-type for the model.
- Returns:
- The content-type for the model.
-
withContentType
public GetModelResult withContentType(String contentType)
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
public String toString()
Returns a string representation of this object; useful for testing and debugging.- Overrides:
toStringin classObject- Returns:
- A string representation of this object.
- See Also:
Object.toString()
-
clone
public GetModelResult clone()
-
-