@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class ListScrapersRequest extends AmazonWebServiceRequest implements Serializable, Cloneable
Represents the input of a ListScrapers operation.
NOOP| Constructor and Description |
|---|
ListScrapersRequest() |
| Modifier and Type | Method and Description |
|---|---|
ListScrapersRequest |
addFiltersEntry(String key,
List<String> value)
Add a single Filters entry
|
ListScrapersRequest |
clearFiltersEntries()
Removes all the entries added into Filters.
|
ListScrapersRequest |
clone()
Creates a shallow clone of this object for all fields except the handler context.
|
boolean |
equals(Object obj) |
Map<String,List<String>> |
getFilters()
(Optional) A list of key-value pairs to filter the list of scrapers returned.
|
Integer |
getMaxResults()
Optional) The maximum number of scrapers to return in one
ListScrapers operation. |
String |
getNextToken()
(Optional) The token for the next set of items to return.
|
int |
hashCode() |
void |
setFilters(Map<String,List<String>> filters)
(Optional) A list of key-value pairs to filter the list of scrapers returned.
|
void |
setMaxResults(Integer maxResults)
Optional) The maximum number of scrapers to return in one
ListScrapers operation. |
void |
setNextToken(String nextToken)
(Optional) The token for the next set of items to return.
|
String |
toString()
Returns a string representation of this object.
|
ListScrapersRequest |
withFilters(Map<String,List<String>> filters)
(Optional) A list of key-value pairs to filter the list of scrapers returned.
|
ListScrapersRequest |
withMaxResults(Integer maxResults)
Optional) The maximum number of scrapers to return in one
ListScrapers operation. |
ListScrapersRequest |
withNextToken(String nextToken)
(Optional) The token for the next set of items to return.
|
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, withSdkRequestTimeoutpublic Map<String,List<String>> getFilters()
(Optional) A list of key-value pairs to filter the list of scrapers returned. Keys include status,
sourceArn, destinationArn, and alias.
Filters on the same key are OR'd together, and filters on different keys are AND'd
together. For example, status=ACTIVE&status=CREATING&alias=Test, will return all scrapers
that have the alias Test, and are either in status ACTIVE or CREATING.
To find all active scrapers that are sending metrics to a specific Amazon Managed Service for Prometheus workspace, you would use the ARN of the workspace in a query:
status=ACTIVE&destinationArn=arn:aws:aps:us-east-1:123456789012:workspace/ws-example1-1234-abcd-56ef-123456789012
If this is included, it filters the results to only the scrapers that match the filter.
status, sourceArn, destinationArn, and alias.
Filters on the same key are OR'd together, and filters on different keys are
AND'd together. For example, status=ACTIVE&status=CREATING&alias=Test,
will return all scrapers that have the alias Test, and are either in status ACTIVE or CREATING.
To find all active scrapers that are sending metrics to a specific Amazon Managed Service for Prometheus workspace, you would use the ARN of the workspace in a query:
status=ACTIVE&destinationArn=arn:aws:aps:us-east-1:123456789012:workspace/ws-example1-1234-abcd-56ef-123456789012
If this is included, it filters the results to only the scrapers that match the filter.
public void setFilters(Map<String,List<String>> filters)
(Optional) A list of key-value pairs to filter the list of scrapers returned. Keys include status,
sourceArn, destinationArn, and alias.
Filters on the same key are OR'd together, and filters on different keys are AND'd
together. For example, status=ACTIVE&status=CREATING&alias=Test, will return all scrapers
that have the alias Test, and are either in status ACTIVE or CREATING.
To find all active scrapers that are sending metrics to a specific Amazon Managed Service for Prometheus workspace, you would use the ARN of the workspace in a query:
status=ACTIVE&destinationArn=arn:aws:aps:us-east-1:123456789012:workspace/ws-example1-1234-abcd-56ef-123456789012
If this is included, it filters the results to only the scrapers that match the filter.
filters - (Optional) A list of key-value pairs to filter the list of scrapers returned. Keys include
status, sourceArn, destinationArn, and alias.
Filters on the same key are OR'd together, and filters on different keys are AND
'd together. For example, status=ACTIVE&status=CREATING&alias=Test, will return all
scrapers that have the alias Test, and are either in status ACTIVE or CREATING.
To find all active scrapers that are sending metrics to a specific Amazon Managed Service for Prometheus workspace, you would use the ARN of the workspace in a query:
status=ACTIVE&destinationArn=arn:aws:aps:us-east-1:123456789012:workspace/ws-example1-1234-abcd-56ef-123456789012
If this is included, it filters the results to only the scrapers that match the filter.
public ListScrapersRequest withFilters(Map<String,List<String>> filters)
(Optional) A list of key-value pairs to filter the list of scrapers returned. Keys include status,
sourceArn, destinationArn, and alias.
Filters on the same key are OR'd together, and filters on different keys are AND'd
together. For example, status=ACTIVE&status=CREATING&alias=Test, will return all scrapers
that have the alias Test, and are either in status ACTIVE or CREATING.
To find all active scrapers that are sending metrics to a specific Amazon Managed Service for Prometheus workspace, you would use the ARN of the workspace in a query:
status=ACTIVE&destinationArn=arn:aws:aps:us-east-1:123456789012:workspace/ws-example1-1234-abcd-56ef-123456789012
If this is included, it filters the results to only the scrapers that match the filter.
filters - (Optional) A list of key-value pairs to filter the list of scrapers returned. Keys include
status, sourceArn, destinationArn, and alias.
Filters on the same key are OR'd together, and filters on different keys are AND
'd together. For example, status=ACTIVE&status=CREATING&alias=Test, will return all
scrapers that have the alias Test, and are either in status ACTIVE or CREATING.
To find all active scrapers that are sending metrics to a specific Amazon Managed Service for Prometheus workspace, you would use the ARN of the workspace in a query:
status=ACTIVE&destinationArn=arn:aws:aps:us-east-1:123456789012:workspace/ws-example1-1234-abcd-56ef-123456789012
If this is included, it filters the results to only the scrapers that match the filter.
public ListScrapersRequest addFiltersEntry(String key, List<String> value)
public ListScrapersRequest clearFiltersEntries()
public void setMaxResults(Integer maxResults)
Optional) The maximum number of scrapers to return in one ListScrapers operation. The range is
1-1000.
If you omit this parameter, the default of 100 is used.
maxResults - Optional) The maximum number of scrapers to return in one ListScrapers operation. The range
is 1-1000.
If you omit this parameter, the default of 100 is used.
public Integer getMaxResults()
Optional) The maximum number of scrapers to return in one ListScrapers operation. The range is
1-1000.
If you omit this parameter, the default of 100 is used.
ListScrapers operation. The range
is 1-1000.
If you omit this parameter, the default of 100 is used.
public ListScrapersRequest withMaxResults(Integer maxResults)
Optional) The maximum number of scrapers to return in one ListScrapers operation. The range is
1-1000.
If you omit this parameter, the default of 100 is used.
maxResults - Optional) The maximum number of scrapers to return in one ListScrapers operation. The range
is 1-1000.
If you omit this parameter, the default of 100 is used.
public void setNextToken(String nextToken)
(Optional) The token for the next set of items to return. (You received this token from a previous call.)
nextToken - (Optional) The token for the next set of items to return. (You received this token from a previous call.)public String getNextToken()
(Optional) The token for the next set of items to return. (You received this token from a previous call.)
public ListScrapersRequest withNextToken(String nextToken)
(Optional) The token for the next set of items to return. (You received this token from a previous call.)
nextToken - (Optional) The token for the next set of items to return. (You received this token from a previous call.)public String toString()
toString in class ObjectObject.toString()public ListScrapersRequest clone()
AmazonWebServiceRequestclone in class AmazonWebServiceRequestObject.clone()