Class UpdateScraperRequest
- java.lang.Object
-
- software.amazon.awssdk.core.SdkRequest
-
- software.amazon.awssdk.awscore.AwsRequest
-
- software.amazon.awssdk.services.amp.model.AmpRequest
-
- software.amazon.awssdk.services.amp.model.UpdateScraperRequest
-
- All Implemented Interfaces:
SdkPojo,ToCopyableBuilder<UpdateScraperRequest.Builder,UpdateScraperRequest>
@Generated("software.amazon.awssdk:codegen") public final class UpdateScraperRequest extends AmpRequest implements ToCopyableBuilder<UpdateScraperRequest.Builder,UpdateScraperRequest>
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceUpdateScraperRequest.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description Stringalias()The new alias of the scraper.static UpdateScraperRequest.Builderbuilder()StringclientToken()A unique identifier that you can provide to ensure the idempotency of the request.Destinationdestination()The new Amazon Managed Service for Prometheus workspace to send metrics to.booleanequals(Object obj)booleanequalsBySdkFields(Object obj)<T> Optional<T>getValueForField(String fieldName, Class<T> clazz)inthashCode()RoleConfigurationroleConfiguration()The scraper role configuration for the workspace.ScrapeConfigurationscrapeConfiguration()Contains the base-64 encoded YAML configuration for the scraper.StringscraperId()The ID of the scraper to update.Map<String,SdkField<?>>sdkFieldNameToField()List<SdkField<?>>sdkFields()static Class<? extends UpdateScraperRequest.Builder>serializableBuilderClass()UpdateScraperRequest.BuildertoBuilder()StringtoString()Returns a string representation of this object.-
Methods inherited from class software.amazon.awssdk.awscore.AwsRequest
overrideConfiguration
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface software.amazon.awssdk.utils.builder.ToCopyableBuilder
copy
-
-
-
-
Method Detail
-
alias
public final String alias()
The new alias of the scraper.
- Returns:
- The new alias of the scraper.
-
clientToken
public final String clientToken()
A unique identifier that you can provide to ensure the idempotency of the request. Case-sensitive.
- Returns:
- A unique identifier that you can provide to ensure the idempotency of the request. Case-sensitive.
-
destination
public final Destination destination()
The new Amazon Managed Service for Prometheus workspace to send metrics to.
- Returns:
- The new Amazon Managed Service for Prometheus workspace to send metrics to.
-
roleConfiguration
public final RoleConfiguration roleConfiguration()
The scraper role configuration for the workspace.
- Returns:
- The scraper role configuration for the workspace.
-
scrapeConfiguration
public final ScrapeConfiguration scrapeConfiguration()
Contains the base-64 encoded YAML configuration for the scraper.
For more information about configuring a scraper, see Using an Amazon Web Services managed collector in the Amazon Managed Service for Prometheus User Guide.
- Returns:
- Contains the base-64 encoded YAML configuration for the scraper.
For more information about configuring a scraper, see Using an Amazon Web Services managed collector in the Amazon Managed Service for Prometheus User Guide.
-
scraperId
public final String scraperId()
The ID of the scraper to update.
- Returns:
- The ID of the scraper to update.
-
toBuilder
public UpdateScraperRequest.Builder toBuilder()
- Specified by:
toBuilderin interfaceToCopyableBuilder<UpdateScraperRequest.Builder,UpdateScraperRequest>- Specified by:
toBuilderin classAmpRequest
-
builder
public static UpdateScraperRequest.Builder builder()
-
serializableBuilderClass
public static Class<? extends UpdateScraperRequest.Builder> serializableBuilderClass()
-
hashCode
public final int hashCode()
- Overrides:
hashCodein classAwsRequest
-
equals
public final boolean equals(Object obj)
- Overrides:
equalsin classAwsRequest
-
equalsBySdkFields
public final boolean equalsBySdkFields(Object obj)
- Specified by:
equalsBySdkFieldsin interfaceSdkPojo
-
toString
public final String toString()
Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be redacted from this string using a placeholder value.
-
getValueForField
public final <T> Optional<T> getValueForField(String fieldName, Class<T> clazz)
- Overrides:
getValueForFieldin classSdkRequest
-
sdkFieldNameToField
public final Map<String,SdkField<?>> sdkFieldNameToField()
- Specified by:
sdkFieldNameToFieldin interfaceSdkPojo
-
-