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