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 HealthCheck
clone()
boolean
equals(Object obj)
String
getCallerReference()
A unique string that identifies the request to create the health check.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.HealthCheckConfig
getHealthCheckConfig()
A complex type that contains the health check configuration.Long
getHealthCheckVersion()
The version of the health check.String
getId()
The ID of the specified health check.int
hashCode()
void
setCallerReference(String callerReference)
A unique string that identifies the request to create the health check.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.void
setHealthCheckConfig(HealthCheckConfig healthCheckConfig)
A complex type that contains the health check configuration.void
setHealthCheckVersion(Long healthCheckVersion)
The version of the health check.void
setId(String id)
The ID of the specified health check.String
toString()
Returns a string representation of this object; useful for testing and debugging.HealthCheck
withCallerReference(String callerReference)
A unique string that identifies the request to create the health check.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.HealthCheck
withHealthCheckConfig(HealthCheckConfig healthCheckConfig)
A complex type that contains the health check configuration.HealthCheck
withHealthCheckVersion(Long healthCheckVersion)
The version of the health check.HealthCheck
withId(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
UpdateHealthCheck
to 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 toUpdateHealthCheck
to 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
UpdateHealthCheck
to 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
UpdateHealthCheck
to 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
UpdateHealthCheck
to 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 toUpdateHealthCheck
to 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:
toString
in classObject
- Returns:
- A string representation of this object.
- See Also:
Object.toString()
-
clone
public HealthCheck clone()
-
-