* The identifier for the uploaded code resource. *
*/ private String codeArtifactId; /** ** A set of key-value pairs that contain the required headers when uploading your resource. *
*/ private java.util.Map
* A pre-signed S3 URL. You can upload the code file you want to scan and add the required
* requestHeaders
using any HTTP client.
*
* The identifier for the uploaded code resource. *
* * @param codeArtifactId * The identifier for the uploaded code resource. */ public void setCodeArtifactId(String codeArtifactId) { this.codeArtifactId = codeArtifactId; } /** ** The identifier for the uploaded code resource. *
* * @return The identifier for the uploaded code resource. */ public String getCodeArtifactId() { return this.codeArtifactId; } /** ** The identifier for the uploaded code resource. *
* * @param codeArtifactId * The identifier for the uploaded code resource. * @return Returns a reference to this object so that method calls can be chained together. */ public CreateUploadUrlResult withCodeArtifactId(String codeArtifactId) { setCodeArtifactId(codeArtifactId); return this; } /** ** A set of key-value pairs that contain the required headers when uploading your resource. *
* * @return A set of key-value pairs that contain the required headers when uploading your resource. */ public java.util.Map* A set of key-value pairs that contain the required headers when uploading your resource. *
* * @param requestHeaders * A set of key-value pairs that contain the required headers when uploading your resource. */ public void setRequestHeaders(java.util.Map* A set of key-value pairs that contain the required headers when uploading your resource. *
* * @param requestHeaders * A set of key-value pairs that contain the required headers when uploading your resource. * @return Returns a reference to this object so that method calls can be chained together. */ public CreateUploadUrlResult withRequestHeaders(java.util.Map
* A pre-signed S3 URL. You can upload the code file you want to scan and add the required
* requestHeaders
using any HTTP client.
*
requestHeaders
using any HTTP client.
*/
public void setS3Url(String s3Url) {
this.s3Url = s3Url;
}
/**
*
* A pre-signed S3 URL. You can upload the code file you want to scan and add the required
* requestHeaders
using any HTTP client.
*
requestHeaders
using any HTTP client.
*/
public String getS3Url() {
return this.s3Url;
}
/**
*
* A pre-signed S3 URL. You can upload the code file you want to scan and add the required
* requestHeaders
using any HTTP client.
*
requestHeaders
using any HTTP client.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public CreateUploadUrlResult withS3Url(String s3Url) {
setS3Url(s3Url);
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 (getCodeArtifactId() != null)
sb.append("CodeArtifactId: ").append(getCodeArtifactId()).append(",");
if (getRequestHeaders() != null)
sb.append("RequestHeaders: ").append("***Sensitive Data Redacted***").append(",");
if (getS3Url() != null)
sb.append("S3Url: ").append("***Sensitive Data Redacted***");
sb.append("}");
return sb.toString();
}
@Override
public boolean equals(Object obj) {
if (this == obj)
return true;
if (obj == null)
return false;
if (obj instanceof CreateUploadUrlResult == false)
return false;
CreateUploadUrlResult other = (CreateUploadUrlResult) obj;
if (other.getCodeArtifactId() == null ^ this.getCodeArtifactId() == null)
return false;
if (other.getCodeArtifactId() != null && other.getCodeArtifactId().equals(this.getCodeArtifactId()) == false)
return false;
if (other.getRequestHeaders() == null ^ this.getRequestHeaders() == null)
return false;
if (other.getRequestHeaders() != null && other.getRequestHeaders().equals(this.getRequestHeaders()) == false)
return false;
if (other.getS3Url() == null ^ this.getS3Url() == null)
return false;
if (other.getS3Url() != null && other.getS3Url().equals(this.getS3Url()) == false)
return false;
return true;
}
@Override
public int hashCode() {
final int prime = 31;
int hashCode = 1;
hashCode = prime * hashCode + ((getCodeArtifactId() == null) ? 0 : getCodeArtifactId().hashCode());
hashCode = prime * hashCode + ((getRequestHeaders() == null) ? 0 : getRequestHeaders().hashCode());
hashCode = prime * hashCode + ((getS3Url() == null) ? 0 : getS3Url().hashCode());
return hashCode;
}
@Override
public CreateUploadUrlResult clone() {
try {
return (CreateUploadUrlResult) super.clone();
} catch (CloneNotSupportedException e) {
throw new IllegalStateException("Got a CloneNotSupportedException from Object.clone() " + "even though we're Cloneable!", e);
}
}
}