Class CreateResourceRequest
- java.lang.Object
-
- com.amazonaws.AmazonWebServiceRequest
-
- com.amazonaws.services.apigateway.model.CreateResourceRequest
-
- All Implemented Interfaces:
ReadLimitInfo
,Serializable
,Cloneable
public class CreateResourceRequest extends AmazonWebServiceRequest implements Serializable, Cloneable
Requests Amazon API Gateway to create a Resource resource.
- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from class com.amazonaws.AmazonWebServiceRequest
NOOP
-
-
Constructor Summary
Constructors Constructor Description CreateResourceRequest()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description CreateResourceRequest
clone()
Creates a shallow clone of this request.boolean
equals(Object obj)
String
getParentId()
The parent resource's identifier.String
getPathPart()
The last path segment for this resource.String
getRestApiId()
The identifier of the RestApi for the resource.int
hashCode()
void
setParentId(String parentId)
The parent resource's identifier.void
setPathPart(String pathPart)
The last path segment for this resource.void
setRestApiId(String restApiId)
The identifier of the RestApi for the resource.String
toString()
Returns a string representation of this object; useful for testing and debugging.CreateResourceRequest
withParentId(String parentId)
The parent resource's identifier.CreateResourceRequest
withPathPart(String pathPart)
The last path segment for this resource.CreateResourceRequest
withRestApiId(String restApiId)
The identifier of the RestApi for the resource.-
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
-
setRestApiId
public void setRestApiId(String restApiId)
The identifier of the RestApi for the resource.
- Parameters:
restApiId
- The identifier of the RestApi for the resource.
-
getRestApiId
public String getRestApiId()
The identifier of the RestApi for the resource.
- Returns:
- The identifier of the RestApi for the resource.
-
withRestApiId
public CreateResourceRequest withRestApiId(String restApiId)
The identifier of the RestApi for the resource.
- Parameters:
restApiId
- The identifier of the RestApi for the resource.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setParentId
public void setParentId(String parentId)
The parent resource's identifier.
- Parameters:
parentId
- The parent resource's identifier.
-
getParentId
public String getParentId()
The parent resource's identifier.
- Returns:
- The parent resource's identifier.
-
withParentId
public CreateResourceRequest withParentId(String parentId)
The parent resource's identifier.
- Parameters:
parentId
- The parent resource's identifier.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setPathPart
public void setPathPart(String pathPart)
The last path segment for this resource.
- Parameters:
pathPart
- The last path segment for this resource.
-
getPathPart
public String getPathPart()
The last path segment for this resource.
- Returns:
- The last path segment for this resource.
-
withPathPart
public CreateResourceRequest withPathPart(String pathPart)
The last path segment for this resource.
- Parameters:
pathPart
- The last path segment for this resource.- 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 CreateResourceRequest 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()
-
-