@Override
    public boolean equals(Object obj) {
        if (this == obj)
            return true;
        if (obj == null)
            return false;

        if (obj instanceof AddOnRequest == false)
            return false;
        AddOnRequest other = (AddOnRequest) obj;
        if (other.getAddOnType() == null ^ this.getAddOnType() == null)
            return false;
        if (other.getAddOnType() != null && other.getAddOnType().equals(this.getAddOnType()) == false)
            return false;
        if (other.getAutoSnapshotAddOnRequest() == null ^ this.getAutoSnapshotAddOnRequest() == null)
            return false;
        if (other.getAutoSnapshotAddOnRequest() != null && other.getAutoSnapshotAddOnRequest().equals(this.getAutoSnapshotAddOnRequest()) == false)
            return false;
        if (other.getStopInstanceOnIdleRequest() == null ^ this.getStopInstanceOnIdleRequest() == null)
            return false;
        if (other.getStopInstanceOnIdleRequest() != null && other.getStopInstanceOnIdleRequest().equals(this.getStopInstanceOnIdleRequest()) == false)
            return false;
        return true;
    }
Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be
redacted from this string using a placeholder value.

@return A string representation of this object.

@see java.lang.Object#toString()
aws-java-sdk-lightsail/src/main/java/com/amazonaws/services/lightsail/model/AddOnRequest.java