@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class CreateScraperRequest extends AmazonWebServiceRequest implements Serializable, Cloneable
Represents the input of a CreateScraper operation.
NOOP
Constructor and Description |
---|
CreateScraperRequest() |
Modifier and Type | Method and Description |
---|---|
CreateScraperRequest |
addTagsEntry(String key,
String value)
Add a single Tags entry
|
CreateScraperRequest |
clearTagsEntries()
Removes all the entries added into Tags.
|
CreateScraperRequest |
clone()
Creates a shallow clone of this object for all fields except the handler context.
|
boolean |
equals(Object obj) |
String |
getAlias()
An optional user-assigned alias for this scraper.
|
String |
getClientToken()
Optional, unique, case-sensitive, user-provided identifier to ensure the idempotency of the request.
|
Destination |
getDestination()
The destination that the scraper will be producing metrics to.
|
ScrapeConfiguration |
getScrapeConfiguration()
The configuration used to create the scraper.
|
Source |
getSource()
The source that the scraper will be discovering and collecting metrics from.
|
Map<String,String> |
getTags()
Optional, user-provided tags for this scraper.
|
int |
hashCode() |
void |
setAlias(String alias)
An optional user-assigned alias for this scraper.
|
void |
setClientToken(String clientToken)
Optional, unique, case-sensitive, user-provided identifier to ensure the idempotency of the request.
|
void |
setDestination(Destination destination)
The destination that the scraper will be producing metrics to.
|
void |
setScrapeConfiguration(ScrapeConfiguration scrapeConfiguration)
The configuration used to create the scraper.
|
void |
setSource(Source source)
The source that the scraper will be discovering and collecting metrics from.
|
void |
setTags(Map<String,String> tags)
Optional, user-provided tags for this scraper.
|
String |
toString()
Returns a string representation of this object.
|
CreateScraperRequest |
withAlias(String alias)
An optional user-assigned alias for this scraper.
|
CreateScraperRequest |
withClientToken(String clientToken)
Optional, unique, case-sensitive, user-provided identifier to ensure the idempotency of the request.
|
CreateScraperRequest |
withDestination(Destination destination)
The destination that the scraper will be producing metrics to.
|
CreateScraperRequest |
withScrapeConfiguration(ScrapeConfiguration scrapeConfiguration)
The configuration used to create the scraper.
|
CreateScraperRequest |
withSource(Source source)
The source that the scraper will be discovering and collecting metrics from.
|
CreateScraperRequest |
withTags(Map<String,String> tags)
Optional, user-provided tags for this scraper.
|
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 setAlias(String alias)
An optional user-assigned alias for this scraper. This alias is for user reference and does not need to be unique.
alias
- An optional user-assigned alias for this scraper. This alias is for user reference and does not need to be
unique.public String getAlias()
An optional user-assigned alias for this scraper. This alias is for user reference and does not need to be unique.
public CreateScraperRequest withAlias(String alias)
An optional user-assigned alias for this scraper. This alias is for user reference and does not need to be unique.
alias
- An optional user-assigned alias for this scraper. This alias is for user reference and does not need to be
unique.public void setScrapeConfiguration(ScrapeConfiguration scrapeConfiguration)
The configuration used to create the scraper.
scrapeConfiguration
- The configuration used to create the scraper.public ScrapeConfiguration getScrapeConfiguration()
The configuration used to create the scraper.
public CreateScraperRequest withScrapeConfiguration(ScrapeConfiguration scrapeConfiguration)
The configuration used to create the scraper.
scrapeConfiguration
- The configuration used to create the scraper.public void setSource(Source source)
The source that the scraper will be discovering and collecting metrics from.
source
- The source that the scraper will be discovering and collecting metrics from.public Source getSource()
The source that the scraper will be discovering and collecting metrics from.
public CreateScraperRequest withSource(Source source)
The source that the scraper will be discovering and collecting metrics from.
source
- The source that the scraper will be discovering and collecting metrics from.public void setDestination(Destination destination)
The destination that the scraper will be producing metrics to.
destination
- The destination that the scraper will be producing metrics to.public Destination getDestination()
The destination that the scraper will be producing metrics to.
public CreateScraperRequest withDestination(Destination destination)
The destination that the scraper will be producing metrics to.
destination
- The destination that the scraper will be producing metrics to.public void setClientToken(String clientToken)
Optional, unique, case-sensitive, user-provided identifier to ensure the idempotency of the request.
clientToken
- Optional, unique, case-sensitive, user-provided identifier to ensure the idempotency of the request.public String getClientToken()
Optional, unique, case-sensitive, user-provided identifier to ensure the idempotency of the request.
public CreateScraperRequest withClientToken(String clientToken)
Optional, unique, case-sensitive, user-provided identifier to ensure the idempotency of the request.
clientToken
- Optional, unique, case-sensitive, user-provided identifier to ensure the idempotency of the request.public Map<String,String> getTags()
Optional, user-provided tags for this scraper.
public void setTags(Map<String,String> tags)
Optional, user-provided tags for this scraper.
tags
- Optional, user-provided tags for this scraper.public CreateScraperRequest withTags(Map<String,String> tags)
Optional, user-provided tags for this scraper.
tags
- Optional, user-provided tags for this scraper.public CreateScraperRequest addTagsEntry(String key, String value)
public CreateScraperRequest clearTagsEntries()
public String toString()
toString
in class Object
Object.toString()
public CreateScraperRequest clone()
AmazonWebServiceRequest
clone
in class AmazonWebServiceRequest
Object.clone()