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.elasticmapreduce.model;
 

Detailed information about an instance group.

 
 public class InstanceGroupDetail implements SerializableCloneable {

    
Unique identifier for the instance group.

Constraints:
Length: 0 - 256
Pattern: [\u0020-\uD7FF\uE000-\uFFFD\uD800\uDC00-\uDBFF\uDFFF\r\n\t]*

 
     private String instanceGroupId;

    
Friendly name for the instance group.

Constraints:
Length: 0 - 256
Pattern: [\u0020-\uD7FF\uE000-\uFFFD\uD800\uDC00-\uDBFF\uDFFF\r\n\t]*

 
     private String name;

    
Market type of the Amazon EC2 instances used to create a cluster node.

Constraints:
Allowed Values: ON_DEMAND, SPOT

 
     private String market;

    
Instance group role in the cluster

Constraints:
Allowed Values: MASTER, CORE, TASK

 
     private String instanceRole;

    
Bid price for EC2 Instances when launching nodes as Spot Instances, expressed in USD.

Constraints:
Length: 0 - 256
Pattern: [\u0020-\uD7FF\uE000-\uFFFD\uD800\uDC00-\uDBFF\uDFFF\r\n\t]*

 
     private String bidPrice;

    
Amazon EC2 Instance type.

Constraints:
Length: 1 - 256
Pattern: [\u0020-\uD7FF\uE000-\uFFFD\uD800\uDC00-\uDBFF\uDFFF\r\n\t]*

 
     private String instanceType;

    
Target number of instances to run in the instance group.
 
     private Integer instanceRequestCount;

    
Actual count of running instances.
 
     private Integer instanceRunningCount;

    
State of instance group. The following values are deprecated: STARTING, TERMINATED, and FAILED.

Constraints:
Allowed Values: PROVISIONING, BOOTSTRAPPING, RUNNING, RESIZING, SUSPENDED, TERMINATING, TERMINATED, ARRESTED, SHUTTING_DOWN, ENDED

 
     private String state;

    
Details regarding the state of the instance group.

Constraints:
Length: 0 - 10280
Pattern: [\u0020-\uD7FF\uE000-\uFFFD\uD800\uDC00-\uDBFF\uDFFF\r\n\t]*

    private String lastStateChangeReason;

    
The date/time the instance group was created.
    private java.util.Date creationDateTime;

    
The date/time the instance group was started.
    private java.util.Date startDateTime;

    
The date/time the instance group was available to the cluster.
    private java.util.Date readyDateTime;

    
The date/time the instance group was terminated.
    private java.util.Date endDateTime;

    
Default constructor for a new InstanceGroupDetail object. Callers should use the setter or fluent setter (with...) methods to initialize this object after creating it.
    public InstanceGroupDetail() {}
    
    
Constructs a new InstanceGroupDetail object. Callers should use the setter or fluent setter (with...) methods to initialize any additional object members.

Parameters:
instanceRole Instance group role in the cluster
instanceType Amazon EC2 Instance type.
instanceRequestCount Target number of instances to run in the instance group.
instanceRunningCount Actual count of running instances.
state State of instance group. The following values are deprecated: STARTING, TERMINATED, and FAILED.
creationDateTime The date/time the instance group was created.
    public InstanceGroupDetail(String instanceRoleString instanceTypeInteger instanceRequestCountInteger instanceRunningCountString statejava.util.Date creationDateTime) {
        setInstanceRole(instanceRole);
        setInstanceType(instanceType);
        setInstanceRequestCount(instanceRequestCount);
        setInstanceRunningCount(instanceRunningCount);
        setState(state);
        setCreationDateTime(creationDateTime);
    }

    
Constructs a new InstanceGroupDetail object. Callers should use the setter or fluent setter (with...) methods to initialize any additional object members.

Parameters:
instanceRole Instance group role in the cluster
instanceType Amazon EC2 Instance type.
instanceRequestCount Target number of instances to run in the instance group.
instanceRunningCount Actual count of running instances.
state State of instance group. The following values are deprecated: STARTING, TERMINATED, and FAILED.
creationDateTime The date/time the instance group was created.
    public InstanceGroupDetail(InstanceRoleType instanceRoleString instanceTypeInteger instanceRequestCountInteger instanceRunningCountInstanceGroupState statejava.util.Date creationDateTime) {
        this. = instanceRole.toString();
        this. = instanceType;
        this. = instanceRequestCount;
        this. = instanceRunningCount;
        this. = state.toString();
        this. = creationDateTime;
    }

    
Unique identifier for the instance group.

Constraints:
Length: 0 - 256
Pattern: [\u0020-\uD7FF\uE000-\uFFFD\uD800\uDC00-\uDBFF\uDFFF\r\n\t]*

Returns:
Unique identifier for the instance group.
    public String getInstanceGroupId() {
        return ;
    }
    
    
Unique identifier for the instance group.

Constraints:
Length: 0 - 256
Pattern: [\u0020-\uD7FF\uE000-\uFFFD\uD800\uDC00-\uDBFF\uDFFF\r\n\t]*

Parameters:
instanceGroupId Unique identifier for the instance group.
    public void setInstanceGroupId(String instanceGroupId) {
        this. = instanceGroupId;
    }
    
    
Unique identifier for the instance group.

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

Constraints:
Length: 0 - 256
Pattern: [\u0020-\uD7FF\uE000-\uFFFD\uD800\uDC00-\uDBFF\uDFFF\r\n\t]*

Parameters:
instanceGroupId Unique identifier for the instance group.
Returns:
A reference to this updated object so that method calls can be chained together.
    public InstanceGroupDetail withInstanceGroupId(String instanceGroupId) {
        this. = instanceGroupId;
        return this;
    }

    
Friendly name for the instance group.

Constraints:
Length: 0 - 256
Pattern: [\u0020-\uD7FF\uE000-\uFFFD\uD800\uDC00-\uDBFF\uDFFF\r\n\t]*

Returns:
Friendly name for the instance group.
    public String getName() {
        return ;
    }
    
    
Friendly name for the instance group.

Constraints:
Length: 0 - 256
Pattern: [\u0020-\uD7FF\uE000-\uFFFD\uD800\uDC00-\uDBFF\uDFFF\r\n\t]*

Parameters:
name Friendly name for the instance group.
    public void setName(String name) {
        this. = name;
    }
    
    
Friendly name for the instance group.

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

Constraints:
Length: 0 - 256
Pattern: [\u0020-\uD7FF\uE000-\uFFFD\uD800\uDC00-\uDBFF\uDFFF\r\n\t]*

Parameters:
name Friendly name for the instance group.
Returns:
A reference to this updated object so that method calls can be chained together.
    public InstanceGroupDetail withName(String name) {
        this. = name;
        return this;
    }

    
Market type of the Amazon EC2 instances used to create a cluster node.

Constraints:
Allowed Values: ON_DEMAND, SPOT

Returns:
Market type of the Amazon EC2 instances used to create a cluster node.
See also:
MarketType
    public String getMarket() {
        return ;
    }
    
    
Market type of the Amazon EC2 instances used to create a cluster node.

Constraints:
Allowed Values: ON_DEMAND, SPOT

Parameters:
market Market type of the Amazon EC2 instances used to create a cluster node.
See also:
MarketType
    public void setMarket(String market) {
        this. = market;
    }
    
    
Market type of the Amazon EC2 instances used to create a cluster node.

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

Constraints:
Allowed Values: ON_DEMAND, SPOT

Parameters:
market Market type of the Amazon EC2 instances used to create a cluster node.
Returns:
A reference to this updated object so that method calls can be chained together.
See also:
MarketType
    public InstanceGroupDetail withMarket(String market) {
        this. = market;
        return this;
    }

    
Market type of the Amazon EC2 instances used to create a cluster node.

Constraints:
Allowed Values: ON_DEMAND, SPOT

Parameters:
market Market type of the Amazon EC2 instances used to create a cluster node.
See also:
MarketType
    public void setMarket(MarketType market) {
        this. = market.toString();
    }
    
    
Market type of the Amazon EC2 instances used to create a cluster node.

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

Constraints:
Allowed Values: ON_DEMAND, SPOT

Parameters:
market Market type of the Amazon EC2 instances used to create a cluster node.
Returns:
A reference to this updated object so that method calls can be chained together.
See also:
MarketType
    public InstanceGroupDetail withMarket(MarketType market) {
        this. = market.toString();
        return this;
    }

    
Instance group role in the cluster

Constraints:
Allowed Values: MASTER, CORE, TASK

Returns:
Instance group role in the cluster
See also:
InstanceRoleType
    public String getInstanceRole() {
        return ;
    }
    
    
Instance group role in the cluster

Constraints:
Allowed Values: MASTER, CORE, TASK

Parameters:
instanceRole Instance group role in the cluster
See also:
InstanceRoleType
    public void setInstanceRole(String instanceRole) {
        this. = instanceRole;
    }
    
    
Instance group role in the cluster

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

Constraints:
Allowed Values: MASTER, CORE, TASK

Parameters:
instanceRole Instance group role in the cluster
Returns:
A reference to this updated object so that method calls can be chained together.
See also:
InstanceRoleType
    public InstanceGroupDetail withInstanceRole(String instanceRole) {
        this. = instanceRole;
        return this;
    }

    
Instance group role in the cluster

Constraints:
Allowed Values: MASTER, CORE, TASK

Parameters:
instanceRole Instance group role in the cluster
See also:
InstanceRoleType
    public void setInstanceRole(InstanceRoleType instanceRole) {
        this. = instanceRole.toString();
    }
    
    
Instance group role in the cluster

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

Constraints:
Allowed Values: MASTER, CORE, TASK

Parameters:
instanceRole Instance group role in the cluster
Returns:
A reference to this updated object so that method calls can be chained together.
See also:
InstanceRoleType
    public InstanceGroupDetail withInstanceRole(InstanceRoleType instanceRole) {
        this. = instanceRole.toString();
        return this;
    }

    
Bid price for EC2 Instances when launching nodes as Spot Instances, expressed in USD.

Constraints:
Length: 0 - 256
Pattern: [\u0020-\uD7FF\uE000-\uFFFD\uD800\uDC00-\uDBFF\uDFFF\r\n\t]*

Returns:
Bid price for EC2 Instances when launching nodes as Spot Instances, expressed in USD.
    public String getBidPrice() {
        return ;
    }
    
    
Bid price for EC2 Instances when launching nodes as Spot Instances, expressed in USD.

Constraints:
Length: 0 - 256
Pattern: [\u0020-\uD7FF\uE000-\uFFFD\uD800\uDC00-\uDBFF\uDFFF\r\n\t]*

Parameters:
bidPrice Bid price for EC2 Instances when launching nodes as Spot Instances, expressed in USD.
    public void setBidPrice(String bidPrice) {
        this. = bidPrice;
    }
    
    
Bid price for EC2 Instances when launching nodes as Spot Instances, expressed in USD.

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

Constraints:
Length: 0 - 256
Pattern: [\u0020-\uD7FF\uE000-\uFFFD\uD800\uDC00-\uDBFF\uDFFF\r\n\t]*

Parameters:
bidPrice Bid price for EC2 Instances when launching nodes as Spot Instances, expressed in USD.
Returns:
A reference to this updated object so that method calls can be chained together.
    public InstanceGroupDetail withBidPrice(String bidPrice) {
        this. = bidPrice;
        return this;
    }

    
Amazon EC2 Instance type.

Constraints:
Length: 1 - 256
Pattern: [\u0020-\uD7FF\uE000-\uFFFD\uD800\uDC00-\uDBFF\uDFFF\r\n\t]*

Returns:
Amazon EC2 Instance type.
    public String getInstanceType() {
        return ;
    }
    
    
Amazon EC2 Instance type.

Constraints:
Length: 1 - 256
Pattern: [\u0020-\uD7FF\uE000-\uFFFD\uD800\uDC00-\uDBFF\uDFFF\r\n\t]*

Parameters:
instanceType Amazon EC2 Instance type.
    public void setInstanceType(String instanceType) {
        this. = instanceType;
    }
    
    
Amazon EC2 Instance type.

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

Constraints:
Length: 1 - 256
Pattern: [\u0020-\uD7FF\uE000-\uFFFD\uD800\uDC00-\uDBFF\uDFFF\r\n\t]*

Parameters:
instanceType Amazon EC2 Instance type.
Returns:
A reference to this updated object so that method calls can be chained together.
    public InstanceGroupDetail withInstanceType(String instanceType) {
        this. = instanceType;
        return this;
    }

    
Target number of instances to run in the instance group.

Returns:
Target number of instances to run in the instance group.
    public Integer getInstanceRequestCount() {
        return ;
    }
    
    
Target number of instances to run in the instance group.

Parameters:
instanceRequestCount Target number of instances to run in the instance group.
    public void setInstanceRequestCount(Integer instanceRequestCount) {
        this. = instanceRequestCount;
    }
    
    
Target number of instances to run in the instance group.

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

Parameters:
instanceRequestCount Target number of instances to run in the instance group.
Returns:
A reference to this updated object so that method calls can be chained together.
    public InstanceGroupDetail withInstanceRequestCount(Integer instanceRequestCount) {
        this. = instanceRequestCount;
        return this;
    }

    
Actual count of running instances.

Returns:
Actual count of running instances.
    public Integer getInstanceRunningCount() {
        return ;
    }
    
    
Actual count of running instances.

Parameters:
instanceRunningCount Actual count of running instances.
    public void setInstanceRunningCount(Integer instanceRunningCount) {
        this. = instanceRunningCount;
    }
    
    
Actual count of running instances.

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

Parameters:
instanceRunningCount Actual count of running instances.
Returns:
A reference to this updated object so that method calls can be chained together.
    public InstanceGroupDetail withInstanceRunningCount(Integer instanceRunningCount) {
        this. = instanceRunningCount;
        return this;
    }

    
State of instance group. The following values are deprecated: STARTING, TERMINATED, and FAILED.

Constraints:
Allowed Values: PROVISIONING, BOOTSTRAPPING, RUNNING, RESIZING, SUSPENDED, TERMINATING, TERMINATED, ARRESTED, SHUTTING_DOWN, ENDED

Returns:
State of instance group. The following values are deprecated: STARTING, TERMINATED, and FAILED.
See also:
InstanceGroupState
    public String getState() {
        return ;
    }
    
    
State of instance group. The following values are deprecated: STARTING, TERMINATED, and FAILED.

Constraints:
Allowed Values: PROVISIONING, BOOTSTRAPPING, RUNNING, RESIZING, SUSPENDED, TERMINATING, TERMINATED, ARRESTED, SHUTTING_DOWN, ENDED

Parameters:
state State of instance group. The following values are deprecated: STARTING, TERMINATED, and FAILED.
See also:
InstanceGroupState
    public void setState(String state) {
        this. = state;
    }
    
    
State of instance group. The following values are deprecated: STARTING, TERMINATED, and FAILED.

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

Constraints:
Allowed Values: PROVISIONING, BOOTSTRAPPING, RUNNING, RESIZING, SUSPENDED, TERMINATING, TERMINATED, ARRESTED, SHUTTING_DOWN, ENDED

Parameters:
state State of instance group. The following values are deprecated: STARTING, TERMINATED, and FAILED.
Returns:
A reference to this updated object so that method calls can be chained together.
See also:
InstanceGroupState
    public InstanceGroupDetail withState(String state) {
        this. = state;
        return this;
    }

    
State of instance group. The following values are deprecated: STARTING, TERMINATED, and FAILED.

Constraints:
Allowed Values: PROVISIONING, BOOTSTRAPPING, RUNNING, RESIZING, SUSPENDED, TERMINATING, TERMINATED, ARRESTED, SHUTTING_DOWN, ENDED

Parameters:
state State of instance group. The following values are deprecated: STARTING, TERMINATED, and FAILED.
See also:
InstanceGroupState
    public void setState(InstanceGroupState state) {
        this. = state.toString();
    }
    
    
State of instance group. The following values are deprecated: STARTING, TERMINATED, and FAILED.

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

Constraints:
Allowed Values: PROVISIONING, BOOTSTRAPPING, RUNNING, RESIZING, SUSPENDED, TERMINATING, TERMINATED, ARRESTED, SHUTTING_DOWN, ENDED

Parameters:
state State of instance group. The following values are deprecated: STARTING, TERMINATED, and FAILED.
Returns:
A reference to this updated object so that method calls can be chained together.
See also:
InstanceGroupState
        this. = state.toString();
        return this;
    }

    
