* A * PackageOriginConfiguration object that describes the origin configuration set for the package. It contains a * * PackageOriginRestrictions object that describes how new versions of the package can be introduced to the * repository. *
*/ private PackageOriginConfiguration originConfiguration; /** ** A * PackageOriginConfiguration object that describes the origin configuration set for the package. It contains a * * PackageOriginRestrictions object that describes how new versions of the package can be introduced to the * repository. *
* * @param originConfiguration * A PackageOriginConfiguration object that describes the origin configuration set for the package. It * contains a PackageOriginRestrictions object that describes how new versions of the package can be introduced to * the repository. */ public void setOriginConfiguration(PackageOriginConfiguration originConfiguration) { this.originConfiguration = originConfiguration; } /** ** A * PackageOriginConfiguration object that describes the origin configuration set for the package. It contains a * * PackageOriginRestrictions object that describes how new versions of the package can be introduced to the * repository. *
* * @return A PackageOriginConfiguration object that describes the origin configuration set for the package. It * contains a PackageOriginRestrictions object that describes how new versions of the package can be introduced to * the repository. */ public PackageOriginConfiguration getOriginConfiguration() { return this.originConfiguration; } /** ** A * PackageOriginConfiguration object that describes the origin configuration set for the package. It contains a * * PackageOriginRestrictions object that describes how new versions of the package can be introduced to the * repository. *
* * @param originConfiguration * A PackageOriginConfiguration object that describes the origin configuration set for the package. It * contains a PackageOriginRestrictions object that describes how new versions of the package can be introduced to * the repository. * @return Returns a reference to this object so that method calls can be chained together. */ public PutPackageOriginConfigurationResult withOriginConfiguration(PackageOriginConfiguration originConfiguration) { setOriginConfiguration(originConfiguration); 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 (getOriginConfiguration() != null) sb.append("OriginConfiguration: ").append(getOriginConfiguration()); sb.append("}"); return sb.toString(); } @Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof PutPackageOriginConfigurationResult == false) return false; PutPackageOriginConfigurationResult other = (PutPackageOriginConfigurationResult) obj; if (other.getOriginConfiguration() == null ^ this.getOriginConfiguration() == null) return false; if (other.getOriginConfiguration() != null && other.getOriginConfiguration().equals(this.getOriginConfiguration()) == false) return false; return true; } @Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getOriginConfiguration() == null) ? 0 : getOriginConfiguration().hashCode()); return hashCode; } @Override public PutPackageOriginConfigurationResult clone() { try { return (PutPackageOriginConfigurationResult) super.clone(); } catch (CloneNotSupportedException e) { throw new IllegalStateException("Got a CloneNotSupportedException from Object.clone() " + "even though we're Cloneable!", e); } } }