public class CreateRestApiResult extends AmazonWebServiceResult<ResponseMetadata> implements Serializable, Cloneable
Represents a REST API.
Constructor and Description |
---|
CreateRestApiResult() |
Modifier and Type | Method and Description |
---|---|
CreateRestApiResult |
clone() |
boolean |
equals(Object obj) |
List<String> |
getBinaryMediaTypes()
The list of binary media types supported by the RestApi.
|
Date |
getCreatedDate()
The date when the API was created, in ISO 8601 format.
|
String |
getDescription()
The API's description.
|
String |
getId()
The API's identifier.
|
String |
getName()
The API's name.
|
String |
getVersion()
A version identifier for the API.
|
List<String> |
getWarnings()
The warning messages reported when
failonwarnings is turned on during API import. |
int |
hashCode() |
void |
setBinaryMediaTypes(Collection<String> binaryMediaTypes)
The list of binary media types supported by the RestApi.
|
void |
setCreatedDate(Date createdDate)
The date when the API was created, in ISO 8601 format.
|
void |
setDescription(String description)
The API's description.
|
void |
setId(String id)
The API's identifier.
|
void |
setName(String name)
The API's name.
|
void |
setVersion(String version)
A version identifier for the API.
|
void |
setWarnings(Collection<String> warnings)
The warning messages reported when
failonwarnings is turned on during API import. |
String |
toString()
Returns a string representation of this object; useful for testing and debugging.
|
CreateRestApiResult |
withBinaryMediaTypes(Collection<String> binaryMediaTypes)
The list of binary media types supported by the RestApi.
|
CreateRestApiResult |
withBinaryMediaTypes(String... binaryMediaTypes)
The list of binary media types supported by the RestApi.
|
CreateRestApiResult |
withCreatedDate(Date createdDate)
The date when the API was created, in ISO 8601 format.
|
CreateRestApiResult |
withDescription(String description)
The API's description.
|
CreateRestApiResult |
withId(String id)
The API's identifier.
|
CreateRestApiResult |
withName(String name)
The API's name.
|
CreateRestApiResult |
withVersion(String version)
A version identifier for the API.
|
CreateRestApiResult |
withWarnings(Collection<String> warnings)
The warning messages reported when
failonwarnings is turned on during API import. |
CreateRestApiResult |
withWarnings(String... warnings)
The warning messages reported when
failonwarnings is turned on during API import. |
getSdkHttpMetadata, getSdkResponseMetadata, setSdkHttpMetadata, setSdkResponseMetadata
public void setId(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 String getId()
The API's identifier. This identifier is unique across all of your APIs in Amazon API Gateway.
public CreateRestApiResult withId(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(String name)
The API's name.
name
- The API's name.public String getName()
The API's name.
public CreateRestApiResult withName(String name)
The API's name.
name
- The API's name.public void setDescription(String description)
The API's description.
description
- The API's description.public String getDescription()
The API's description.
public CreateRestApiResult withDescription(String description)
The API's description.
description
- The API's description.public void setCreatedDate(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 Date getCreatedDate()
The date when the API was created, in ISO 8601 format.
public CreateRestApiResult withCreatedDate(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 void setVersion(String version)
A version identifier for the API.
version
- A version identifier for the API.public String getVersion()
A version identifier for the API.
public CreateRestApiResult withVersion(String version)
A version identifier for the API.
version
- A version identifier for the API.public List<String> getWarnings()
The warning messages reported when failonwarnings
is turned on during API import.
failonwarnings
is turned on during API import.public void setWarnings(Collection<String> warnings)
The warning messages reported when failonwarnings
is turned on during API import.
warnings
- The warning messages reported when failonwarnings
is turned on during API import.public CreateRestApiResult withWarnings(String... warnings)
The warning messages reported when failonwarnings
is turned on during API import.
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
- The warning messages reported when failonwarnings
is turned on during API import.public CreateRestApiResult withWarnings(Collection<String> warnings)
The warning messages reported when failonwarnings
is turned on during API import.
warnings
- The warning messages reported when failonwarnings
is turned on during API import.public void setBinaryMediaTypes(Collection<String> binaryMediaTypes)
public CreateRestApiResult withBinaryMediaTypes(String... binaryMediaTypes)
The list of binary media types supported by the RestApi. By default, the RestApi supports only UTF-8-encoded text payloads.
NOTE: This method appends the values to the existing list (if any). Use
setBinaryMediaTypes(java.util.Collection)
or withBinaryMediaTypes(java.util.Collection)
if you
want to override the existing values.
public CreateRestApiResult withBinaryMediaTypes(Collection<String> binaryMediaTypes)
public String toString()
toString
in class Object
Object.toString()
public CreateRestApiResult clone()
Copyright © 2013 Amazon Web Services, Inc. All Rights Reserved.