public class CreateResourceRequest extends AmazonWebServiceRequest implements java.io.Serializable, java.lang.Cloneable
Requests Amazon API Gateway to create a Resource resource.
Modifier and Type | Field and Description |
---|---|
private java.lang.String |
parentId
The parent resource's identifier.
|
private java.lang.String |
pathPart
The last path segment for this resource.
|
private java.lang.String |
restApiId
The identifier of the RestApi for the resource.
|
NOOP
Constructor and Description |
---|
CreateResourceRequest() |
Modifier and Type | Method and Description |
---|---|
CreateResourceRequest |
clone()
Creates a shallow clone of this request.
|
boolean |
equals(java.lang.Object obj) |
java.lang.String |
getParentId()
The parent resource's identifier.
|
java.lang.String |
getPathPart()
The last path segment for this resource.
|
java.lang.String |
getRestApiId()
The identifier of the RestApi for the resource.
|
int |
hashCode() |
void |
setParentId(java.lang.String parentId)
The parent resource's identifier.
|
void |
setPathPart(java.lang.String pathPart)
The last path segment for this resource.
|
void |
setRestApiId(java.lang.String restApiId)
The identifier of the RestApi for the resource.
|
java.lang.String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
CreateResourceRequest |
withParentId(java.lang.String parentId)
The parent resource's identifier.
|
CreateResourceRequest |
withPathPart(java.lang.String pathPart)
The last path segment for this resource.
|
CreateResourceRequest |
withRestApiId(java.lang.String restApiId)
The identifier of the RestApi for the resource.
|
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
private java.lang.String restApiId
The identifier of the RestApi for the resource.
private java.lang.String parentId
The parent resource's identifier.
private java.lang.String pathPart
The last path segment for this resource.
public void setRestApiId(java.lang.String restApiId)
The identifier of the RestApi for the resource.
restApiId
- The identifier of the RestApi for the resource.public java.lang.String getRestApiId()
The identifier of the RestApi for the resource.
public CreateResourceRequest withRestApiId(java.lang.String restApiId)
The identifier of the RestApi for the resource.
restApiId
- The identifier of the RestApi for the resource.public void setParentId(java.lang.String parentId)
The parent resource's identifier.
parentId
- The parent resource's identifier.public java.lang.String getParentId()
The parent resource's identifier.
public CreateResourceRequest withParentId(java.lang.String parentId)
The parent resource's identifier.
parentId
- The parent resource's identifier.public void setPathPart(java.lang.String pathPart)
The last path segment for this resource.
pathPart
- The last path segment for this resource.public java.lang.String getPathPart()
The last path segment for this resource.
public CreateResourceRequest withPathPart(java.lang.String pathPart)
The last path segment for this resource.
pathPart
- The last path segment for this resource.public java.lang.String toString()
toString
in class java.lang.Object
Object.toString()
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public CreateResourceRequest clone()
AmazonWebServiceRequest
clone
in class AmazonWebServiceRequest
Object.clone()