@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class CreateRestApiRequest extends AmazonWebServiceRequest implements Serializable, Cloneable
The POST Request to add a new RestApi resource to your collection.
NOOP| Constructor and Description |
|---|
CreateRestApiRequest() |
| Modifier and Type | Method and Description |
|---|---|
CreateRestApiRequest |
clone() |
boolean |
equals(Object obj) |
String |
getApiKeySource()
The source of the API key for metring requests according to a usage plan.
|
List<String> |
getBinaryMediaTypes()
The list of binary media types supported by the RestApi.
|
String |
getCloneFrom()
The ID of the RestApi that you want to clone from.
|
String |
getDescription()
The description of the RestApi.
|
EndpointConfiguration |
getEndpointConfiguration()
The endpoint configuration of this RestApi showing the endpoint types of the API.
|
Integer |
getMinimumCompressionSize()
A nullable integer used to enable (non-negative between 0 and 10485760 (10M) bytes, inclusive) or disable (null)
compression on an API.
|
String |
getName()
The name of the RestApi.
|
String |
getVersion()
A version identifier for the API.
|
int |
hashCode() |
void |
setApiKeySource(String apiKeySource)
The source of the API key for metring requests according to a usage plan.
|
void |
setBinaryMediaTypes(Collection<String> binaryMediaTypes)
The list of binary media types supported by the RestApi.
|
void |
setCloneFrom(String cloneFrom)
The ID of the RestApi that you want to clone from.
|
void |
setDescription(String description)
The description of the RestApi.
|
void |
setEndpointConfiguration(EndpointConfiguration endpointConfiguration)
The endpoint configuration of this RestApi showing the endpoint types of the API.
|
void |
setMinimumCompressionSize(Integer minimumCompressionSize)
A nullable integer used to enable (non-negative between 0 and 10485760 (10M) bytes, inclusive) or disable (null)
compression on an API.
|
void |
setName(String name)
The name of the RestApi.
|
void |
setVersion(String version)
A version identifier for the API.
|
String |
toString()
Returns a string representation of this object; useful for testing and debugging.
|
CreateRestApiRequest |
withApiKeySource(ApiKeySourceType apiKeySource)
The source of the API key for metring requests according to a usage plan.
|
CreateRestApiRequest |
withApiKeySource(String apiKeySource)
The source of the API key for metring requests according to a usage plan.
|
CreateRestApiRequest |
withBinaryMediaTypes(Collection<String> binaryMediaTypes)
The list of binary media types supported by the RestApi.
|
CreateRestApiRequest |
withBinaryMediaTypes(String... binaryMediaTypes)
The list of binary media types supported by the RestApi.
|
CreateRestApiRequest |
withCloneFrom(String cloneFrom)
The ID of the RestApi that you want to clone from.
|
CreateRestApiRequest |
withDescription(String description)
The description of the RestApi.
|
CreateRestApiRequest |
withEndpointConfiguration(EndpointConfiguration endpointConfiguration)
The endpoint configuration of this RestApi showing the endpoint types of the API.
|
CreateRestApiRequest |
withMinimumCompressionSize(Integer minimumCompressionSize)
A nullable integer used to enable (non-negative between 0 and 10485760 (10M) bytes, inclusive) or disable (null)
compression on an API.
|
CreateRestApiRequest |
withName(String name)
The name of the RestApi.
|
CreateRestApiRequest |
withVersion(String version)
A version identifier for the API.
|
addHandlerContext, copyBaseTo, getCloneRoot, getCloneSource, getCustomQueryParameters, getCustomRequestHeaders, getGeneralProgressListener, getHandlerContext, getReadLimit, getRequestClientOptions, getRequestCredentials, getRequestCredentialsProvider, getRequestMetricCollector, getSdkClientExecutionTimeout, getSdkRequestTimeout, putCustomQueryParameter, putCustomRequestHeader, setGeneralProgressListener, setRequestCredentials, setRequestCredentialsProvider, setRequestMetricCollector, setSdkClientExecutionTimeout, setSdkRequestTimeout, withGeneralProgressListener, withRequestCredentialsProvider, withRequestMetricCollector, withSdkClientExecutionTimeout, withSdkRequestTimeoutpublic void setName(String name)
The name of the RestApi.
name - The name of the RestApi.public CreateRestApiRequest withName(String name)
The name of the RestApi.
name - The name of the RestApi.public void setDescription(String description)
The description of the RestApi.
description - The description of the RestApi.public String getDescription()
The description of the RestApi.
public CreateRestApiRequest withDescription(String description)
The description of the RestApi.
description - The description of the RestApi.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 CreateRestApiRequest withVersion(String version)
A version identifier for the API.
version - A version identifier for the API.public void setCloneFrom(String cloneFrom)
The ID of the RestApi that you want to clone from.
cloneFrom - The ID of the RestApi that you want to clone from.public String getCloneFrom()
The ID of the RestApi that you want to clone from.
public CreateRestApiRequest withCloneFrom(String cloneFrom)
The ID of the RestApi that you want to clone from.
cloneFrom - The ID of the RestApi that you want to clone from.public void setBinaryMediaTypes(Collection<String> binaryMediaTypes)
public CreateRestApiRequest 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 CreateRestApiRequest withBinaryMediaTypes(Collection<String> binaryMediaTypes)
public void setMinimumCompressionSize(Integer minimumCompressionSize)
A nullable integer used to enable (non-negative between 0 and 10485760 (10M) bytes, inclusive) or disable (null) compression on an API. When compression is enabled, compression or decompression are not applied on the payload if the payload size is smaller than this value. Setting it to zero allows compression for any payload size.
minimumCompressionSize - A nullable integer used to enable (non-negative between 0 and 10485760 (10M) bytes, inclusive) or disable
(null) compression on an API. When compression is enabled, compression or decompression are not applied on
the payload if the payload size is smaller than this value. Setting it to zero allows compression for any
payload size.public Integer getMinimumCompressionSize()
A nullable integer used to enable (non-negative between 0 and 10485760 (10M) bytes, inclusive) or disable (null) compression on an API. When compression is enabled, compression or decompression are not applied on the payload if the payload size is smaller than this value. Setting it to zero allows compression for any payload size.
public CreateRestApiRequest withMinimumCompressionSize(Integer minimumCompressionSize)
A nullable integer used to enable (non-negative between 0 and 10485760 (10M) bytes, inclusive) or disable (null) compression on an API. When compression is enabled, compression or decompression are not applied on the payload if the payload size is smaller than this value. Setting it to zero allows compression for any payload size.
minimumCompressionSize - A nullable integer used to enable (non-negative between 0 and 10485760 (10M) bytes, inclusive) or disable
(null) compression on an API. When compression is enabled, compression or decompression are not applied on
the payload if the payload size is smaller than this value. Setting it to zero allows compression for any
payload size.public void setApiKeySource(String apiKeySource)
The source of the API key for metring requests according to a usage plan. Valid values are
HEADER to read the API key from the X-API-Key header of a request.AUTHORIZER to read the API key from the UsageIdentifierKey from a custom
authorizer.apiKeySource - The source of the API key for metring requests according to a usage plan. Valid values are
HEADER to read the API key from the X-API-Key header of a request.AUTHORIZER to read the API key from the UsageIdentifierKey from a custom
authorizer.ApiKeySourceTypepublic String getApiKeySource()
The source of the API key for metring requests according to a usage plan. Valid values are
HEADER to read the API key from the X-API-Key header of a request.AUTHORIZER to read the API key from the UsageIdentifierKey from a custom
authorizer.HEADER to read the API key from the X-API-Key header of a request.AUTHORIZER to read the API key from the UsageIdentifierKey from a custom
authorizer.ApiKeySourceTypepublic CreateRestApiRequest withApiKeySource(String apiKeySource)
The source of the API key for metring requests according to a usage plan. Valid values are
HEADER to read the API key from the X-API-Key header of a request.AUTHORIZER to read the API key from the UsageIdentifierKey from a custom
authorizer.apiKeySource - The source of the API key for metring requests according to a usage plan. Valid values are
HEADER to read the API key from the X-API-Key header of a request.AUTHORIZER to read the API key from the UsageIdentifierKey from a custom
authorizer.ApiKeySourceTypepublic CreateRestApiRequest withApiKeySource(ApiKeySourceType apiKeySource)
The source of the API key for metring requests according to a usage plan. Valid values are
HEADER to read the API key from the X-API-Key header of a request.AUTHORIZER to read the API key from the UsageIdentifierKey from a custom
authorizer.apiKeySource - The source of the API key for metring requests according to a usage plan. Valid values are
HEADER to read the API key from the X-API-Key header of a request.AUTHORIZER to read the API key from the UsageIdentifierKey from a custom
authorizer.ApiKeySourceTypepublic 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 CreateRestApiRequest 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 ObjectObject.toString()public CreateRestApiRequest clone()
clone in class AmazonWebServiceRequestCopyright © 2018. All rights reserved.