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

Contains the output of CancelSpotFleetRequests.

 
 public class CancelSpotFleetRequestsResult implements SerializableCloneable {

    
Information about the Spot fleet requests that are not successfully canceled.
 
Information about the Spot fleet requests that are successfully canceled.
 
Information about the Spot fleet requests that are not successfully canceled.

Returns:
Information about the Spot fleet requests that are not successfully canceled.
 
         if ( == null) {
               .setAutoConstruct(true);
         }
         return ;
     }
    
    
Information about the Spot fleet requests that are not successfully canceled.

Parameters:
unsuccessfulFleetRequests Information about the Spot fleet requests that are not successfully canceled.
 
     public void setUnsuccessfulFleetRequests(java.util.Collection<CancelSpotFleetRequestsErrorItemunsuccessfulFleetRequests) {
         if (unsuccessfulFleetRequests == null) {
             this. = null;
             return;
         }
         unsuccessfulFleetRequestsCopy.addAll(unsuccessfulFleetRequests);
         this. = unsuccessfulFleetRequestsCopy;
     }
    
    
Information about the Spot fleet requests that are not successfully canceled.

NOTE: This method appends the values to the existing list (if any). Use setUnsuccessfulFleetRequests(java.util.Collection) or withUnsuccessfulFleetRequests(java.util.Collection) if you want to override the existing values.

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

Parameters:
unsuccessfulFleetRequests Information about the Spot fleet requests that are not successfully canceled.
Returns:
A reference to this updated object so that method calls can be chained together.
 
         if (getUnsuccessfulFleetRequests() == nullsetUnsuccessfulFleetRequests(new java.util.ArrayList<CancelSpotFleetRequestsErrorItem>(unsuccessfulFleetRequests.length));
         for (CancelSpotFleetRequestsErrorItem value : unsuccessfulFleetRequests) {
             getUnsuccessfulFleetRequests().add(value);
         }
         return this;
     }
    
    
Information about the Spot fleet requests that are not successfully canceled.

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

Parameters:
unsuccessfulFleetRequests Information about the Spot fleet requests that are not successfully canceled.
Returns:
A reference to this updated object so that method calls can be chained together.
        if (unsuccessfulFleetRequests == null) {
            this. = null;
        } else {
            unsuccessfulFleetRequestsCopy.addAll(unsuccessfulFleetRequests);
            this. = unsuccessfulFleetRequestsCopy;
        }
        return this;
    }

    
Information about the Spot fleet requests that are successfully canceled.

Returns:
Information about the Spot fleet requests that are successfully canceled.
        if ( == null) {
              .setAutoConstruct(true);
        }
        return ;
    }
    
    
Information about the Spot fleet requests that are successfully canceled.

Parameters:
successfulFleetRequests Information about the Spot fleet requests that are successfully canceled.
    public void setSuccessfulFleetRequests(java.util.Collection<CancelSpotFleetRequestsSuccessItemsuccessfulFleetRequests) {
        if (successfulFleetRequests == null) {
            this. = null;
            return;
        }
        successfulFleetRequestsCopy.addAll(successfulFleetRequests);
        this. = successfulFleetRequestsCopy;
    }
    
    
Information about the Spot fleet requests that are successfully canceled.

NOTE: This method appends the values to the existing list (if any). Use setSuccessfulFleetRequests(java.util.Collection) or withSuccessfulFleetRequests(java.util.Collection) if you want to override the existing values.

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

Parameters:
successfulFleetRequests Information about the Spot fleet requests that are successfully canceled.
Returns:
A reference to this updated object so that method calls can be chained together.
        if (getSuccessfulFleetRequests() == nullsetSuccessfulFleetRequests(new java.util.ArrayList<CancelSpotFleetRequestsSuccessItem>(successfulFleetRequests.length));
        for (CancelSpotFleetRequestsSuccessItem value : successfulFleetRequests) {
            getSuccessfulFleetRequests().add(value);
        }
        return this;
    }
    
    
Information about the Spot fleet requests that are successfully canceled.

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

Parameters:
successfulFleetRequests Information about the Spot fleet requests that are successfully canceled.
Returns:
A reference to this updated object so that method calls can be chained together.
        if (successfulFleetRequests == null) {
            this. = null;
        } else {
            successfulFleetRequestsCopy.addAll(successfulFleetRequests);
            this. = successfulFleetRequestsCopy;
        }
        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 (getUnsuccessfulFleetRequests() != nullsb.append("UnsuccessfulFleetRequests: " + getUnsuccessfulFleetRequests() + ",");
        if (getSuccessfulFleetRequests() != nullsb.append("SuccessfulFleetRequests: " + getSuccessfulFleetRequests() );
        sb.append("}");
        return sb.toString();
    }
    
    @Override
    public int hashCode() {
        final int prime = 31;
        int hashCode = 1;
        
        hashCode = prime * hashCode + ((getUnsuccessfulFleetRequests() == null) ? 0 : getUnsuccessfulFleetRequests().hashCode()); 
        hashCode = prime * hashCode + ((getSuccessfulFleetRequests() == null) ? 0 : getSuccessfulFleetRequests().hashCode()); 
        return hashCode;
    }
    
    @Override
    public boolean equals(Object obj) {
        if (this == objreturn true;
        if (obj == nullreturn false;
        if (obj instanceof CancelSpotFleetRequestsResult == falsereturn false;
        
        if (other.getUnsuccessfulFleetRequests() == null ^ this.getUnsuccessfulFleetRequests() == nullreturn false;
        if (other.getUnsuccessfulFleetRequests() != null && other.getUnsuccessfulFleetRequests().equals(this.getUnsuccessfulFleetRequests()) == falsereturn false
        if (other.getSuccessfulFleetRequests() == null ^ this.getSuccessfulFleetRequests() == nullreturn false;
        if (other.getSuccessfulFleetRequests() != null && other.getSuccessfulFleetRequests().equals(this.getSuccessfulFleetRequests()) == falsereturn false
        return true;
    }
    
    @Override
        try {
            return (CancelSpotFleetRequestsResultsuper.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