* License consumption token. *
*/ private String licenseConsumptionToken; /** ** Date and time at which the license consumption expires. *
*/ private String expiration; /** ** License consumption token. *
* * @param licenseConsumptionToken * License consumption token. */ public void setLicenseConsumptionToken(String licenseConsumptionToken) { this.licenseConsumptionToken = licenseConsumptionToken; } /** ** License consumption token. *
* * @return License consumption token. */ public String getLicenseConsumptionToken() { return this.licenseConsumptionToken; } /** ** License consumption token. *
* * @param licenseConsumptionToken * License consumption token. * @return Returns a reference to this object so that method calls can be chained together. */ public ExtendLicenseConsumptionResult withLicenseConsumptionToken(String licenseConsumptionToken) { setLicenseConsumptionToken(licenseConsumptionToken); return this; } /** ** Date and time at which the license consumption expires. *
* * @param expiration * Date and time at which the license consumption expires. */ public void setExpiration(String expiration) { this.expiration = expiration; } /** ** Date and time at which the license consumption expires. *
* * @return Date and time at which the license consumption expires. */ public String getExpiration() { return this.expiration; } /** ** Date and time at which the license consumption expires. *
* * @param expiration * Date and time at which the license consumption expires. * @return Returns a reference to this object so that method calls can be chained together. */ public ExtendLicenseConsumptionResult withExpiration(String expiration) { setExpiration(expiration); 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 (getLicenseConsumptionToken() != null) sb.append("LicenseConsumptionToken: ").append(getLicenseConsumptionToken()).append(","); if (getExpiration() != null) sb.append("Expiration: ").append(getExpiration()); sb.append("}"); return sb.toString(); } @Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof ExtendLicenseConsumptionResult == false) return false; ExtendLicenseConsumptionResult other = (ExtendLicenseConsumptionResult) obj; if (other.getLicenseConsumptionToken() == null ^ this.getLicenseConsumptionToken() == null) return false; if (other.getLicenseConsumptionToken() != null && other.getLicenseConsumptionToken().equals(this.getLicenseConsumptionToken()) == false) return false; if (other.getExpiration() == null ^ this.getExpiration() == null) return false; if (other.getExpiration() != null && other.getExpiration().equals(this.getExpiration()) == false) return false; return true; } @Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getLicenseConsumptionToken() == null) ? 0 : getLicenseConsumptionToken().hashCode()); hashCode = prime * hashCode + ((getExpiration() == null) ? 0 : getExpiration().hashCode()); return hashCode; } @Override public ExtendLicenseConsumptionResult clone() { try { return (ExtendLicenseConsumptionResult) super.clone(); } catch (CloneNotSupportedException e) { throw new IllegalStateException("Got a CloneNotSupportedException from Object.clone() " + "even though we're Cloneable!", e); } } }