@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class SearchResult extends AmazonWebServiceResult<ResponseMetadata> implements Serializable, Cloneable
Constructor and Description |
---|
SearchResult() |
Modifier and Type | Method and Description |
---|---|
SearchResult |
clone() |
boolean |
equals(Object obj) |
ResourceCount |
getCount()
The number of resources that match the query.
|
String |
getNextToken()
If present, indicates that more output is available than is included in the current response.
|
List<Resource> |
getResources()
The list of structures that describe the resources that match the query.
|
String |
getViewArn()
The Amazon resource name
(ARN) of the view that this operation used to perform the search.
|
int |
hashCode() |
void |
setCount(ResourceCount count)
The number of resources that match the query.
|
void |
setNextToken(String nextToken)
If present, indicates that more output is available than is included in the current response.
|
void |
setResources(Collection<Resource> resources)
The list of structures that describe the resources that match the query.
|
void |
setViewArn(String viewArn)
The Amazon resource name
(ARN) of the view that this operation used to perform the search.
|
String |
toString()
Returns a string representation of this object.
|
SearchResult |
withCount(ResourceCount count)
The number of resources that match the query.
|
SearchResult |
withNextToken(String nextToken)
If present, indicates that more output is available than is included in the current response.
|
SearchResult |
withResources(Collection<Resource> resources)
The list of structures that describe the resources that match the query.
|
SearchResult |
withResources(Resource... resources)
The list of structures that describe the resources that match the query.
|
SearchResult |
withViewArn(String viewArn)
The Amazon resource name
(ARN) of the view that this operation used to perform the search.
|
getSdkHttpMetadata, getSdkResponseMetadata, setSdkHttpMetadata, setSdkResponseMetadata
public void setCount(ResourceCount count)
The number of resources that match the query.
count
- The number of resources that match the query.public ResourceCount getCount()
The number of resources that match the query.
public SearchResult withCount(ResourceCount count)
The number of resources that match the query.
count
- The number of resources that match the query.public void setNextToken(String nextToken)
If present, indicates that more output is available than is included in the current response. Use this value in
the NextToken
request parameter in a subsequent call to the operation to get the next part of the
output. You should repeat this until the NextToken
response element comes back as null
.
nextToken
- If present, indicates that more output is available than is included in the current response. Use this
value in the NextToken
request parameter in a subsequent call to the operation to get the
next part of the output. You should repeat this until the NextToken
response element comes
back as null
.public String getNextToken()
If present, indicates that more output is available than is included in the current response. Use this value in
the NextToken
request parameter in a subsequent call to the operation to get the next part of the
output. You should repeat this until the NextToken
response element comes back as null
.
NextToken
request parameter in a subsequent call to the operation to get the
next part of the output. You should repeat this until the NextToken
response element comes
back as null
.public SearchResult withNextToken(String nextToken)
If present, indicates that more output is available than is included in the current response. Use this value in
the NextToken
request parameter in a subsequent call to the operation to get the next part of the
output. You should repeat this until the NextToken
response element comes back as null
.
nextToken
- If present, indicates that more output is available than is included in the current response. Use this
value in the NextToken
request parameter in a subsequent call to the operation to get the
next part of the output. You should repeat this until the NextToken
response element comes
back as null
.public List<Resource> getResources()
The list of structures that describe the resources that match the query.
public void setResources(Collection<Resource> resources)
The list of structures that describe the resources that match the query.
resources
- The list of structures that describe the resources that match the query.public SearchResult withResources(Resource... resources)
The list of structures that describe the resources that match the query.
NOTE: This method appends the values to the existing list (if any). Use
setResources(java.util.Collection)
or withResources(java.util.Collection)
if you want to
override the existing values.
resources
- The list of structures that describe the resources that match the query.public SearchResult withResources(Collection<Resource> resources)
The list of structures that describe the resources that match the query.
resources
- The list of structures that describe the resources that match the query.public void setViewArn(String viewArn)
The Amazon resource name (ARN) of the view that this operation used to perform the search.
viewArn
- The Amazon resource
name (ARN) of the view that this operation used to perform the search.public String getViewArn()
The Amazon resource name (ARN) of the view that this operation used to perform the search.
public SearchResult withViewArn(String viewArn)
The Amazon resource name (ARN) of the view that this operation used to perform the search.
viewArn
- The Amazon resource
name (ARN) of the view that this operation used to perform the search.public String toString()
toString
in class Object
Object.toString()
public SearchResult clone()