Class CreateRestApiResult
- java.lang.Object
-
- com.amazonaws.services.apigateway.model.CreateRestApiResult
-
- All Implemented Interfaces:
Serializable,Cloneable
public class CreateRestApiResult extends Object implements Serializable, Cloneable
Represents a REST API.
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description CreateRestApiResult()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description CreateRestApiResultclone()booleanequals(Object obj)DategetCreatedDate()The date when the API was created, in ISO 8601 format.StringgetDescription()The API's description.StringgetId()The API's identifier.StringgetName()The API's name.List<String>getWarnings()inthashCode()voidsetCreatedDate(Date createdDate)The date when the API was created, in ISO 8601 format.voidsetDescription(String description)The API's description.voidsetId(String id)The API's identifier.voidsetName(String name)The API's name.voidsetWarnings(Collection<String> warnings)StringtoString()Returns a string representation of this object; useful for testing and debugging.CreateRestApiResultwithCreatedDate(Date createdDate)The date when the API was created, in ISO 8601 format.CreateRestApiResultwithDescription(String description)The API's description.CreateRestApiResultwithId(String id)The API's identifier.CreateRestApiResultwithName(String name)The API's name.CreateRestApiResultwithWarnings(String... warnings)NOTE: This method appends the values to the existing list (if any).CreateRestApiResultwithWarnings(Collection<String> warnings)
-
-
-
Method Detail
-
setId
public void setId(String id)
The API's identifier. This identifier is unique across all of your APIs in Amazon API Gateway.
- Parameters:
id- The API's identifier. This identifier is unique across all of your APIs in Amazon API Gateway.
-
getId
public String getId()
The API's identifier. This identifier is unique across all of your APIs in Amazon API Gateway.
- Returns:
- The API's identifier. This identifier is unique across all of your APIs in Amazon API Gateway.
-
withId
public CreateRestApiResult withId(String id)
The API's identifier. This identifier is unique across all of your APIs in Amazon API Gateway.
- Parameters:
id- The API's identifier. This identifier is unique across all of your APIs in Amazon API Gateway.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setName
public void setName(String name)
The API's name.
- Parameters:
name- The API's name.
-
getName
public String getName()
The API's name.
- Returns:
- The API's name.
-
withName
public CreateRestApiResult withName(String name)
The API's name.
- Parameters:
name- The API's name.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setDescription
public void setDescription(String description)
The API's description.
- Parameters:
description- The API's description.
-
getDescription
public String getDescription()
The API's description.
- Returns:
- The API's description.
-
withDescription
public CreateRestApiResult withDescription(String description)
The API's description.
- Parameters:
description- The API's description.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setCreatedDate
public void setCreatedDate(Date createdDate)
The date when the API was created, in ISO 8601 format.
- Parameters:
createdDate- The date when the API was created, in ISO 8601 format.
-
getCreatedDate
public Date getCreatedDate()
The date when the API was created, in ISO 8601 format.
- Returns:
- The date when the API was created, in ISO 8601 format.
-
withCreatedDate
public CreateRestApiResult withCreatedDate(Date createdDate)
The date when the API was created, in ISO 8601 format.
- Parameters:
createdDate- The date when the API was created, in ISO 8601 format.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setWarnings
public void setWarnings(Collection<String> warnings)
- Parameters:
warnings-
-
withWarnings
public CreateRestApiResult withWarnings(String... warnings)
NOTE: This method appends the values to the existing list (if any). Use
setWarnings(java.util.Collection)orwithWarnings(java.util.Collection)if you want to override the existing values.- Parameters:
warnings-- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
withWarnings
public CreateRestApiResult withWarnings(Collection<String> warnings)
- Parameters:
warnings-- 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 CreateRestApiResult clone()
-
-