Interface CreateHealthCheckRequest.Builder

  • Method Details

    • callerReference

      CreateHealthCheckRequest.Builder callerReference(String callerReference)

      A unique string that identifies the request and that allows you to retry a failed CreateHealthCheck request without the risk of creating two identical health checks:

      • If you send a CreateHealthCheck request with the same CallerReference and settings as a previous request, and if the health check doesn't exist, Amazon Route 53 creates the health check. If the health check does exist, Route 53 returns the settings for the existing health check.

      • If you send a CreateHealthCheck request with the same CallerReference as a deleted health check, regardless of the settings, Route 53 returns a HealthCheckAlreadyExists error.

      • If you send a CreateHealthCheck request with the same CallerReference as an existing health check but with different settings, Route 53 returns a HealthCheckAlreadyExists error.

      • If you send a CreateHealthCheck request with a unique CallerReference but settings identical to an existing health check, Route 53 creates the health check.

      Route 53 does not store the CallerReference for a deleted health check indefinitely. The CallerReference for a deleted health check will be deleted after a number of days.

      Parameters:
      callerReference - A unique string that identifies the request and that allows you to retry a failed CreateHealthCheck request without the risk of creating two identical health checks:

      • If you send a CreateHealthCheck request with the same CallerReference and settings as a previous request, and if the health check doesn't exist, Amazon Route 53 creates the health check. If the health check does exist, Route 53 returns the settings for the existing health check.

      • If you send a CreateHealthCheck request with the same CallerReference as a deleted health check, regardless of the settings, Route 53 returns a HealthCheckAlreadyExists error.

      • If you send a CreateHealthCheck request with the same CallerReference as an existing health check but with different settings, Route 53 returns a HealthCheckAlreadyExists error.

      • If you send a CreateHealthCheck request with a unique CallerReference but settings identical to an existing health check, Route 53 creates the health check.

      Route 53 does not store the CallerReference for a deleted health check indefinitely. The CallerReference for a deleted health check will be deleted after a number of days.

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

      CreateHealthCheckRequest.Builder healthCheckConfig(HealthCheckConfig healthCheckConfig)

      A complex type that contains settings for a new health check.

      Parameters:
      healthCheckConfig - A complex type that contains settings for a new health check.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • healthCheckConfig

      default CreateHealthCheckRequest.Builder healthCheckConfig(Consumer<HealthCheckConfig.Builder> healthCheckConfig)

      A complex type that contains settings for a new health check.

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

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

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

      CreateHealthCheckRequest.Builder overrideConfiguration(AwsRequestOverrideConfiguration 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.