Class HealthCheck
- java.lang.Object
-
- com.amazonaws.services.route53.model.HealthCheck
-
- All Implemented Interfaces:
Serializable,Cloneable
public class HealthCheck extends Object implements Serializable, Cloneable
A complex type that contains identifying information about the health check.
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description HealthCheck()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description HealthCheckclone()booleanequals(Object obj)StringgetCallerReference()A unique string that identifies the request to create the health check.CloudWatchAlarmConfigurationgetCloudWatchAlarmConfiguration()For CLOUDWATCH_METRIC health checks, a complex type that contains information about the CloudWatch alarm that you're associating with the health check.HealthCheckConfiggetHealthCheckConfig()A complex type that contains the health check configuration.LonggetHealthCheckVersion()The version of the health check.StringgetId()The ID of the specified health check.inthashCode()voidsetCallerReference(String callerReference)A unique string that identifies the request to create the health check.voidsetCloudWatchAlarmConfiguration(CloudWatchAlarmConfiguration cloudWatchAlarmConfiguration)For CLOUDWATCH_METRIC health checks, a complex type that contains information about the CloudWatch alarm that you're associating with the health check.voidsetHealthCheckConfig(HealthCheckConfig healthCheckConfig)A complex type that contains the health check configuration.voidsetHealthCheckVersion(Long healthCheckVersion)The version of the health check.voidsetId(String id)The ID of the specified health check.StringtoString()Returns a string representation of this object; useful for testing and debugging.HealthCheckwithCallerReference(String callerReference)A unique string that identifies the request to create the health check.HealthCheckwithCloudWatchAlarmConfiguration(CloudWatchAlarmConfiguration cloudWatchAlarmConfiguration)For CLOUDWATCH_METRIC health checks, a complex type that contains information about the CloudWatch alarm that you're associating with the health check.HealthCheckwithHealthCheckConfig(HealthCheckConfig healthCheckConfig)A complex type that contains the health check configuration.HealthCheckwithHealthCheckVersion(Long healthCheckVersion)The version of the health check.HealthCheckwithId(String id)The ID of the specified health check.
-
-
-
Method Detail
-
setId
public void setId(String id)
The ID of the specified health check.
- Parameters:
id- The ID of the specified health check.
-
getId
public String getId()
The ID of the specified health check.
- Returns:
- The ID of the specified health check.
-
withId
public HealthCheck withId(String id)
The ID of the specified health check.
- Parameters:
id- The ID of the specified health check.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setCallerReference
public void setCallerReference(String callerReference)
A unique string that identifies the request to create the health check.
- Parameters:
callerReference- A unique string that identifies the request to create the health check.
-
getCallerReference
public String getCallerReference()
A unique string that identifies the request to create the health check.
- Returns:
- A unique string that identifies the request to create the health check.
-
withCallerReference
public HealthCheck withCallerReference(String callerReference)
A unique string that identifies the request to create the health check.
- Parameters:
callerReference- A unique string that identifies the request to create the health check.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setHealthCheckConfig
public void setHealthCheckConfig(HealthCheckConfig healthCheckConfig)
A complex type that contains the health check configuration.
- Parameters:
healthCheckConfig- A complex type that contains the health check configuration.
-
getHealthCheckConfig
public HealthCheckConfig getHealthCheckConfig()
A complex type that contains the health check configuration.
- Returns:
- A complex type that contains the health check configuration.
-
withHealthCheckConfig
public HealthCheck withHealthCheckConfig(HealthCheckConfig healthCheckConfig)
A complex type that contains the health check configuration.
- Parameters:
healthCheckConfig- A complex type that contains the health check configuration.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setHealthCheckVersion
public void setHealthCheckVersion(Long healthCheckVersion)
The version of the health check. You can optionally pass this value in a call to
UpdateHealthCheckto prevent overwriting another change to the health check.- Parameters:
healthCheckVersion- The version of the health check. You can optionally pass this value in a call toUpdateHealthCheckto prevent overwriting another change to the health check.
-
getHealthCheckVersion
public Long getHealthCheckVersion()
The version of the health check. You can optionally pass this value in a call to
UpdateHealthCheckto prevent overwriting another change to the health check.- Returns:
- The version of the health check. You can optionally pass this
value in a call to
UpdateHealthCheckto prevent overwriting another change to the health check.
-
withHealthCheckVersion
public HealthCheck withHealthCheckVersion(Long healthCheckVersion)
The version of the health check. You can optionally pass this value in a call to
UpdateHealthCheckto prevent overwriting another change to the health check.- Parameters:
healthCheckVersion- The version of the health check. You can optionally pass this value in a call toUpdateHealthCheckto prevent overwriting another change to the health check.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setCloudWatchAlarmConfiguration
public void setCloudWatchAlarmConfiguration(CloudWatchAlarmConfiguration cloudWatchAlarmConfiguration)
For CLOUDWATCH_METRIC health checks, a complex type that contains information about the CloudWatch alarm that you're associating with the health check.
- Parameters:
cloudWatchAlarmConfiguration- For CLOUDWATCH_METRIC health checks, a complex type that contains information about the CloudWatch alarm that you're associating with the health check.
-
getCloudWatchAlarmConfiguration
public CloudWatchAlarmConfiguration getCloudWatchAlarmConfiguration()
For CLOUDWATCH_METRIC health checks, a complex type that contains information about the CloudWatch alarm that you're associating with the health check.
- Returns:
- For CLOUDWATCH_METRIC health checks, a complex type that contains information about the CloudWatch alarm that you're associating with the health check.
-
withCloudWatchAlarmConfiguration
public HealthCheck withCloudWatchAlarmConfiguration(CloudWatchAlarmConfiguration cloudWatchAlarmConfiguration)
For CLOUDWATCH_METRIC health checks, a complex type that contains information about the CloudWatch alarm that you're associating with the health check.
- Parameters:
cloudWatchAlarmConfiguration- For CLOUDWATCH_METRIC health checks, a complex type that contains information about the CloudWatch alarm that you're associating with the health check.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
toString
public String toString()
Returns a string representation of this object; useful for testing and debugging.- Overrides:
toStringin classObject- Returns:
- A string representation of this object.
- See Also:
Object.toString()
-
clone
public HealthCheck clone()
-
-