Interface ServiceLevelObjective.Builder

All Superinterfaces:
Buildable, CopyableBuilder<ServiceLevelObjective.Builder,ServiceLevelObjective>, SdkBuilder<ServiceLevelObjective.Builder,ServiceLevelObjective>, SdkPojo
Enclosing class:
ServiceLevelObjective

public static interface ServiceLevelObjective.Builder extends SdkPojo, CopyableBuilder<ServiceLevelObjective.Builder,ServiceLevelObjective>
  • 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

      ServiceLevelObjective.Builder description(String 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

      ServiceLevelObjective.Builder createdTime(Instant 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 as yyyy-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

      ServiceLevelObjective.Builder lastUpdatedTime(Instant 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 as yyyy-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 the ServiceLevelIndicator.Builder avoiding the need to create one manually via ServiceLevelIndicator.builder().

      When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to sli(ServiceLevelIndicator).

      Parameters:
      sli - a consumer that will call methods on ServiceLevelIndicator.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 the Goal.Builder avoiding the need to create one manually via Goal.builder().

      When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to goal(Goal).

      Parameters:
      goal - a consumer that will call methods on Goal.Builder
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also: