@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class GetResourceResult extends AmazonWebServiceResult<ResponseMetadata> implements Serializable, Cloneable
Represents an API resource.
Constructor and Description |
---|
GetResourceResult() |
Modifier and Type | Method and Description |
---|---|
GetResourceResult |
addResourceMethodsEntry(String key,
Method value)
Add a single ResourceMethods entry
|
GetResourceResult |
clearResourceMethodsEntries()
Removes all the entries added into ResourceMethods.
|
GetResourceResult |
clone() |
boolean |
equals(Object obj) |
String |
getId()
The resource's identifier.
|
String |
getParentId()
The parent resource's identifier.
|
String |
getPath()
The full path for this resource.
|
String |
getPathPart()
The last path segment for this resource.
|
Map<String,Method> |
getResourceMethods()
Gets an API resource's method of a given HTTP verb.
|
int |
hashCode() |
void |
setId(String id)
The resource's identifier.
|
void |
setParentId(String parentId)
The parent resource's identifier.
|
void |
setPath(String path)
The full path for this resource.
|
void |
setPathPart(String pathPart)
The last path segment for this resource.
|
void |
setResourceMethods(Map<String,Method> resourceMethods)
Gets an API resource's method of a given HTTP verb.
|
String |
toString()
Returns a string representation of this object.
|
GetResourceResult |
withId(String id)
The resource's identifier.
|
GetResourceResult |
withParentId(String parentId)
The parent resource's identifier.
|
GetResourceResult |
withPath(String path)
The full path for this resource.
|
GetResourceResult |
withPathPart(String pathPart)
The last path segment for this resource.
|
GetResourceResult |
withResourceMethods(Map<String,Method> resourceMethods)
Gets an API resource's method of a given HTTP verb.
|
getSdkHttpMetadata, getSdkResponseMetadata, setSdkHttpMetadata, setSdkResponseMetadata
public void setId(String id)
The resource's identifier.
id
- The resource's identifier.public String getId()
The resource's identifier.
public GetResourceResult withId(String id)
The resource's identifier.
id
- The resource's identifier.public void setParentId(String parentId)
The parent resource's identifier.
parentId
- The parent resource's identifier.public String getParentId()
The parent resource's identifier.
public GetResourceResult withParentId(String parentId)
The parent resource's identifier.
parentId
- The parent resource's identifier.public void setPathPart(String pathPart)
The last path segment for this resource.
pathPart
- The last path segment for this resource.public String getPathPart()
The last path segment for this resource.
public GetResourceResult withPathPart(String pathPart)
The last path segment for this resource.
pathPart
- The last path segment for this resource.public void setPath(String path)
The full path for this resource.
path
- The full path for this resource.public String getPath()
The full path for this resource.
public GetResourceResult withPath(String path)
The full path for this resource.
path
- The full path for this resource.public Map<String,Method> getResourceMethods()
Gets an API resource's method of a given HTTP verb.
public void setResourceMethods(Map<String,Method> resourceMethods)
Gets an API resource's method of a given HTTP verb.
resourceMethods
- Gets an API resource's method of a given HTTP verb.public GetResourceResult withResourceMethods(Map<String,Method> resourceMethods)
Gets an API resource's method of a given HTTP verb.
resourceMethods
- Gets an API resource's method of a given HTTP verb.public GetResourceResult addResourceMethodsEntry(String key, Method value)
public GetResourceResult clearResourceMethodsEntries()
public String toString()
toString
in class Object
Object.toString()
public GetResourceResult clone()