* Unique identifier of the signing job. *
*/ private String jobId; /** ** The AWS account ID of the job owner. *
*/ private String jobOwner; /** ** Information including the signing profile ARN and the signing job ID. Clients use metadata to signature records, * for example, as annotations added to the signature manifest inside an OCI registry. *
*/ private java.util.Map* A cryptographic signature. *
*/ private java.nio.ByteBuffer signature; /** ** Unique identifier of the signing job. *
* * @param jobId * Unique identifier of the signing job. */ public void setJobId(String jobId) { this.jobId = jobId; } /** ** Unique identifier of the signing job. *
* * @return Unique identifier of the signing job. */ public String getJobId() { return this.jobId; } /** ** Unique identifier of the signing job. *
* * @param jobId * Unique identifier of the signing job. * @return Returns a reference to this object so that method calls can be chained together. */ public SignPayloadResult withJobId(String jobId) { setJobId(jobId); return this; } /** ** The AWS account ID of the job owner. *
* * @param jobOwner * The AWS account ID of the job owner. */ public void setJobOwner(String jobOwner) { this.jobOwner = jobOwner; } /** ** The AWS account ID of the job owner. *
* * @return The AWS account ID of the job owner. */ public String getJobOwner() { return this.jobOwner; } /** ** The AWS account ID of the job owner. *
* * @param jobOwner * The AWS account ID of the job owner. * @return Returns a reference to this object so that method calls can be chained together. */ public SignPayloadResult withJobOwner(String jobOwner) { setJobOwner(jobOwner); return this; } /** ** Information including the signing profile ARN and the signing job ID. Clients use metadata to signature records, * for example, as annotations added to the signature manifest inside an OCI registry. *
* * @return Information including the signing profile ARN and the signing job ID. Clients use metadata to signature * records, for example, as annotations added to the signature manifest inside an OCI registry. */ public java.util.Map* Information including the signing profile ARN and the signing job ID. Clients use metadata to signature records, * for example, as annotations added to the signature manifest inside an OCI registry. *
* * @param metadata * Information including the signing profile ARN and the signing job ID. Clients use metadata to signature * records, for example, as annotations added to the signature manifest inside an OCI registry. */ public void setMetadata(java.util.Map* Information including the signing profile ARN and the signing job ID. Clients use metadata to signature records, * for example, as annotations added to the signature manifest inside an OCI registry. *
* * @param metadata * Information including the signing profile ARN and the signing job ID. Clients use metadata to signature * records, for example, as annotations added to the signature manifest inside an OCI registry. * @return Returns a reference to this object so that method calls can be chained together. */ public SignPayloadResult withMetadata(java.util.Map* A cryptographic signature. *
** 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 signature * A cryptographic signature. */ public void setSignature(java.nio.ByteBuffer signature) { this.signature = signature; } /** ** A cryptographic signature. *
** {@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 A cryptographic signature. */ public java.nio.ByteBuffer getSignature() { return this.signature; } /** ** A cryptographic signature. *
** 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 signature * A cryptographic signature. * @return Returns a reference to this object so that method calls can be chained together. */ public SignPayloadResult withSignature(java.nio.ByteBuffer signature) { setSignature(signature); 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 (getJobId() != null) sb.append("JobId: ").append(getJobId()).append(","); if (getJobOwner() != null) sb.append("JobOwner: ").append(getJobOwner()).append(","); if (getMetadata() != null) sb.append("Metadata: ").append(getMetadata()).append(","); if (getSignature() != null) sb.append("Signature: ").append(getSignature()); sb.append("}"); return sb.toString(); } @Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof SignPayloadResult == false) return false; SignPayloadResult other = (SignPayloadResult) obj; if (other.getJobId() == null ^ this.getJobId() == null) return false; if (other.getJobId() != null && other.getJobId().equals(this.getJobId()) == false) return false; if (other.getJobOwner() == null ^ this.getJobOwner() == null) return false; if (other.getJobOwner() != null && other.getJobOwner().equals(this.getJobOwner()) == false) return false; if (other.getMetadata() == null ^ this.getMetadata() == null) return false; if (other.getMetadata() != null && other.getMetadata().equals(this.getMetadata()) == false) return false; if (other.getSignature() == null ^ this.getSignature() == null) return false; if (other.getSignature() != null && other.getSignature().equals(this.getSignature()) == false) return false; return true; } @Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getJobId() == null) ? 0 : getJobId().hashCode()); hashCode = prime * hashCode + ((getJobOwner() == null) ? 0 : getJobOwner().hashCode()); hashCode = prime * hashCode + ((getMetadata() == null) ? 0 : getMetadata().hashCode()); hashCode = prime * hashCode + ((getSignature() == null) ? 0 : getSignature().hashCode()); return hashCode; } @Override public SignPayloadResult clone() { try { return (SignPayloadResult) super.clone(); } catch (CloneNotSupportedException e) { throw new IllegalStateException("Got a CloneNotSupportedException from Object.clone() " + "even though we're Cloneable!", e); } } }