@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class GetResourceRequest extends AmazonWebServiceRequest implements Serializable, Cloneable
Request to list information about a resource.
NOOP
Constructor and Description |
---|
GetResourceRequest() |
Modifier and Type | Method and Description |
---|---|
GetResourceRequest |
clone()
Creates a shallow clone of this object for all fields except the handler context.
|
boolean |
equals(Object obj) |
List<String> |
getEmbed()
A query parameter to retrieve the specified resources embedded in the returned Resource representation in
the response.
|
String |
getResourceId()
The identifier for the Resource resource.
|
String |
getRestApiId()
The string identifier of the associated RestApi.
|
int |
hashCode() |
void |
setEmbed(Collection<String> embed)
A query parameter to retrieve the specified resources embedded in the returned Resource representation in
the response.
|
void |
setResourceId(String resourceId)
The identifier for the Resource resource.
|
void |
setRestApiId(String restApiId)
The string identifier of the associated RestApi.
|
String |
toString()
Returns a string representation of this object; useful for testing and debugging.
|
GetResourceRequest |
withEmbed(Collection<String> embed)
A query parameter to retrieve the specified resources embedded in the returned Resource representation in
the response.
|
GetResourceRequest |
withEmbed(String... embed)
A query parameter to retrieve the specified resources embedded in the returned Resource representation in
the response.
|
GetResourceRequest |
withResourceId(String resourceId)
The identifier for the Resource resource.
|
GetResourceRequest |
withRestApiId(String restApiId)
The string identifier of the associated RestApi.
|
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 setRestApiId(String restApiId)
The string identifier of the associated RestApi.
restApiId
- The string identifier of the associated RestApi.public String getRestApiId()
The string identifier of the associated RestApi.
public GetResourceRequest withRestApiId(String restApiId)
The string identifier of the associated RestApi.
restApiId
- The string identifier of the associated RestApi.public void setResourceId(String resourceId)
The identifier for the Resource resource.
resourceId
- The identifier for the Resource resource.public String getResourceId()
The identifier for the Resource resource.
public GetResourceRequest withResourceId(String resourceId)
The identifier for the Resource resource.
resourceId
- The identifier for the Resource resource.public List<String> getEmbed()
A query parameter to retrieve the specified resources embedded in the returned Resource representation in
the response. This embed
parameter value is a list of comma-separated strings. Currently, the
request supports only retrieval of the embedded Method resources this way. The query parameter value must
be a single-valued list and contain the "methods"
string. For example,
GET /restapis/{restapi_id}/resources/{resource_id}?embed=methods
.
embed
parameter value is a list of comma-separated
strings. Currently, the request supports only retrieval of the embedded Method resources this way.
The query parameter value must be a single-valued list and contain the "methods"
string. For
example, GET /restapis/{restapi_id}/resources/{resource_id}?embed=methods
.public void setEmbed(Collection<String> embed)
A query parameter to retrieve the specified resources embedded in the returned Resource representation in
the response. This embed
parameter value is a list of comma-separated strings. Currently, the
request supports only retrieval of the embedded Method resources this way. The query parameter value must
be a single-valued list and contain the "methods"
string. For example,
GET /restapis/{restapi_id}/resources/{resource_id}?embed=methods
.
embed
- A query parameter to retrieve the specified resources embedded in the returned Resource
representation in the response. This embed
parameter value is a list of comma-separated
strings. Currently, the request supports only retrieval of the embedded Method resources this way.
The query parameter value must be a single-valued list and contain the "methods"
string. For
example, GET /restapis/{restapi_id}/resources/{resource_id}?embed=methods
.public GetResourceRequest withEmbed(String... embed)
A query parameter to retrieve the specified resources embedded in the returned Resource representation in
the response. This embed
parameter value is a list of comma-separated strings. Currently, the
request supports only retrieval of the embedded Method resources this way. The query parameter value must
be a single-valued list and contain the "methods"
string. For example,
GET /restapis/{restapi_id}/resources/{resource_id}?embed=methods
.
NOTE: This method appends the values to the existing list (if any). Use
setEmbed(java.util.Collection)
or withEmbed(java.util.Collection)
if you want to override the
existing values.
embed
- A query parameter to retrieve the specified resources embedded in the returned Resource
representation in the response. This embed
parameter value is a list of comma-separated
strings. Currently, the request supports only retrieval of the embedded Method resources this way.
The query parameter value must be a single-valued list and contain the "methods"
string. For
example, GET /restapis/{restapi_id}/resources/{resource_id}?embed=methods
.public GetResourceRequest withEmbed(Collection<String> embed)
A query parameter to retrieve the specified resources embedded in the returned Resource representation in
the response. This embed
parameter value is a list of comma-separated strings. Currently, the
request supports only retrieval of the embedded Method resources this way. The query parameter value must
be a single-valued list and contain the "methods"
string. For example,
GET /restapis/{restapi_id}/resources/{resource_id}?embed=methods
.
embed
- A query parameter to retrieve the specified resources embedded in the returned Resource
representation in the response. This embed
parameter value is a list of comma-separated
strings. Currently, the request supports only retrieval of the embedded Method resources this way.
The query parameter value must be a single-valued list and contain the "methods"
string. For
example, GET /restapis/{restapi_id}/resources/{resource_id}?embed=methods
.public String toString()
toString
in class Object
Object.toString()
public GetResourceRequest clone()
AmazonWebServiceRequest
clone
in class AmazonWebServiceRequest
Object.clone()
Copyright © 2013 Amazon Web Services, Inc. All Rights Reserved.