Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
  /*
   * Copyright 2010-2015 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.codedeploy.model;
 

Information about a deployment configuration.

 
 public class DeploymentConfigInfo implements SerializableCloneable {

    
The deployment configuration ID.
 
     private String deploymentConfigId;

    
The deployment configuration name.

Constraints:
Length: 1 - 100

 
     private String deploymentConfigName;

    
Information about the number or percentage of minimum healthy instances.
 
     private MinimumHealthyHosts minimumHealthyHosts;

    
The time that the deployment configuration was created.
 
     private java.util.Date createTime;

    
The deployment configuration ID.

Returns:
The deployment configuration ID.
 
     public String getDeploymentConfigId() {
         return ;
     }
    
    
The deployment configuration ID.

Parameters:
deploymentConfigId The deployment configuration ID.
 
     public void setDeploymentConfigId(String deploymentConfigId) {
         this. = deploymentConfigId;
     }
    
    
The deployment configuration ID.

Returns a reference to this object so that method calls can be chained together.

Parameters:
deploymentConfigId The deployment configuration ID.
Returns:
A reference to this updated object so that method calls can be chained together.
 
     public DeploymentConfigInfo withDeploymentConfigId(String deploymentConfigId) {
         this. = deploymentConfigId;
         return this;
     }

    
The deployment configuration name.

Constraints:
Length: 1 - 100

Returns:
The deployment configuration name.
 
     public String getDeploymentConfigName() {
         return ;
     }
    
    
The deployment configuration name.

Constraints:
Length: 1 - 100

Parameters:
deploymentConfigName The deployment configuration name.
    public void setDeploymentConfigName(String deploymentConfigName) {
        this. = deploymentConfigName;
    }
    
    
The deployment configuration name.

Returns a reference to this object so that method calls can be chained together.

Constraints:
Length: 1 - 100

Parameters:
deploymentConfigName The deployment configuration name.
Returns:
A reference to this updated object so that method calls can be chained together.
    public DeploymentConfigInfo withDeploymentConfigName(String deploymentConfigName) {
        this. = deploymentConfigName;
        return this;
    }

    
Information about the number or percentage of minimum healthy instances.

Returns:
Information about the number or percentage of minimum healthy instances.
        return ;
    }
    
    
Information about the number or percentage of minimum healthy instances.

Parameters:
minimumHealthyHosts Information about the number or percentage of minimum healthy instances.
    public void setMinimumHealthyHosts(MinimumHealthyHosts minimumHealthyHosts) {
        this. = minimumHealthyHosts;
    }
    
    
Information about the number or percentage of minimum healthy instances.

Returns a reference to this object so that method calls can be chained together.

Parameters:
minimumHealthyHosts Information about the number or percentage of minimum healthy instances.
Returns:
A reference to this updated object so that method calls can be chained together.
    public DeploymentConfigInfo withMinimumHealthyHosts(MinimumHealthyHosts minimumHealthyHosts) {
        this. = minimumHealthyHosts;
        return this;
    }

    
The time that the deployment configuration was created.

Returns:
The time that the deployment configuration was created.
    public java.util.Date getCreateTime() {
        return ;
    }
    
    
The time that the deployment configuration was created.

Parameters:
createTime The time that the deployment configuration was created.
    public void setCreateTime(java.util.Date createTime) {
        this. = createTime;
    }
    
    
The time that the deployment configuration was created.

Returns a reference to this object so that method calls can be chained together.

Parameters:
createTime The time that the deployment configuration was created.
Returns:
A reference to this updated object so that method calls can be chained together.
    public DeploymentConfigInfo withCreateTime(java.util.Date createTime) {
        this. = createTime;
        return this;
    }

    
Returns a string representation of this object; useful for testing and debugging.

Returns:
A string representation of this object.
See also:
java.lang.Object.toString()
    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append("{");
        if (getDeploymentConfigId() != nullsb.append("DeploymentConfigId: " + getDeploymentConfigId() + ",");
        if (getDeploymentConfigName() != nullsb.append("DeploymentConfigName: " + getDeploymentConfigName() + ",");
        if (getMinimumHealthyHosts() != nullsb.append("MinimumHealthyHosts: " + getMinimumHealthyHosts() + ",");
        if (getCreateTime() != nullsb.append("CreateTime: " + getCreateTime() );
        sb.append("}");
        return sb.toString();
    }
    
    @Override
    public int hashCode() {
        final int prime = 31;
        int hashCode = 1;
        
        hashCode = prime * hashCode + ((getDeploymentConfigId() == null) ? 0 : getDeploymentConfigId().hashCode()); 
        hashCode = prime * hashCode + ((getDeploymentConfigName() == null) ? 0 : getDeploymentConfigName().hashCode()); 
        hashCode = prime * hashCode + ((getMinimumHealthyHosts() == null) ? 0 : getMinimumHealthyHosts().hashCode()); 
        hashCode = prime * hashCode + ((getCreateTime() == null) ? 0 : getCreateTime().hashCode()); 
        return hashCode;
    }
    
    @Override
    public boolean equals(Object obj) {
        if (this == objreturn true;
        if (obj == nullreturn false;
        if (obj instanceof DeploymentConfigInfo == falsereturn false;
        DeploymentConfigInfo other = (DeploymentConfigInfo)obj;
        
        if (other.getDeploymentConfigId() == null ^ this.getDeploymentConfigId() == nullreturn false;
        if (other.getDeploymentConfigId() != null && other.getDeploymentConfigId().equals(this.getDeploymentConfigId()) == falsereturn false
        if (other.getDeploymentConfigName() == null ^ this.getDeploymentConfigName() == nullreturn false;
        if (other.getDeploymentConfigName() != null && other.getDeploymentConfigName().equals(this.getDeploymentConfigName()) == falsereturn false
        if (other.getMinimumHealthyHosts() == null ^ this.getMinimumHealthyHosts() == nullreturn false;
        if (other.getMinimumHealthyHosts() != null && other.getMinimumHealthyHosts().equals(this.getMinimumHealthyHosts()) == falsereturn false
        if (other.getCreateTime() == null ^ this.getCreateTime() == nullreturn false;
        if (other.getCreateTime() != null && other.getCreateTime().equals(this.getCreateTime()) == falsereturn false
        return true;
    }
    
    @Override
    public DeploymentConfigInfo clone() {
        try {
            return (DeploymentConfigInfosuper.clone();
        
        } catch (CloneNotSupportedException e) {
            throw new IllegalStateException(
                    "Got a CloneNotSupportedException from Object.clone() "
                    + "even though we're Cloneable!",
                    e);
        }
        
    }
}
    
New to GrepCode? Check out our FAQ X