com.amazonaws.services.amplify.model.CreateDeploymentResult Maven / Gradle / Ivy
Show all versions of aws-java-sdk-amplify Show documentation
/*
* Copyright 2020-2025 Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with
* the License. A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
* CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions
* and limitations under the License.
*/
package com.amazonaws.services.amplify.model;
import java.io.Serializable;
import javax.annotation.Generated;
/**
*
* The result structure for the create a new deployment request.
*
*
* @see AWS API
* Documentation
*/
@Generated("com.amazonaws:aws-java-sdk-code-generator")
public class CreateDeploymentResult extends com.amazonaws.AmazonWebServiceResult implements Serializable, Cloneable {
/**
*
* The job ID for this deployment. will supply to start deployment api.
*
*/
private String jobId;
/**
*
* When the fileMap argument is provided in the request, fileUploadUrls will contain a map
* of file names to upload URLs.
*
*/
private java.util.Map fileUploadUrls;
/**
*
* When the fileMap argument is not provided in the request, this zipUploadUrl is
* returned.
*
*/
private String zipUploadUrl;
/**
*
* The job ID for this deployment. will supply to start deployment api.
*
*
* @param jobId
* The job ID for this deployment. will supply to start deployment api.
*/
public void setJobId(String jobId) {
this.jobId = jobId;
}
/**
*
* The job ID for this deployment. will supply to start deployment api.
*
*
* @return The job ID for this deployment. will supply to start deployment api.
*/
public String getJobId() {
return this.jobId;
}
/**
*
* The job ID for this deployment. will supply to start deployment api.
*
*
* @param jobId
* The job ID for this deployment. will supply to start deployment api.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public CreateDeploymentResult withJobId(String jobId) {
setJobId(jobId);
return this;
}
/**
*
* When the fileMap argument is provided in the request, fileUploadUrls will contain a map
* of file names to upload URLs.
*
*
* @return When the fileMap argument is provided in the request, fileUploadUrls will
* contain a map of file names to upload URLs.
*/
public java.util.Map getFileUploadUrls() {
return fileUploadUrls;
}
/**
*
* When the fileMap argument is provided in the request, fileUploadUrls will contain a map
* of file names to upload URLs.
*
*
* @param fileUploadUrls
* When the fileMap argument is provided in the request, fileUploadUrls will
* contain a map of file names to upload URLs.
*/
public void setFileUploadUrls(java.util.Map fileUploadUrls) {
this.fileUploadUrls = fileUploadUrls;
}
/**
*
* When the fileMap argument is provided in the request, fileUploadUrls will contain a map
* of file names to upload URLs.
*
*
* @param fileUploadUrls
* When the fileMap argument is provided in the request, fileUploadUrls will
* contain a map of file names to upload URLs.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public CreateDeploymentResult withFileUploadUrls(java.util.Map fileUploadUrls) {
setFileUploadUrls(fileUploadUrls);
return this;
}
/**
* Add a single FileUploadUrls entry
*
* @see CreateDeploymentResult#withFileUploadUrls
* @returns a reference to this object so that method calls can be chained together.
*/
public CreateDeploymentResult addFileUploadUrlsEntry(String key, String value) {
if (null == this.fileUploadUrls) {
this.fileUploadUrls = new java.util.HashMap();
}
if (this.fileUploadUrls.containsKey(key))
throw new IllegalArgumentException("Duplicated keys (" + key.toString() + ") are provided.");
this.fileUploadUrls.put(key, value);
return this;
}
/**
* Removes all the entries added into FileUploadUrls.
*
* @return Returns a reference to this object so that method calls can be chained together.
*/
public CreateDeploymentResult clearFileUploadUrlsEntries() {
this.fileUploadUrls = null;
return this;
}
/**
*
* When the fileMap argument is not provided in the request, this zipUploadUrl is
* returned.
*
*
* @param zipUploadUrl
* When the fileMap argument is not provided in the request, this zipUploadUrl is
* returned.
*/
public void setZipUploadUrl(String zipUploadUrl) {
this.zipUploadUrl = zipUploadUrl;
}
/**
*
* When the fileMap argument is not provided in the request, this zipUploadUrl is
* returned.
*
*
* @return When the fileMap argument is not provided in the request, this zipUploadUrl is
* returned.
*/
public String getZipUploadUrl() {
return this.zipUploadUrl;
}
/**
*
* When the fileMap argument is not provided in the request, this zipUploadUrl is
* returned.
*
*
* @param zipUploadUrl
* When the fileMap argument is not provided in the request, this zipUploadUrl is
* returned.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public CreateDeploymentResult withZipUploadUrl(String zipUploadUrl) {
setZipUploadUrl(zipUploadUrl);
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 (getFileUploadUrls() != null)
sb.append("FileUploadUrls: ").append(getFileUploadUrls()).append(",");
if (getZipUploadUrl() != null)
sb.append("ZipUploadUrl: ").append(getZipUploadUrl());
sb.append("}");
return sb.toString();
}
@Override
public boolean equals(Object obj) {
if (this == obj)
return true;
if (obj == null)
return false;
if (obj instanceof CreateDeploymentResult == false)
return false;
CreateDeploymentResult other = (CreateDeploymentResult) obj;
if (other.getJobId() == null ^ this.getJobId() == null)
return false;
if (other.getJobId() != null && other.getJobId().equals(this.getJobId()) == false)
return false;
if (other.getFileUploadUrls() == null ^ this.getFileUploadUrls() == null)
return false;
if (other.getFileUploadUrls() != null && other.getFileUploadUrls().equals(this.getFileUploadUrls()) == false)
return false;
if (other.getZipUploadUrl() == null ^ this.getZipUploadUrl() == null)
return false;
if (other.getZipUploadUrl() != null && other.getZipUploadUrl().equals(this.getZipUploadUrl()) == 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 + ((getFileUploadUrls() == null) ? 0 : getFileUploadUrls().hashCode());
hashCode = prime * hashCode + ((getZipUploadUrl() == null) ? 0 : getZipUploadUrl().hashCode());
return hashCode;
}
@Override
public CreateDeploymentResult clone() {
try {
return (CreateDeploymentResult) super.clone();
} catch (CloneNotSupportedException e) {
throw new IllegalStateException("Got a CloneNotSupportedException from Object.clone() " + "even though we're Cloneable!", e);
}
}
}