@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()
Creates a shallow clone of this object for all fields except the handler context.
|
boolean |
equals(Object obj) |
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.
|
String |
getName()
The name of the RestApi.
|
String |
getVersion()
A version identifier for the API.
|
int |
hashCode() |
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 |
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 |
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 |
withName(String name)
The name of the RestApi.
|
CreateRestApiRequest |
withVersion(String version)
A version identifier for the API.
|
addHandlerContext, 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, withSdkRequestTimeout
public 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 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 Object
Object.toString()
public CreateRestApiRequest clone()
AmazonWebServiceRequest
clone
in class AmazonWebServiceRequest
Object.clone()
Copyright © 2013 Amazon Web Services, Inc. All Rights Reserved.