@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class ImportRestApiResult extends AmazonWebServiceResult<ResponseMetadata> implements Serializable, Cloneable
Represents a REST API.
Constructor and Description |
---|
ImportRestApiResult() |
Modifier and Type | Method and Description |
---|---|
ImportRestApiResult |
clone() |
boolean |
equals(Object obj) |
List<String> |
getBinaryMediaTypes()
The list of binary media types supported by the RestApi.
|
Date |
getCreatedDate()
The timestamp when the API was created.
|
String |
getDescription()
The API's description.
|
EndpointConfiguration |
getEndpointConfiguration()
The endpoint configuration of this RestApi showing the endpoint types of the API.
|
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 timestamp when the API was created.
|
void |
setDescription(String description)
The API's description.
|
void |
setEndpointConfiguration(EndpointConfiguration endpointConfiguration)
The endpoint configuration of this RestApi showing the endpoint types of the API.
|
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.
|
ImportRestApiResult |
withBinaryMediaTypes(Collection<String> binaryMediaTypes)
The list of binary media types supported by the RestApi.
|
ImportRestApiResult |
withBinaryMediaTypes(String... binaryMediaTypes)
The list of binary media types supported by the RestApi.
|
ImportRestApiResult |
withCreatedDate(Date createdDate)
The timestamp when the API was created.
|
ImportRestApiResult |
withDescription(String description)
The API's description.
|
ImportRestApiResult |
withEndpointConfiguration(EndpointConfiguration endpointConfiguration)
The endpoint configuration of this RestApi showing the endpoint types of the API.
|
ImportRestApiResult |
withId(String id)
The API's identifier.
|
ImportRestApiResult |
withName(String name)
The API's name.
|
ImportRestApiResult |
withVersion(String version)
A version identifier for the API.
|
ImportRestApiResult |
withWarnings(Collection<String> warnings)
The warning messages reported when
failonwarnings is turned on during API import. |
ImportRestApiResult |
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 ImportRestApiResult 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 ImportRestApiResult 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 ImportRestApiResult withDescription(String description)
The API's description.
description
- The API's description.public void setCreatedDate(Date createdDate)
The timestamp when the API was created.
createdDate
- The timestamp when the API was created.public Date getCreatedDate()
The timestamp when the API was created.
public ImportRestApiResult withCreatedDate(Date createdDate)
The timestamp when the API was created.
createdDate
- The timestamp when the API was created.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 ImportRestApiResult 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 ImportRestApiResult 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 ImportRestApiResult 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 ImportRestApiResult 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 ImportRestApiResult withBinaryMediaTypes(Collection<String> binaryMediaTypes)
public void setEndpointConfiguration(EndpointConfiguration endpointConfiguration)
The endpoint configuration of this RestApi showing the endpoint types of the API.
endpointConfiguration
- The endpoint configuration of this RestApi showing the endpoint types of the API.public EndpointConfiguration getEndpointConfiguration()
The endpoint configuration of this RestApi showing the endpoint types of the API.
public ImportRestApiResult withEndpointConfiguration(EndpointConfiguration endpointConfiguration)
The endpoint configuration of this RestApi showing the endpoint types of the API.
endpointConfiguration
- The endpoint configuration of this RestApi showing the endpoint types of the API.public String toString()
toString
in class Object
Object.toString()
public ImportRestApiResult clone()
Copyright © 2013 Amazon Web Services, Inc. All Rights Reserved.