Interface ServiceLevelObjective.Builder

  • 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, if this is a period-based SLO.

      Parameters:
      sli - A structure containing information about the performance metric that this SLO monitors, if this is a period-based SLO.
      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, if this is a period-based SLO.

      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:
    • requestBasedSli

      A structure containing information about the performance metric that this SLO monitors, if this is a request-based SLO.

      Parameters:
      requestBasedSli - A structure containing information about the performance metric that this SLO monitors, if this is a request-based SLO.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • requestBasedSli

      A structure containing information about the performance metric that this SLO monitors, if this is a request-based SLO.

      This is a convenience method that creates an instance of the RequestBasedServiceLevelIndicator.Builder avoiding the need to create one manually via RequestBasedServiceLevelIndicator.builder().

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

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

      ServiceLevelObjective.Builder evaluationType(String evaluationType)

      Displays whether this is a period-based SLO or a request-based SLO.

      Parameters:
      evaluationType - Displays whether this is a period-based SLO or a request-based SLO.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • evaluationType

      ServiceLevelObjective.Builder evaluationType(EvaluationType evaluationType)

      Displays whether this is a period-based SLO or a request-based SLO.

      Parameters:
      evaluationType - Displays whether this is a period-based SLO or a request-based SLO.
      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: