Interface ServiceLevelObjective.Builder
- All Superinterfaces:
Buildable
,CopyableBuilder<ServiceLevelObjective.Builder,
,ServiceLevelObjective> SdkBuilder<ServiceLevelObjective.Builder,
,ServiceLevelObjective> SdkPojo
- Enclosing class:
ServiceLevelObjective
-
Method Summary
Modifier and TypeMethodDescriptionThe ARN of this SLO.createdTime
(Instant createdTime) The date and time that this SLO was created.description
(String description) The description that you created for this SLO.default ServiceLevelObjective.Builder
goal
(Consumer<Goal.Builder> goal) Sets the value of the Goal property for this object.Sets the value of the Goal property for this object.lastUpdatedTime
(Instant lastUpdatedTime) The time that this SLO was most recently updated.The name of this SLO.default ServiceLevelObjective.Builder
A structure containing information about the performance metric that this SLO monitors.sli
(ServiceLevelIndicator sli) A structure containing information about the performance metric that this SLO monitors.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
-
arn
The ARN of this SLO.
- Parameters:
arn
- The ARN of this SLO.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
name
The name of this SLO.
- Parameters:
name
- The name of this SLO.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
description
The description that you created for this SLO.
- Parameters:
description
- The description that you created for this SLO.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
createdTime
The date and time that this SLO was created. When used in a raw HTTP Query API, it is formatted as
yyyy-MM-dd'T'HH:mm:ss
. For example,2019-07-01T23:59:59
.- Parameters:
createdTime
- The date and time that this SLO was created. When used in a raw HTTP Query API, it is formatted asyyyy-MM-dd'T'HH:mm:ss
. For example,2019-07-01T23:59:59
.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
lastUpdatedTime
The time that this SLO was most recently updated. When used in a raw HTTP Query API, it is formatted as
yyyy-MM-dd'T'HH:mm:ss
. For example,2019-07-01T23:59:59
.- Parameters:
lastUpdatedTime
- The time that this SLO was most recently updated. When used in a raw HTTP Query API, it is formatted asyyyy-MM-dd'T'HH:mm:ss
. For example,2019-07-01T23:59:59
.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
sli
A structure containing information about the performance metric that this SLO monitors.
- Parameters:
sli
- A structure containing information about the performance metric that this SLO monitors.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
sli
A structure containing information about the performance metric that this SLO monitors.
This is a convenience method that creates an instance of theServiceLevelIndicator.Builder
avoiding the need to create one manually viaServiceLevelIndicator.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed tosli(ServiceLevelIndicator)
.- Parameters:
sli
- a consumer that will call methods onServiceLevelIndicator.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
goal
Sets the value of the Goal property for this object.- Parameters:
goal
- The new value for the Goal property for this object.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
goal
Sets the value of the Goal property for this object. 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:
-