* Indicates the media type of the resource. *
*/ private String contentType; /** ** Content of the network service descriptor in the network package. *
*/ private java.nio.ByteBuffer nsdContent; /** ** Indicates the media type of the resource. *
* * @param contentType * Indicates the media type of the resource. * @see PackageContentType */ public void setContentType(String contentType) { this.contentType = contentType; } /** ** Indicates the media type of the resource. *
* * @return Indicates the media type of the resource. * @see PackageContentType */ public String getContentType() { return this.contentType; } /** ** Indicates the media type of the resource. *
* * @param contentType * Indicates the media type of the resource. * @return Returns a reference to this object so that method calls can be chained together. * @see PackageContentType */ public GetSolNetworkPackageContentResult withContentType(String contentType) { setContentType(contentType); return this; } /** ** Indicates the media type of the resource. *
* * @param contentType * Indicates the media type of the resource. * @return Returns a reference to this object so that method calls can be chained together. * @see PackageContentType */ public GetSolNetworkPackageContentResult withContentType(PackageContentType contentType) { this.contentType = contentType.toString(); return this; } /** ** Content of the network service descriptor in the network package. *
** The AWS SDK for Java performs a Base64 encoding on this field before sending this request to the AWS service. * Users of the SDK should not perform Base64 encoding on this field. *
** Warning: ByteBuffers returned by the SDK are mutable. Changes to the content or position of the byte buffer will * be seen by all objects that have a reference to this object. It is recommended to call ByteBuffer.duplicate() or * ByteBuffer.asReadOnlyBuffer() before using or reading from the buffer. This behavior will be changed in a future * major version of the SDK. *
* * @param nsdContent * Content of the network service descriptor in the network package. */ public void setNsdContent(java.nio.ByteBuffer nsdContent) { this.nsdContent = nsdContent; } /** ** Content of the network service descriptor in the network package. *
** {@code ByteBuffer}s are stateful. Calling their {@code get} methods changes their {@code position}. We recommend * using {@link java.nio.ByteBuffer#asReadOnlyBuffer()} to create a read-only view of the buffer with an independent * {@code position}, and calling {@code get} methods on this rather than directly on the returned {@code ByteBuffer}. * Doing so will ensure that anyone else using the {@code ByteBuffer} will not be affected by changes to the * {@code position}. *
* * @return Content of the network service descriptor in the network package. */ public java.nio.ByteBuffer getNsdContent() { return this.nsdContent; } /** ** Content of the network service descriptor in the network package. *
** The AWS SDK for Java performs a Base64 encoding on this field before sending this request to the AWS service. * Users of the SDK should not perform Base64 encoding on this field. *
** Warning: ByteBuffers returned by the SDK are mutable. Changes to the content or position of the byte buffer will * be seen by all objects that have a reference to this object. It is recommended to call ByteBuffer.duplicate() or * ByteBuffer.asReadOnlyBuffer() before using or reading from the buffer. This behavior will be changed in a future * major version of the SDK. *
* * @param nsdContent * Content of the network service descriptor in the network package. * @return Returns a reference to this object so that method calls can be chained together. */ public GetSolNetworkPackageContentResult withNsdContent(java.nio.ByteBuffer nsdContent) { setNsdContent(nsdContent); 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 (getContentType() != null) sb.append("ContentType: ").append(getContentType()).append(","); if (getNsdContent() != null) sb.append("NsdContent: ").append(getNsdContent()); sb.append("}"); return sb.toString(); } @Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof GetSolNetworkPackageContentResult == false) return false; GetSolNetworkPackageContentResult other = (GetSolNetworkPackageContentResult) obj; if (other.getContentType() == null ^ this.getContentType() == null) return false; if (other.getContentType() != null && other.getContentType().equals(this.getContentType()) == false) return false; if (other.getNsdContent() == null ^ this.getNsdContent() == null) return false; if (other.getNsdContent() != null && other.getNsdContent().equals(this.getNsdContent()) == false) return false; return true; } @Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getContentType() == null) ? 0 : getContentType().hashCode()); hashCode = prime * hashCode + ((getNsdContent() == null) ? 0 : getNsdContent().hashCode()); return hashCode; } @Override public GetSolNetworkPackageContentResult clone() { try { return (GetSolNetworkPackageContentResult) super.clone(); } catch (CloneNotSupportedException e) { throw new IllegalStateException("Got a CloneNotSupportedException from Object.clone() " + "even though we're Cloneable!", e); } } }