All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.amazonaws.services.datazone.model.Deployment Maven / Gradle / Ivy

Go to download

The AWS Java SDK for Amazon DataZone module holds the client classes that are used for communicating with Amazon DataZone Service

There is a newer version: 1.12.780
Show newest version
/*
 * Copyright 2019-2024 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.datazone.model;

import java.io.Serializable;
import javax.annotation.Generated;
import com.amazonaws.protocol.StructuredPojo;
import com.amazonaws.protocol.ProtocolMarshaller;

/**
 * 

* The details of the last deployment of the environment. *

* * @see AWS API * Documentation */ @Generated("com.amazonaws:aws-java-sdk-code-generator") public class Deployment implements Serializable, Cloneable, StructuredPojo { /** *

* The identifier of the last deployment of the environment. *

*/ private String deploymentId; /** *

* The status of the last deployment of the environment. *

*/ private String deploymentStatus; /** *

* The type of the last deployment of the environment. *

*/ private String deploymentType; /** *

* The failure reason of the last deployment of the environment. *

*/ private EnvironmentError failureReason; /** *

* Specifies whether the last deployment of the environment is complete. *

*/ private Boolean isDeploymentComplete; /** *

* The messages of the last deployment of the environment. *

*/ private java.util.List messages; /** *

* The identifier of the last deployment of the environment. *

* * @param deploymentId * The identifier of the last deployment of the environment. */ public void setDeploymentId(String deploymentId) { this.deploymentId = deploymentId; } /** *

* The identifier of the last deployment of the environment. *

* * @return The identifier of the last deployment of the environment. */ public String getDeploymentId() { return this.deploymentId; } /** *

* The identifier of the last deployment of the environment. *

* * @param deploymentId * The identifier of the last deployment of the environment. * @return Returns a reference to this object so that method calls can be chained together. */ public Deployment withDeploymentId(String deploymentId) { setDeploymentId(deploymentId); return this; } /** *

* The status of the last deployment of the environment. *

* * @param deploymentStatus * The status of the last deployment of the environment. * @see DeploymentStatus */ public void setDeploymentStatus(String deploymentStatus) { this.deploymentStatus = deploymentStatus; } /** *

* The status of the last deployment of the environment. *

* * @return The status of the last deployment of the environment. * @see DeploymentStatus */ public String getDeploymentStatus() { return this.deploymentStatus; } /** *

* The status of the last deployment of the environment. *

* * @param deploymentStatus * The status of the last deployment of the environment. * @return Returns a reference to this object so that method calls can be chained together. * @see DeploymentStatus */ public Deployment withDeploymentStatus(String deploymentStatus) { setDeploymentStatus(deploymentStatus); return this; } /** *

* The status of the last deployment of the environment. *

* * @param deploymentStatus * The status of the last deployment of the environment. * @return Returns a reference to this object so that method calls can be chained together. * @see DeploymentStatus */ public Deployment withDeploymentStatus(DeploymentStatus deploymentStatus) { this.deploymentStatus = deploymentStatus.toString(); return this; } /** *

* The type of the last deployment of the environment. *

* * @param deploymentType * The type of the last deployment of the environment. * @see DeploymentType */ public void setDeploymentType(String deploymentType) { this.deploymentType = deploymentType; } /** *

* The type of the last deployment of the environment. *

* * @return The type of the last deployment of the environment. * @see DeploymentType */ public String getDeploymentType() { return this.deploymentType; } /** *

* The type of the last deployment of the environment. *

* * @param deploymentType * The type of the last deployment of the environment. * @return Returns a reference to this object so that method calls can be chained together. * @see DeploymentType */ public Deployment withDeploymentType(String deploymentType) { setDeploymentType(deploymentType); return this; } /** *

* The type of the last deployment of the environment. *

* * @param deploymentType * The type of the last deployment of the environment. * @return Returns a reference to this object so that method calls can be chained together. * @see DeploymentType */ public Deployment withDeploymentType(DeploymentType deploymentType) { this.deploymentType = deploymentType.toString(); return this; } /** *

* The failure reason of the last deployment of the environment. *

* * @param failureReason * The failure reason of the last deployment of the environment. */ public void setFailureReason(EnvironmentError failureReason) { this.failureReason = failureReason; } /** *

* The failure reason of the last deployment of the environment. *

* * @return The failure reason of the last deployment of the environment. */ public EnvironmentError getFailureReason() { return this.failureReason; } /** *

* The failure reason of the last deployment of the environment. *

* * @param failureReason * The failure reason of the last deployment of the environment. * @return Returns a reference to this object so that method calls can be chained together. */ public Deployment withFailureReason(EnvironmentError failureReason) { setFailureReason(failureReason); return this; } /** *

* Specifies whether the last deployment of the environment is complete. *

* * @param isDeploymentComplete * Specifies whether the last deployment of the environment is complete. */ public void setIsDeploymentComplete(Boolean isDeploymentComplete) { this.isDeploymentComplete = isDeploymentComplete; } /** *

* Specifies whether the last deployment of the environment is complete. *

* * @return Specifies whether the last deployment of the environment is complete. */ public Boolean getIsDeploymentComplete() { return this.isDeploymentComplete; } /** *

* Specifies whether the last deployment of the environment is complete. *

* * @param isDeploymentComplete * Specifies whether the last deployment of the environment is complete. * @return Returns a reference to this object so that method calls can be chained together. */ public Deployment withIsDeploymentComplete(Boolean isDeploymentComplete) { setIsDeploymentComplete(isDeploymentComplete); return this; } /** *

* Specifies whether the last deployment of the environment is complete. *

* * @return Specifies whether the last deployment of the environment is complete. */ public Boolean isDeploymentComplete() { return this.isDeploymentComplete; } /** *

* The messages of the last deployment of the environment. *

* * @return The messages of the last deployment of the environment. */ public java.util.List getMessages() { return messages; } /** *

* The messages of the last deployment of the environment. *

* * @param messages * The messages of the last deployment of the environment. */ public void setMessages(java.util.Collection messages) { if (messages == null) { this.messages = null; return; } this.messages = new java.util.ArrayList(messages); } /** *

* The messages of the last deployment of the environment. *

*

* NOTE: This method appends the values to the existing list (if any). Use * {@link #setMessages(java.util.Collection)} or {@link #withMessages(java.util.Collection)} if you want to override * the existing values. *

* * @param messages * The messages of the last deployment of the environment. * @return Returns a reference to this object so that method calls can be chained together. */ public Deployment withMessages(String... messages) { if (this.messages == null) { setMessages(new java.util.ArrayList(messages.length)); } for (String ele : messages) { this.messages.add(ele); } return this; } /** *

* The messages of the last deployment of the environment. *

* * @param messages * The messages of the last deployment of the environment. * @return Returns a reference to this object so that method calls can be chained together. */ public Deployment withMessages(java.util.Collection messages) { setMessages(messages); 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 (getDeploymentId() != null) sb.append("DeploymentId: ").append(getDeploymentId()).append(","); if (getDeploymentStatus() != null) sb.append("DeploymentStatus: ").append(getDeploymentStatus()).append(","); if (getDeploymentType() != null) sb.append("DeploymentType: ").append(getDeploymentType()).append(","); if (getFailureReason() != null) sb.append("FailureReason: ").append(getFailureReason()).append(","); if (getIsDeploymentComplete() != null) sb.append("IsDeploymentComplete: ").append(getIsDeploymentComplete()).append(","); if (getMessages() != null) sb.append("Messages: ").append(getMessages()); sb.append("}"); return sb.toString(); } @Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof Deployment == false) return false; Deployment other = (Deployment) obj; if (other.getDeploymentId() == null ^ this.getDeploymentId() == null) return false; if (other.getDeploymentId() != null && other.getDeploymentId().equals(this.getDeploymentId()) == false) return false; if (other.getDeploymentStatus() == null ^ this.getDeploymentStatus() == null) return false; if (other.getDeploymentStatus() != null && other.getDeploymentStatus().equals(this.getDeploymentStatus()) == false) return false; if (other.getDeploymentType() == null ^ this.getDeploymentType() == null) return false; if (other.getDeploymentType() != null && other.getDeploymentType().equals(this.getDeploymentType()) == false) return false; if (other.getFailureReason() == null ^ this.getFailureReason() == null) return false; if (other.getFailureReason() != null && other.getFailureReason().equals(this.getFailureReason()) == false) return false; if (other.getIsDeploymentComplete() == null ^ this.getIsDeploymentComplete() == null) return false; if (other.getIsDeploymentComplete() != null && other.getIsDeploymentComplete().equals(this.getIsDeploymentComplete()) == false) return false; if (other.getMessages() == null ^ this.getMessages() == null) return false; if (other.getMessages() != null && other.getMessages().equals(this.getMessages()) == false) return false; return true; } @Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getDeploymentId() == null) ? 0 : getDeploymentId().hashCode()); hashCode = prime * hashCode + ((getDeploymentStatus() == null) ? 0 : getDeploymentStatus().hashCode()); hashCode = prime * hashCode + ((getDeploymentType() == null) ? 0 : getDeploymentType().hashCode()); hashCode = prime * hashCode + ((getFailureReason() == null) ? 0 : getFailureReason().hashCode()); hashCode = prime * hashCode + ((getIsDeploymentComplete() == null) ? 0 : getIsDeploymentComplete().hashCode()); hashCode = prime * hashCode + ((getMessages() == null) ? 0 : getMessages().hashCode()); return hashCode; } @Override public Deployment clone() { try { return (Deployment) super.clone(); } catch (CloneNotSupportedException e) { throw new IllegalStateException("Got a CloneNotSupportedException from Object.clone() " + "even though we're Cloneable!", e); } } @com.amazonaws.annotation.SdkInternalApi @Override public void marshall(ProtocolMarshaller protocolMarshaller) { com.amazonaws.services.datazone.model.transform.DeploymentMarshaller.getInstance().marshall(this, protocolMarshaller); } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy