* License usage details. *
*/ private LicenseUsage licenseUsage; /** ** License usage details. *
* * @param licenseUsage * License usage details. */ public void setLicenseUsage(LicenseUsage licenseUsage) { this.licenseUsage = licenseUsage; } /** ** License usage details. *
* * @return License usage details. */ public LicenseUsage getLicenseUsage() { return this.licenseUsage; } /** ** License usage details. *
* * @param licenseUsage * License usage details. * @return Returns a reference to this object so that method calls can be chained together. */ public GetLicenseUsageResult withLicenseUsage(LicenseUsage licenseUsage) { setLicenseUsage(licenseUsage); return this; } /** * 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() */ @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); if (getLicenseUsage() != null) sb.append("LicenseUsage: ").append(getLicenseUsage()); sb.append("}"); return sb.toString(); } @Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof GetLicenseUsageResult == false) return false; GetLicenseUsageResult other = (GetLicenseUsageResult) obj; if (other.getLicenseUsage() == null ^ this.getLicenseUsage() == null) return false; if (other.getLicenseUsage() != null && other.getLicenseUsage().equals(this.getLicenseUsage()) == false) return false; return true; } @Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getLicenseUsage() == null) ? 0 : getLicenseUsage().hashCode()); return hashCode; } @Override public GetLicenseUsageResult clone() { try { return (GetLicenseUsageResult) super.clone(); } catch (CloneNotSupportedException e) { throw new IllegalStateException("Got a CloneNotSupportedException from Object.clone() " + "even though we're Cloneable!", e); } } }