Details regarding the state of the instance group.

Constraints:
Length: 0 - 10280
Pattern: [\u0020-\uD7FF\uE000-\uFFFD\uD800\uDC00-\uDBFF\uDFFF\r\n\t]*

Returns:
Details regarding the state of the instance group.
    public String getLastStateChangeReason() {
        return ;
    }
    
    
Details regarding the state of the instance group.

Constraints:
Length: 0 - 10280
Pattern: [\u0020-\uD7FF\uE000-\uFFFD\uD800\uDC00-\uDBFF\uDFFF\r\n\t]*

Parameters:
lastStateChangeReason Details regarding the state of the instance group.
    public void setLastStateChangeReason(String lastStateChangeReason) {
        this. = lastStateChangeReason;
    }
    
    
Details regarding the state of the instance group.

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

Constraints:
Length: 0 - 10280
Pattern: [\u0020-\uD7FF\uE000-\uFFFD\uD800\uDC00-\uDBFF\uDFFF\r\n\t]*

Parameters:
lastStateChangeReason Details regarding the state of the instance group.
Returns:
A reference to this updated object so that method calls can be chained together.
    public InstanceGroupDetail withLastStateChangeReason(String lastStateChangeReason) {
        this. = lastStateChangeReason;
        return this;
    }

    
