public class HealthCheck
extends java.lang.Object
implements java.io.Serializable, java.lang.Cloneable
A complex type that contains identifying information about the health check.
Modifier and Type | Field and Description |
---|---|
private java.lang.String |
callerReference
A unique string that identifies the request to create the health check.
|
private 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.
|
private HealthCheckConfig |
healthCheckConfig
A complex type that contains the health check configuration.
|
private java.lang.Long |
healthCheckVersion
The version of the health check.
|
private java.lang.String |
id
The ID of the specified health check.
|
Constructor and Description |
---|
HealthCheck() |
Modifier and Type | Method and Description |
---|---|
HealthCheck |
clone() |
boolean |
equals(java.lang.Object obj) |
java.lang.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.
|
java.lang.Long |
getHealthCheckVersion()
The version of the health check.
|
java.lang.String |
getId()
The ID of the specified health check.
|
int |
hashCode() |
void |
setCallerReference(java.lang.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(java.lang.Long healthCheckVersion)
The version of the health check.
|
void |
setId(java.lang.String id)
The ID of the specified health check.
|
java.lang.String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
HealthCheck |
withCallerReference(java.lang.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(java.lang.Long healthCheckVersion)
The version of the health check.
|
HealthCheck |
withId(java.lang.String id)
The ID of the specified health check.
|
private java.lang.String id
The ID of the specified health check.
private java.lang.String callerReference
A unique string that identifies the request to create the health check.
private HealthCheckConfig healthCheckConfig
A complex type that contains the health check configuration.
private java.lang.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.
private 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.
public void setId(java.lang.String id)
The ID of the specified health check.
id
- The ID of the specified health check.public java.lang.String getId()
The ID of the specified health check.
public HealthCheck withId(java.lang.String id)
The ID of the specified health check.
id
- The ID of the specified health check.public void setCallerReference(java.lang.String callerReference)
A unique string that identifies the request to create the health check.
callerReference
- A unique string that identifies the request to create the health
check.public java.lang.String getCallerReference()
A unique string that identifies the request to create the health check.
public HealthCheck withCallerReference(java.lang.String callerReference)
A unique string that identifies the request to create the health check.
callerReference
- A unique string that identifies the request to create the health
check.public void setHealthCheckConfig(HealthCheckConfig healthCheckConfig)
A complex type that contains the health check configuration.
healthCheckConfig
- A complex type that contains the health check configuration.public HealthCheckConfig getHealthCheckConfig()
A complex type that contains the health check configuration.
public HealthCheck withHealthCheckConfig(HealthCheckConfig healthCheckConfig)
A complex type that contains the health check configuration.
healthCheckConfig
- A complex type that contains the health check configuration.public void setHealthCheckVersion(java.lang.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.
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.public java.lang.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.
UpdateHealthCheck
to prevent
overwriting another change to the health check.public HealthCheck withHealthCheckVersion(java.lang.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.
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.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.
cloudWatchAlarmConfiguration
- For CLOUDWATCH_METRIC health checks, a complex type that contains
information about the CloudWatch alarm that you're associating
with the health check.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.
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.
cloudWatchAlarmConfiguration
- For CLOUDWATCH_METRIC health checks, a complex type that contains
information about the CloudWatch alarm that you're associating
with the health check.public java.lang.String toString()
toString
in class java.lang.Object
Object.toString()
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public HealthCheck clone()
clone
in class java.lang.Object