Class CreateRestApiRequest
- java.lang.Object
-
- com.amazonaws.AmazonWebServiceRequest
-
- com.amazonaws.services.apigateway.model.CreateRestApiRequest
-
- All Implemented Interfaces:
ReadLimitInfo,Serializable,Cloneable
public class CreateRestApiRequest extends AmazonWebServiceRequest implements Serializable, Cloneable
The POST Request to add a new RestApi resource to your collection.
- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from class com.amazonaws.AmazonWebServiceRequest
NOOP
-
-
Constructor Summary
Constructors Constructor Description CreateRestApiRequest()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description CreateRestApiRequestclone()Creates a shallow clone of this request.booleanequals(Object obj)StringgetCloneFrom()The Id of the RestApi that you want to clone from.StringgetDescription()The description of the RestApi.StringgetName()The name of the RestApi.inthashCode()voidsetCloneFrom(String cloneFrom)The Id of the RestApi that you want to clone from.voidsetDescription(String description)The description of the RestApi.voidsetName(String name)The name of the RestApi.StringtoString()Returns a string representation of this object; useful for testing and debugging.CreateRestApiRequestwithCloneFrom(String cloneFrom)The Id of the RestApi that you want to clone from.CreateRestApiRequestwithDescription(String description)The description of the RestApi.CreateRestApiRequestwithName(String name)The name of the RestApi.-
Methods inherited from class com.amazonaws.AmazonWebServiceRequest
copyBaseTo, getCloneRoot, getCloneSource, getCustomQueryParameters, getCustomRequestHeaders, getGeneralProgressListener, getReadLimit, getRequestClientOptions, getRequestCredentials, getRequestCredentialsProvider, getRequestMetricCollector, getSdkClientExecutionTimeout, getSdkRequestTimeout, putCustomQueryParameter, putCustomRequestHeader, setGeneralProgressListener, setRequestCredentials, setRequestCredentialsProvider, setRequestMetricCollector, setSdkClientExecutionTimeout, setSdkRequestTimeout, withGeneralProgressListener, withRequestMetricCollector, withSdkClientExecutionTimeout, withSdkRequestTimeout
-
-
-
-
Method Detail
-
setName
public void setName(String name)
The name of the RestApi.
- Parameters:
name- The name of the RestApi.
-
withName
public CreateRestApiRequest withName(String name)
The name of the RestApi.
- Parameters:
name- The name of the RestApi.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setDescription
public void setDescription(String description)
The description of the RestApi.
- Parameters:
description- The description of the RestApi.
-
getDescription
public String getDescription()
The description of the RestApi.
- Returns:
- The description of the RestApi.
-
withDescription
public CreateRestApiRequest withDescription(String description)
The description of the RestApi.
- Parameters:
description- The description of the RestApi.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setCloneFrom
public void setCloneFrom(String cloneFrom)
The Id of the RestApi that you want to clone from.
- Parameters:
cloneFrom- The Id of the RestApi that you want to clone from.
-
getCloneFrom
public String getCloneFrom()
The Id of the RestApi that you want to clone from.
- Returns:
- The Id of the RestApi that you want to clone from.
-
withCloneFrom
public CreateRestApiRequest withCloneFrom(String cloneFrom)
The Id of the RestApi that you want to clone from.
- Parameters:
cloneFrom- The Id of the RestApi that you want to clone from.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
toString
public String toString()
Returns a string representation of this object; useful for testing and debugging.- Overrides:
toStringin classObject- Returns:
- A string representation of this object.
- See Also:
Object.toString()
-
clone
public CreateRestApiRequest clone()
Description copied from class:AmazonWebServiceRequestCreates a shallow clone of this request. Explicitly does not clone the deep structure of the request object.- Overrides:
clonein classAmazonWebServiceRequest- See Also:
Object.clone()
-
-