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

com.amazonaws.services.simplesystemsmanagement.model.FailedCreateAssociation Maven / Gradle / Ivy

Go to download

The AWS Java SDK for AWS Simple Systems Management Service holds the client classes that are used for communicating with the AWS Simple Systems Management Service

There is a newer version: 1.12.782
Show newest version
/*
 * Copyright 2011-2016 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.simplesystemsmanagement.model;

import java.io.Serializable;

/**
 * 

* Describes a failed association. *

*/ public class FailedCreateAssociation implements Serializable, Cloneable { /** *

* The association. *

*/ private CreateAssociationBatchRequestEntry entry; /** *

* A description of the failure. *

*/ private String message; /** *

* The source of the failure. *

*/ private String fault; /** *

* The association. *

* * @param entry * The association. */ public void setEntry(CreateAssociationBatchRequestEntry entry) { this.entry = entry; } /** *

* The association. *

* * @return The association. */ public CreateAssociationBatchRequestEntry getEntry() { return this.entry; } /** *

* The association. *

* * @param entry * The association. * @return Returns a reference to this object so that method calls can be chained together. */ public FailedCreateAssociation withEntry(CreateAssociationBatchRequestEntry entry) { setEntry(entry); return this; } /** *

* A description of the failure. *

* * @param message * A description of the failure. */ public void setMessage(String message) { this.message = message; } /** *

* A description of the failure. *

* * @return A description of the failure. */ public String getMessage() { return this.message; } /** *

* A description of the failure. *

* * @param message * A description of the failure. * @return Returns a reference to this object so that method calls can be chained together. */ public FailedCreateAssociation withMessage(String message) { setMessage(message); return this; } /** *

* The source of the failure. *

* * @param fault * The source of the failure. * @see Fault */ public void setFault(String fault) { this.fault = fault; } /** *

* The source of the failure. *

* * @return The source of the failure. * @see Fault */ public String getFault() { return this.fault; } /** *

* The source of the failure. *

* * @param fault * The source of the failure. * @return Returns a reference to this object so that method calls can be chained together. * @see Fault */ public FailedCreateAssociation withFault(String fault) { setFault(fault); return this; } /** *

* The source of the failure. *

* * @param fault * The source of the failure. * @see Fault */ public void setFault(Fault fault) { this.fault = fault.toString(); } /** *

* The source of the failure. *

* * @param fault * The source of the failure. * @return Returns a reference to this object so that method calls can be chained together. * @see Fault */ public FailedCreateAssociation withFault(Fault fault) { setFault(fault); return this; } /** * Returns a string representation of this object; useful for testing and debugging. * * @return A string representation of this object. * * @see java.lang.Object#toString() */ @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); if (getEntry() != null) sb.append("Entry: " + getEntry() + ","); if (getMessage() != null) sb.append("Message: " + getMessage() + ","); if (getFault() != null) sb.append("Fault: " + getFault()); sb.append("}"); return sb.toString(); } @Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof FailedCreateAssociation == false) return false; FailedCreateAssociation other = (FailedCreateAssociation) obj; if (other.getEntry() == null ^ this.getEntry() == null) return false; if (other.getEntry() != null && other.getEntry().equals(this.getEntry()) == false) return false; if (other.getMessage() == null ^ this.getMessage() == null) return false; if (other.getMessage() != null && other.getMessage().equals(this.getMessage()) == false) return false; if (other.getFault() == null ^ this.getFault() == null) return false; if (other.getFault() != null && other.getFault().equals(this.getFault()) == false) return false; return true; } @Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getEntry() == null) ? 0 : getEntry().hashCode()); hashCode = prime * hashCode + ((getMessage() == null) ? 0 : getMessage().hashCode()); hashCode = prime * hashCode + ((getFault() == null) ? 0 : getFault().hashCode()); return hashCode; } @Override public FailedCreateAssociation clone() { try { return (FailedCreateAssociation) super.clone(); } catch (CloneNotSupportedException e) { throw new IllegalStateException("Got a CloneNotSupportedException from Object.clone() " + "even though we're Cloneable!", e); } } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy