Interface CreateServiceLevelObjectiveRequest.Builder
- All Superinterfaces:
ApplicationSignalsRequest.Builder
,AwsRequest.Builder
,Buildable
,CopyableBuilder<CreateServiceLevelObjectiveRequest.Builder,
,CreateServiceLevelObjectiveRequest> SdkBuilder<CreateServiceLevelObjectiveRequest.Builder,
,CreateServiceLevelObjectiveRequest> SdkPojo
,SdkRequest.Builder
- Enclosing class:
CreateServiceLevelObjectiveRequest
-
Method Summary
Modifier and TypeMethodDescriptiondescription
(String description) An optional description for this SLO.goal
(Consumer<Goal.Builder> goal) A structure that contains the attributes that determine the goal of the SLO.A structure that contains the attributes that determine the goal of the SLO.A name for this SLO.overrideConfiguration
(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) Add an optional request override configuration.overrideConfiguration
(AwsRequestOverrideConfiguration overrideConfiguration) Add an optional request override configuration.sliConfig
(Consumer<ServiceLevelIndicatorConfig.Builder> sliConfig) A structure that contains information about what service and what performance metric that this SLO will monitor.sliConfig
(ServiceLevelIndicatorConfig sliConfig) A structure that contains information about what service and what performance metric that this SLO will monitor.tags
(Collection<Tag> tags) A list of key-value pairs to associate with the SLO.tags
(Consumer<Tag.Builder>... tags) A list of key-value pairs to associate with the SLO.A list of key-value pairs to associate with the SLO.Methods inherited from interface software.amazon.awssdk.services.applicationsignals.model.ApplicationSignalsRequest.Builder
build
Methods inherited from interface software.amazon.awssdk.awscore.AwsRequest.Builder
overrideConfiguration
Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
Methods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, build
Methods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFields
-
Method Details
-
name
A name for this SLO.
- Parameters:
name
- A name for this SLO.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
description
An optional description for this SLO.
- Parameters:
description
- An optional description for this SLO.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
sliConfig
A structure that contains information about what service and what performance metric that this SLO will monitor.
- Parameters:
sliConfig
- A structure that contains information about what service and what performance metric that this SLO will monitor.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
sliConfig
default CreateServiceLevelObjectiveRequest.Builder sliConfig(Consumer<ServiceLevelIndicatorConfig.Builder> sliConfig) A structure that contains information about what service and what performance metric that this SLO will monitor.
This is a convenience method that creates an instance of theServiceLevelIndicatorConfig.Builder
avoiding the need to create one manually viaServiceLevelIndicatorConfig.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed tosliConfig(ServiceLevelIndicatorConfig)
.- Parameters:
sliConfig
- a consumer that will call methods onServiceLevelIndicatorConfig.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
goal
A structure that contains the attributes that determine the goal of the SLO. This includes the time period for evaluation and the attainment threshold.
- Parameters:
goal
- A structure that contains the attributes that determine the goal of the SLO. This includes the time period for evaluation and the attainment threshold.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
goal
A structure that contains the attributes that determine the goal of the SLO. This includes the time period for evaluation and the attainment threshold.
This is a convenience method that creates an instance of theGoal.Builder
avoiding the need to create one manually viaGoal.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed togoal(Goal)
.- Parameters:
goal
- a consumer that will call methods onGoal.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
tags
A list of key-value pairs to associate with the SLO. You can associate as many as 50 tags with an SLO. To be able to associate tags with the SLO when you create the SLO, you must have the
cloudwatch:TagResource
permission.Tags can help you organize and categorize your resources. You can also use them to scope user permissions by granting a user permission to access or change only resources with certain tag values.
- Parameters:
tags
- A list of key-value pairs to associate with the SLO. You can associate as many as 50 tags with an SLO. To be able to associate tags with the SLO when you create the SLO, you must have thecloudwatch:TagResource
permission.Tags can help you organize and categorize your resources. You can also use them to scope user permissions by granting a user permission to access or change only resources with certain tag values.
- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
tags
A list of key-value pairs to associate with the SLO. You can associate as many as 50 tags with an SLO. To be able to associate tags with the SLO when you create the SLO, you must have the
cloudwatch:TagResource
permission.Tags can help you organize and categorize your resources. You can also use them to scope user permissions by granting a user permission to access or change only resources with certain tag values.
- Parameters:
tags
- A list of key-value pairs to associate with the SLO. You can associate as many as 50 tags with an SLO. To be able to associate tags with the SLO when you create the SLO, you must have thecloudwatch:TagResource
permission.Tags can help you organize and categorize your resources. You can also use them to scope user permissions by granting a user permission to access or change only resources with certain tag values.
- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
tags
A list of key-value pairs to associate with the SLO. You can associate as many as 50 tags with an SLO. To be able to associate tags with the SLO when you create the SLO, you must have the
cloudwatch:TagResource
permission.Tags can help you organize and categorize your resources. You can also use them to scope user permissions by granting a user permission to access or change only resources with certain tag values.
This is a convenience method that creates an instance of theTag.Builder
avoiding the need to create one manually viaTag.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed totags(List<Tag>)
.- Parameters:
tags
- a consumer that will call methods onTag.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
overrideConfiguration
CreateServiceLevelObjectiveRequest.Builder overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration) Description copied from interface:AwsRequest.Builder
Add an optional request override configuration.- Specified by:
overrideConfiguration
in interfaceAwsRequest.Builder
- Parameters:
overrideConfiguration
- The override configuration.- Returns:
- This object for method chaining.
-
overrideConfiguration
CreateServiceLevelObjectiveRequest.Builder overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) Description copied from interface:AwsRequest.Builder
Add an optional request override configuration.- Specified by:
overrideConfiguration
in interfaceAwsRequest.Builder
- Parameters:
builderConsumer
- AConsumer
to which an emptyAwsRequestOverrideConfiguration.Builder
will be given.- Returns:
- This object for method chaining.
-