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 CreateRestApiRequest
clone()
Creates a shallow clone of this request.boolean
equals(Object obj)
String
getCloneFrom()
The Id of the RestApi that you want to clone from.String
getDescription()
The description of the RestApi.String
getName()
The name of the RestApi.int
hashCode()
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
setName(String name)
The name of the RestApi.String
toString()
Returns a string representation of this object; useful for testing and debugging.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
withName(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:
toString
in classObject
- Returns:
- A string representation of this object.
- See Also:
Object.toString()
-
clone
public CreateRestApiRequest clone()
Description copied from class:AmazonWebServiceRequest
Creates a shallow clone of this request. Explicitly does not clone the deep structure of the request object.- Overrides:
clone
in classAmazonWebServiceRequest
- See Also:
Object.clone()
-
-