* The binary file, or asset, that is downloaded. *
*/ private java.io.InputStream asset; /** ** The name of the asset that is downloaded. *
*/ private String assetName; /** *
* A string that contains the package version (for example, 3.5.2
).
*
* The name of the package version revision that contains the downloaded asset. *
*/ private String packageVersionRevision; /** ** The binary file, or asset, that is downloaded. *
* * @param asset * The binary file, or asset, that is downloaded. */ public void setAsset(java.io.InputStream asset) { this.asset = asset; } /** ** The binary file, or asset, that is downloaded. *
* * @return The binary file, or asset, that is downloaded. */ public java.io.InputStream getAsset() { return this.asset; } /** ** The binary file, or asset, that is downloaded. *
* * @param asset * The binary file, or asset, that is downloaded. * @return Returns a reference to this object so that method calls can be chained together. */ public GetPackageVersionAssetResult withAsset(java.io.InputStream asset) { setAsset(asset); return this; } /** ** The name of the asset that is downloaded. *
* * @param assetName * The name of the asset that is downloaded. */ public void setAssetName(String assetName) { this.assetName = assetName; } /** ** The name of the asset that is downloaded. *
* * @return The name of the asset that is downloaded. */ public String getAssetName() { return this.assetName; } /** ** The name of the asset that is downloaded. *
* * @param assetName * The name of the asset that is downloaded. * @return Returns a reference to this object so that method calls can be chained together. */ public GetPackageVersionAssetResult withAssetName(String assetName) { setAssetName(assetName); return this; } /** *
* A string that contains the package version (for example, 3.5.2
).
*
3.5.2
).
*/
public void setPackageVersion(String packageVersion) {
this.packageVersion = packageVersion;
}
/**
*
* A string that contains the package version (for example, 3.5.2
).
*
3.5.2
).
*/
public String getPackageVersion() {
return this.packageVersion;
}
/**
*
* A string that contains the package version (for example, 3.5.2
).
*
3.5.2
).
* @return Returns a reference to this object so that method calls can be chained together.
*/
public GetPackageVersionAssetResult withPackageVersion(String packageVersion) {
setPackageVersion(packageVersion);
return this;
}
/**
* * The name of the package version revision that contains the downloaded asset. *
* * @param packageVersionRevision * The name of the package version revision that contains the downloaded asset. */ public void setPackageVersionRevision(String packageVersionRevision) { this.packageVersionRevision = packageVersionRevision; } /** ** The name of the package version revision that contains the downloaded asset. *
* * @return The name of the package version revision that contains the downloaded asset. */ public String getPackageVersionRevision() { return this.packageVersionRevision; } /** ** The name of the package version revision that contains the downloaded asset. *
* * @param packageVersionRevision * The name of the package version revision that contains the downloaded asset. * @return Returns a reference to this object so that method calls can be chained together. */ public GetPackageVersionAssetResult withPackageVersionRevision(String packageVersionRevision) { setPackageVersionRevision(packageVersionRevision); 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 (getAsset() != null) sb.append("Asset: ").append(getAsset()).append(","); if (getAssetName() != null) sb.append("AssetName: ").append(getAssetName()).append(","); if (getPackageVersion() != null) sb.append("PackageVersion: ").append(getPackageVersion()).append(","); if (getPackageVersionRevision() != null) sb.append("PackageVersionRevision: ").append(getPackageVersionRevision()); sb.append("}"); return sb.toString(); } @Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof GetPackageVersionAssetResult == false) return false; GetPackageVersionAssetResult other = (GetPackageVersionAssetResult) obj; if (other.getAsset() == null ^ this.getAsset() == null) return false; if (other.getAsset() != null && other.getAsset().equals(this.getAsset()) == false) return false; if (other.getAssetName() == null ^ this.getAssetName() == null) return false; if (other.getAssetName() != null && other.getAssetName().equals(this.getAssetName()) == false) return false; if (other.getPackageVersion() == null ^ this.getPackageVersion() == null) return false; if (other.getPackageVersion() != null && other.getPackageVersion().equals(this.getPackageVersion()) == false) return false; if (other.getPackageVersionRevision() == null ^ this.getPackageVersionRevision() == null) return false; if (other.getPackageVersionRevision() != null && other.getPackageVersionRevision().equals(this.getPackageVersionRevision()) == false) return false; return true; } @Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getAsset() == null) ? 0 : getAsset().hashCode()); hashCode = prime * hashCode + ((getAssetName() == null) ? 0 : getAssetName().hashCode()); hashCode = prime * hashCode + ((getPackageVersion() == null) ? 0 : getPackageVersion().hashCode()); hashCode = prime * hashCode + ((getPackageVersionRevision() == null) ? 0 : getPackageVersionRevision().hashCode()); return hashCode; } @Override public GetPackageVersionAssetResult clone() { try { return (GetPackageVersionAssetResult) super.clone(); } catch (CloneNotSupportedException e) { throw new IllegalStateException("Got a CloneNotSupportedException from Object.clone() " + "even though we're Cloneable!", e); } } }