Interface CreateOmniSloRequest.Builder
- All Superinterfaces:
AwsRequest.Builder,Buildable,CloudWatchOmniRequest.Builder,CopyableBuilder<CreateOmniSloRequest.Builder,,CreateOmniSloRequest> SdkBuilder<CreateOmniSloRequest.Builder,,CreateOmniSloRequest> SdkPojo,SdkRequest.Builder
- Enclosing class:
CreateOmniSloRequest
-
Method Summary
Modifier and TypeMethodDescriptionclientToken(String clientToken) Idempotency token for safe retries.description(String description) An optional description of the SLO.The display name of the SLO.default CreateOmniSloRequest.Builderobjective(Consumer<SloObjective.Builder> objective) The reliability target, the warning threshold and the window the target is measured over.objective(SloObjective objective) The reliability target, the warning threshold and the window the target is measured over.overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) Add an optional request override configuration.overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration) Add an optional request override configuration.default CreateOmniSloRequest.BuilderserviceAttributes(Consumer<SloServiceAttributes.Builder> serviceAttributes) The service the SLO is about.serviceAttributes(SloServiceAttributes serviceAttributes) The service the SLO is about.default CreateOmniSloRequest.Buildersli(Consumer<Sli.Builder> sli) What the SLO measures.What the SLO measures.The unique ID of the space to create the SLO in.The tags to associate with the SLO.Methods inherited from interface software.amazon.awssdk.awscore.AwsRequest.Builder
overrideConfigurationMethods inherited from interface software.amazon.awssdk.services.cloudwatchomni.model.CloudWatchOmniRequest.Builder
buildMethods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copyMethods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, buildMethods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFieldNameToField, sdkFields
-
Method Details
-
spaceId
The unique ID of the space to create the SLO in.
- Parameters:
spaceId- The unique ID of the space to create the SLO in.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
name
The display name of the SLO. Not unique within a space; the sloId returned in the response identifies the SLO.
- Parameters:
name- The display name of the SLO. Not unique within a space; the sloId returned in the response identifies the SLO.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
description
An optional description of the SLO.
- Parameters:
description- An optional description of the SLO.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
serviceAttributes
The service the SLO is about. Descriptive only: it is not checked against the SLI and never used for authorization.
- Parameters:
serviceAttributes- The service the SLO is about. Descriptive only: it is not checked against the SLI and never used for authorization.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
serviceAttributes
default CreateOmniSloRequest.Builder serviceAttributes(Consumer<SloServiceAttributes.Builder> serviceAttributes) The service the SLO is about. Descriptive only: it is not checked against the SLI and never used for authorization.
This is a convenience method that creates an instance of theSloServiceAttributes.Builderavoiding the need to create one manually viaSloServiceAttributes.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed toserviceAttributes(SloServiceAttributes).- Parameters:
serviceAttributes- a consumer that will call methods onSloServiceAttributes.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
sli
What the SLO measures.
- Parameters:
sli- What the SLO measures.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
sli
What the SLO measures.
This is a convenience method that creates an instance of theSli.Builderavoiding the need to create one manually viaSli.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed tosli(Sli).- Parameters:
sli- a consumer that will call methods onSli.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
objective
The reliability target, the warning threshold and the window the target is measured over.
- Parameters:
objective- The reliability target, the warning threshold and the window the target is measured over.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
objective
The reliability target, the warning threshold and the window the target is measured over.
This is a convenience method that creates an instance of theSloObjective.Builderavoiding the need to create one manually viaSloObjective.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed toobjective(SloObjective).- Parameters:
objective- a consumer that will call methods onSloObjective.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
tags
The tags to associate with the SLO.
- Parameters:
tags- The tags to associate with the SLO.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
clientToken
Idempotency token for safe retries. Retrying with the same token returns the original SLO instead of creating a duplicate.
- Parameters:
clientToken- Idempotency token for safe retries. Retrying with the same token returns the original SLO instead of creating a duplicate.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
overrideConfiguration
CreateOmniSloRequest.Builder overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration) Description copied from interface:AwsRequest.BuilderAdd an optional request override configuration.- Specified by:
overrideConfigurationin interfaceAwsRequest.Builder- Parameters:
overrideConfiguration- The override configuration.- Returns:
- This object for method chaining.
-
overrideConfiguration
CreateOmniSloRequest.Builder overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) Description copied from interface:AwsRequest.BuilderAdd an optional request override configuration.- Specified by:
overrideConfigurationin interfaceAwsRequest.Builder- Parameters:
builderConsumer- AConsumerto which an emptyAwsRequestOverrideConfiguration.Builderwill be given.- Returns:
- This object for method chaining.
-