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

        if (obj instanceof CurrentInstance == false)
            return false;
        CurrentInstance other = (CurrentInstance) obj;
        if (other.getResourceId() == null ^ this.getResourceId() == null)
            return false;
        if (other.getResourceId() != null && other.getResourceId().equals(this.getResourceId()) == false)
            return false;
        if (other.getInstanceName() == null ^ this.getInstanceName() == null)
            return false;
        if (other.getInstanceName() != null && other.getInstanceName().equals(this.getInstanceName()) == false)
            return false;
        if (other.getTags() == null ^ this.getTags() == null)
            return false;
        if (other.getTags() != null && other.getTags().equals(this.getTags()) == false)
            return false;
        if (other.getResourceDetails() == null ^ this.getResourceDetails() == null)
            return false;
        if (other.getResourceDetails() != null && other.getResourceDetails().equals(this.getResourceDetails()) == false)
            return false;
        if (other.getResourceUtilization() == null ^ this.getResourceUtilization() == null)
            return false;
        if (other.getResourceUtilization() != null && other.getResourceUtilization().equals(this.getResourceUtilization()) == false)
            return false;
        if (other.getReservationCoveredHoursInLookbackPeriod() == null ^ this.getReservationCoveredHoursInLookbackPeriod() == null)
            return false;
        if (other.getReservationCoveredHoursInLookbackPeriod() != null
                && other.getReservationCoveredHoursInLookbackPeriod().equals(this.getReservationCoveredHoursInLookbackPeriod()) == false)
            return false;
        if (other.getSavingsPlansCoveredHoursInLookbackPeriod() == null ^ this.getSavingsPlansCoveredHoursInLookbackPeriod() == null)
            return false;
        if (other.getSavingsPlansCoveredHoursInLookbackPeriod() != null
                && other.getSavingsPlansCoveredHoursInLookbackPeriod().equals(this.getSavingsPlansCoveredHoursInLookbackPeriod()) == false)
            return false;
        if (other.getOnDemandHoursInLookbackPeriod() == null ^ this.getOnDemandHoursInLookbackPeriod() == null)
            return false;
        if (other.getOnDemandHoursInLookbackPeriod() != null
                && other.getOnDemandHoursInLookbackPeriod().equals(this.getOnDemandHoursInLookbackPeriod()) == false)
            return false;
        if (other.getTotalRunningHoursInLookbackPeriod() == null ^ this.getTotalRunningHoursInLookbackPeriod() == null)
            return false;
        if (other.getTotalRunningHoursInLookbackPeriod() != null
                && other.getTotalRunningHoursInLookbackPeriod().equals(this.getTotalRunningHoursInLookbackPeriod()) == false)
            return false;
        if (other.getMonthlyCost() == null ^ this.getMonthlyCost() == null)
            return false;
        if (other.getMonthlyCost() != null && other.getMonthlyCost().equals(this.getMonthlyCost()) == false)
            return false;
        if (other.getCurrencyCode() == null ^ this.getCurrencyCode() == null)
            return false;
        if (other.getCurrencyCode() != null && other.getCurrencyCode().equals(this.getCurrencyCode()) == 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-costexplorer/src/main/java/com/amazonaws/services/costexplorer/model/CurrentInstance.java