public class ImportRestApiResult
extends java.lang.Object
implements java.io.Serializable, java.lang.Cloneable
Represents a REST API.
Modifier and Type | Field and Description |
---|---|
private java.util.Date |
createdDate
The date when the API was created, in ISO 8601 format.
|
private java.lang.String |
description
The API's description.
|
private java.lang.String |
id
The API's identifier.
|
private java.lang.String |
name
The API's name.
|
private java.util.List<java.lang.String> |
warnings |
Constructor and Description |
---|
ImportRestApiResult() |
Modifier and Type | Method and Description |
---|---|
ImportRestApiResult |
clone() |
boolean |
equals(java.lang.Object obj) |
java.util.Date |
getCreatedDate()
The date when the API was created, in ISO 8601 format.
|
java.lang.String |
getDescription()
The API's description.
|
java.lang.String |
getId()
The API's identifier.
|
java.lang.String |
getName()
The API's name.
|
java.util.List<java.lang.String> |
getWarnings() |
int |
hashCode() |
void |
setCreatedDate(java.util.Date createdDate)
The date when the API was created, in ISO 8601 format.
|
void |
setDescription(java.lang.String description)
The API's description.
|
void |
setId(java.lang.String id)
The API's identifier.
|
void |
setName(java.lang.String name)
The API's name.
|
void |
setWarnings(java.util.Collection<java.lang.String> warnings) |
java.lang.String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
ImportRestApiResult |
withCreatedDate(java.util.Date createdDate)
The date when the API was created, in ISO 8601 format.
|
ImportRestApiResult |
withDescription(java.lang.String description)
The API's description.
|
ImportRestApiResult |
withId(java.lang.String id)
The API's identifier.
|
ImportRestApiResult |
withName(java.lang.String name)
The API's name.
|
ImportRestApiResult |
withWarnings(java.util.Collection<java.lang.String> warnings) |
ImportRestApiResult |
withWarnings(java.lang.String... warnings)
NOTE: This method appends the values to the existing list (if
any).
|
private java.lang.String id
The API's identifier. This identifier is unique across all of your APIs in Amazon API Gateway.
private java.lang.String name
The API's name.
private java.lang.String description
The API's description.
private java.util.Date createdDate
The date when the API was created, in ISO 8601 format.
private java.util.List<java.lang.String> warnings
public void setId(java.lang.String id)
The API's identifier. This identifier is unique across all of your APIs in Amazon API Gateway.
id
- The API's identifier. This identifier is unique across all of your
APIs in Amazon API Gateway.public java.lang.String getId()
The API's identifier. This identifier is unique across all of your APIs in Amazon API Gateway.
public ImportRestApiResult withId(java.lang.String id)
The API's identifier. This identifier is unique across all of your APIs in Amazon API Gateway.
id
- The API's identifier. This identifier is unique across all of your
APIs in Amazon API Gateway.public void setName(java.lang.String name)
The API's name.
name
- The API's name.public java.lang.String getName()
The API's name.
public ImportRestApiResult withName(java.lang.String name)
The API's name.
name
- The API's name.public void setDescription(java.lang.String description)
The API's description.
description
- The API's description.public java.lang.String getDescription()
The API's description.
public ImportRestApiResult withDescription(java.lang.String description)
The API's description.
description
- The API's description.public void setCreatedDate(java.util.Date createdDate)
The date when the API was created, in ISO 8601 format.
createdDate
- The date when the API was created, in ISO 8601 format.public java.util.Date getCreatedDate()
The date when the API was created, in ISO 8601 format.
public ImportRestApiResult withCreatedDate(java.util.Date createdDate)
The date when the API was created, in ISO 8601 format.
createdDate
- The date when the API was created, in ISO 8601 format.public java.util.List<java.lang.String> getWarnings()
public void setWarnings(java.util.Collection<java.lang.String> warnings)
warnings
- public ImportRestApiResult withWarnings(java.lang.String... warnings)
NOTE: This method appends the values to the existing list (if
any). Use setWarnings(java.util.Collection)
or
withWarnings(java.util.Collection)
if you want to override the
existing values.
warnings
- public ImportRestApiResult withWarnings(java.util.Collection<java.lang.String> warnings)
warnings
- 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 ImportRestApiResult clone()
clone
in class java.lang.Object