Interface CreateServiceLevelObjectiveRequest.Builder

  • 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

      If this SLO is a period-based SLO, this structure defines the information about what performance metric this SLO will monitor.

      You can't specify both RequestBasedSliConfig and SliConfig in the same operation.

      Parameters:
      sliConfig - If this SLO is a period-based SLO, this structure defines the information about what performance metric this SLO will monitor.

      You can't specify both RequestBasedSliConfig and SliConfig in the same operation.

      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • sliConfig

      If this SLO is a period-based SLO, this structure defines the information about what performance metric this SLO will monitor.

      You can't specify both RequestBasedSliConfig and SliConfig in the same operation.

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

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

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

      If this SLO is a request-based SLO, this structure defines the information about what performance metric this SLO will monitor.

      You can't specify both RequestBasedSliConfig and SliConfig in the same operation.

      Parameters:
      requestBasedSliConfig - If this SLO is a request-based SLO, this structure defines the information about what performance metric this SLO will monitor.

      You can't specify both RequestBasedSliConfig and SliConfig in the same operation.

      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • requestBasedSliConfig

      If this SLO is a request-based SLO, this structure defines the information about what performance metric this SLO will monitor.

      You can't specify both RequestBasedSliConfig and SliConfig in the same operation.

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

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

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

      This structure contains the attributes that determine the goal of the SLO.

      Parameters:
      goal - This structure contains the attributes that determine the goal of the SLO.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • goal

      This structure contains the attributes that determine the goal of the SLO.

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

      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 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.

      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 the Tag.Builder avoiding the need to create one manually via Tag.builder().

      When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to tags(List<Tag>).

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

      CreateServiceLevelObjectiveRequest.Builder burnRateConfigurations(Collection<BurnRateConfiguration> burnRateConfigurations)

      Use this array to create burn rates for this SLO. Each burn rate is a metric that indicates how fast the service is consuming the error budget, relative to the attainment goal of the SLO.

      Parameters:
      burnRateConfigurations - Use this array to create burn rates for this SLO. Each burn rate is a metric that indicates how fast the service is consuming the error budget, relative to the attainment goal of the SLO.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • burnRateConfigurations

      CreateServiceLevelObjectiveRequest.Builder burnRateConfigurations(BurnRateConfiguration... burnRateConfigurations)

      Use this array to create burn rates for this SLO. Each burn rate is a metric that indicates how fast the service is consuming the error budget, relative to the attainment goal of the SLO.

      Parameters:
      burnRateConfigurations - Use this array to create burn rates for this SLO. Each burn rate is a metric that indicates how fast the service is consuming the error budget, relative to the attainment goal of the SLO.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • burnRateConfigurations

      CreateServiceLevelObjectiveRequest.Builder burnRateConfigurations(Consumer<BurnRateConfiguration.Builder>... burnRateConfigurations)

      Use this array to create burn rates for this SLO. Each burn rate is a metric that indicates how fast the service is consuming the error budget, relative to the attainment goal of the SLO.

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

      When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to burnRateConfigurations(List<BurnRateConfiguration>).

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

      Description copied from interface: AwsRequest.Builder
      Add an optional request override configuration.
      Specified by:
      overrideConfiguration in interface AwsRequest.Builder
      Parameters:
      overrideConfiguration - The override configuration.
      Returns:
      This object for method chaining.
    • overrideConfiguration

      Description copied from interface: AwsRequest.Builder
      Add an optional request override configuration.
      Specified by:
      overrideConfiguration in interface AwsRequest.Builder
      Parameters:
      builderConsumer - A Consumer to which an empty AwsRequestOverrideConfiguration.Builder will be given.
      Returns:
      This object for method chaining.