Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
  /*
   * Copyright 2010-2015 Amazon.com, Inc. or its affiliates. All Rights Reserved.
   * 
   * Licensed under the Apache License, Version 2.0 (the "License").
   * You may not use this file except in compliance with the License.
   * A copy of the License is located at
   * 
   *  http://aws.amazon.com/apache2.0
   * 
  * or in the "license" file accompanying this file. This file is distributed
  * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
  * express or implied. See the License for the specific language governing
  * permissions and limitations under the License.
  */
 package com.amazonaws.services.route53.model;
 

A complex type that contains the IP address of a Route 53 health checker and the reason for the health check status.

 
 public class HealthCheckObservation implements SerializableCloneable {

    
The IP address of the Route 53 health checker that performed the health check.

Constraints:
Length: 0 - 15
Pattern: ^(([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\.){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])$

 
     private String iPAddress;

    
A complex type that contains information about the health check status for the current observation.
 
     private StatusReport statusReport;

    
The IP address of the Route 53 health checker that performed the health check.

Constraints:
Length: 0 - 15
Pattern: ^(([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\.){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])$

Returns:
The IP address of the Route 53 health checker that performed the health check.
 
     public String getIPAddress() {
         return ;
     }
    
    
The IP address of the Route 53 health checker that performed the health check.

Constraints:
Length: 0 - 15
Pattern: ^(([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\.){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])$

Parameters:
iPAddress The IP address of the Route 53 health checker that performed the health check.
 
     public void setIPAddress(String iPAddress) {
         this. = iPAddress;
     }
    
    
The IP address of the Route 53 health checker that performed the health check.

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

Constraints:
Length: 0 - 15
Pattern: ^(([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\.){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])$

Parameters:
iPAddress The IP address of the Route 53 health checker that performed the health check.
Returns:
A reference to this updated object so that method calls can be chained together.
 
     public HealthCheckObservation withIPAddress(String iPAddress) {
         this. = iPAddress;
         return this;
     }

    
A complex type that contains information about the health check status for the current observation.

Returns:
A complex type that contains information about the health check status for the current observation.
    public StatusReport getStatusReport() {
        return ;
    }
    
    
A complex type that contains information about the health check status for the current observation.

Parameters:
statusReport A complex type that contains information about the health check status for the current observation.
    public void setStatusReport(StatusReport statusReport) {
        this. = statusReport;
    }
    
    
A complex type that contains information about the health check status for the current observation.

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

Parameters:
statusReport A complex type that contains information about the health check status for the current observation.
Returns:
A reference to this updated object so that method calls can be chained together.
    public HealthCheckObservation withStatusReport(StatusReport statusReport) {
        this. = statusReport;
        return this;
    }

    
Returns a string representation of this object; useful for testing and debugging.

Returns:
A string representation of this object.
See also:
java.lang.Object.toString()
    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append("{");
        if (getIPAddress() != nullsb.append("IPAddress: " + getIPAddress() + ",");
        if (getStatusReport() != nullsb.append("StatusReport: " + getStatusReport() );
        sb.append("}");
        return sb.toString();
    }
    
    @Override
    public int hashCode() {
        final int prime = 31;
        int hashCode = 1;
        
        hashCode = prime * hashCode + ((getIPAddress() == null) ? 0 : getIPAddress().hashCode()); 
        hashCode = prime * hashCode + ((getStatusReport() == null) ? 0 : getStatusReport().hashCode()); 
        return hashCode;
    }
    
    @Override
    public boolean equals(Object obj) {
        if (this == objreturn true;
        if (obj == nullreturn false;
        if (obj instanceof HealthCheckObservation == falsereturn false;
        HealthCheckObservation other = (HealthCheckObservation)obj;
        
        if (other.getIPAddress() == null ^ this.getIPAddress() == nullreturn false;
        if (other.getIPAddress() != null && other.getIPAddress().equals(this.getIPAddress()) == falsereturn false
        if (other.getStatusReport() == null ^ this.getStatusReport() == nullreturn false;
        if (other.getStatusReport() != null && other.getStatusReport().equals(this.getStatusReport()) == falsereturn false
        return true;
    }
    
    @Override
    public HealthCheckObservation clone() {
        try {
            return (HealthCheckObservationsuper.clone();
        
        } catch (CloneNotSupportedException e) {
            throw new IllegalStateException(
                    "Got a CloneNotSupportedException from Object.clone() "
                    + "even though we're Cloneable!",
                    e);
        }
        
    }
}
    
New to GrepCode? Check out our FAQ X