The date/time the instance group was created.

Returns:
The date/time the instance group was created.
    public java.util.Date getCreationDateTime() {
        return ;
    }
    
    
The date/time the instance group was created.

Parameters:
creationDateTime The date/time the instance group was created.
    public void setCreationDateTime(java.util.Date creationDateTime) {
        this. = creationDateTime;
    }
    
    
The date/time the instance group was created.

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

Parameters:
creationDateTime The date/time the instance group was created.
Returns:
A reference to this updated object so that method calls can be chained together.
    public InstanceGroupDetail withCreationDateTime(java.util.Date creationDateTime) {
        this. = creationDateTime;
        return this;
    }

    
The date/time the instance group was started.

Returns:
The date/time the instance group was started.
    public java.util.Date getStartDateTime() {
        return ;
    }
    
    
The date/time the instance group was started.

Parameters:
startDateTime The date/time the instance group was started.
    public void setStartDateTime(java.util.Date startDateTime) {
        this. = startDateTime;
    }
    
    
The date/time the instance group was started.

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

Parameters:
startDateTime The date/time the instance group was started.
Returns:
A reference to this updated object so that method calls can be chained together.
    public InstanceGroupDetail withStartDateTime(java.util.Date startDateTime) {
        this. = startDateTime;
        return this;
    }

    
The date/time the instance group was available to the cluster.

Returns:
The date/time the instance group was available to the cluster.
    public java.util.Date getReadyDateTime() {
        return ;
    }
    
    
The date/time the instance group was available to the cluster.

Parameters:
readyDateTime The date/time the instance group was available to the cluster.
    public void setReadyDateTime(java.util.Date readyDateTime) {
        this. = readyDateTime;
    }
    
    
The date/time the instance group was available to the cluster.

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

Parameters:
readyDateTime The date/time the instance group was available to the cluster.
Returns:
A reference to this updated object so that method calls can be chained together.
    public InstanceGroupDetail withReadyDateTime(java.util.Date readyDateTime) {
        this. = readyDateTime;
        return this;
    }

    
The date/time the instance group was terminated.

Returns:
The date/time the instance group was terminated.
    public java.util.Date getEndDateTime() {
        return ;
    }
    
    
The date/time the instance group was terminated.

Parameters:
endDateTime The date/time the instance group was terminated.
    public void setEndDateTime(java.util.Date endDateTime) {
        this. = endDateTime;
    }
    
    
The date/time the instance group was terminated.

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

Parameters:
endDateTime The date/time the instance group was terminated.
Returns:
A reference to this updated object so that method calls can be chained together.
    public InstanceGroupDetail withEndDateTime(java.util.Date endDateTime) {
        this. = endDateTime;
        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 (getInstanceGroupId() != nullsb.append("InstanceGroupId: " + getInstanceGroupId() + ",");
        if (getName() != nullsb.append("Name: " + getName() + ",");
        if (getMarket() != nullsb.append("Market: " + getMarket() + ",");
        if (getInstanceRole() != nullsb.append("InstanceRole: " + getInstanceRole() + ",");
        if (getBidPrice() != nullsb.append("BidPrice: " + getBidPrice() + ",");
        if (getInstanceType() != nullsb.append("InstanceType: " + getInstanceType() + ",");
        if (getInstanceRequestCount() != nullsb.append("InstanceRequestCount: " + getInstanceRequestCount() + ",");
        if (getInstanceRunningCount() != nullsb.append("InstanceRunningCount: " + getInstanceRunningCount() + ",");
        if (getState() != nullsb.append("State: " + getState() + ",");
        if (getLastStateChangeReason() != nullsb.append("LastStateChangeReason: " + getLastStateChangeReason() + ",");
        if (getCreationDateTime() != nullsb.append("CreationDateTime: " + getCreationDateTime() + ",");
        if (getStartDateTime() != nullsb.append("StartDateTime: " + getStartDateTime() + ",");
        if (getReadyDateTime() != nullsb.append("ReadyDateTime: " + getReadyDateTime() + ",");
        if (getEndDateTime() != nullsb.append("EndDateTime: " + getEndDateTime() );
        sb.append("}");
        return sb.toString();
    }
    
    @Override
    public int hashCode() {
        final int prime = 31;
        int hashCode = 1;
        
        hashCode = prime * hashCode + ((getInstanceGroupId() == null) ? 0 : getInstanceGroupId().hashCode()); 
        hashCode = prime * hashCode + ((getName() == null) ? 0 : getName().hashCode()); 
        hashCode = prime * hashCode + ((getMarket() == null) ? 0 : getMarket().hashCode()); 
        hashCode = prime * hashCode + ((getInstanceRole() == null) ? 0 : getInstanceRole().hashCode()); 
        hashCode = prime * hashCode + ((getBidPrice() == null) ? 0 : getBidPrice().hashCode()); 
        hashCode = prime * hashCode + ((getInstanceType() == null) ? 0 : getInstanceType().hashCode()); 
        hashCode = prime * hashCode + ((getInstanceRequestCount() == null) ? 0 : getInstanceRequestCount().hashCode()); 
        hashCode = prime * hashCode + ((getInstanceRunningCount() == null) ? 0 : getInstanceRunningCount().hashCode()); 
        hashCode = prime * hashCode + ((getState() == null) ? 0 : getState().hashCode()); 
        hashCode = prime * hashCode + ((getLastStateChangeReason() == null) ? 0 : getLastStateChangeReason().hashCode()); 
        hashCode = prime * hashCode + ((getCreationDateTime() == null) ? 0 : getCreationDateTime().hashCode()); 
        hashCode = prime * hashCode + ((getStartDateTime() == null) ? 0 : getStartDateTime().hashCode()); 
        hashCode = prime * hashCode + ((getReadyDateTime() == null) ? 0 : getReadyDateTime().hashCode()); 
        hashCode = prime * hashCode + ((getEndDateTime() == null) ? 0 : getEndDateTime().hashCode()); 
        return hashCode;
    }
    
    @Override
    public boolean equals(Object obj) {
        if (this == objreturn true;
        if (obj == nullreturn false;
        if (obj instanceof InstanceGroupDetail == falsereturn false;
        InstanceGroupDetail other = (InstanceGroupDetail)obj;
        
        if (other.getInstanceGroupId() == null ^ this.getInstanceGroupId() == nullreturn false;
        if (other.getInstanceGroupId() != null && other.getInstanceGroupId().equals(this.getInstanceGroupId()) == falsereturn false
        if (other.getName() == null ^ this.getName() == nullreturn false;
        if (other.getName() != null && other.getName().equals(this.getName()) == falsereturn false
        if (other.getMarket() == null ^ this.getMarket() == nullreturn false;
        if (other.getMarket() != null && other.getMarket().equals(this.getMarket()) == falsereturn false
        if (other.getInstanceRole() == null ^ this.getInstanceRole() == nullreturn false;
        if (other.getInstanceRole() != null && other.getInstanceRole().equals(this.getInstanceRole()) == falsereturn false
        if (other.getBidPrice() == null ^ this.getBidPrice() == nullreturn false;
        if (other.getBidPrice() != null && other.getBidPrice().equals(this.getBidPrice()) == falsereturn false
        if (other.getInstanceType() == null ^ this.getInstanceType() == nullreturn false;
        if (other.getInstanceType() != null && other.getInstanceType().equals(this.getInstanceType()) == falsereturn false
        if (other.getInstanceRequestCount() == null ^ this.getInstanceRequestCount() == nullreturn false;
        if (other.getInstanceRequestCount() != null && other.getInstanceRequestCount().equals(this.getInstanceRequestCount()) == falsereturn false
        if (other.getInstanceRunningCount() == null ^ this.getInstanceRunningCount() == nullreturn false;
        if (other.getInstanceRunningCount() != null && other.getInstanceRunningCount().equals(this.getInstanceRunningCount()) == falsereturn false
        if (other.getState() == null ^ this.getState() == nullreturn false;
        if (other.getState() != null && other.getState().equals(this.getState()) == falsereturn false
        if (other.getLastStateChangeReason() == null ^ this.getLastStateChangeReason() == nullreturn false;
        if (other.getLastStateChangeReason() != null && other.getLastStateChangeReason().equals(this.getLastStateChangeReason()) == falsereturn false
        if (other.getCreationDateTime() == null ^ this.getCreationDateTime() == nullreturn false;
        if (other.getCreationDateTime() != null && other.getCreationDateTime().equals(this.getCreationDateTime()) == falsereturn false
        if (other.getStartDateTime() == null ^ this.getStartDateTime() == nullreturn false;
        if (other.getStartDateTime() != null && other.getStartDateTime().equals(this.getStartDateTime()) == falsereturn false
        if (other.getReadyDateTime() == null ^ this.getReadyDateTime() == nullreturn false;
        if (other.getReadyDateTime() != null && other.getReadyDateTime().equals(this.getReadyDateTime()) == falsereturn false
        if (other.getEndDateTime() == null ^ this.getEndDateTime() == nullreturn false;
        if (other.getEndDateTime() != null && other.getEndDateTime().equals(this.getEndDateTime()) == falsereturn false
        return true;
    }
    
    @Override
    public InstanceGroupDetail clone() {
        try {
            return (InstanceGroupDetailsuper.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