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

com.amazonaws.services.health.model.DescribeEventDetailsResult Maven / Gradle / Ivy

/*
 * Copyright 2017-2022 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.health.model;

import java.io.Serializable;
import javax.annotation.Generated;

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

    /**
     * 

* Information about the events that could be retrieved. *

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

* Error messages for any events that could not be retrieved. *

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

* Information about the events that could be retrieved. *

* * @return Information about the events that could be retrieved. */ public java.util.List getSuccessfulSet() { return successfulSet; } /** *

* Information about the events that could be retrieved. *

* * @param successfulSet * Information about the events that could be retrieved. */ public void setSuccessfulSet(java.util.Collection successfulSet) { if (successfulSet == null) { this.successfulSet = null; return; } this.successfulSet = new java.util.ArrayList(successfulSet); } /** *

* Information about the events that could be retrieved. *

*

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

* * @param successfulSet * Information about the events that could be retrieved. * @return Returns a reference to this object so that method calls can be chained together. */ public DescribeEventDetailsResult withSuccessfulSet(EventDetails... successfulSet) { if (this.successfulSet == null) { setSuccessfulSet(new java.util.ArrayList(successfulSet.length)); } for (EventDetails ele : successfulSet) { this.successfulSet.add(ele); } return this; } /** *

* Information about the events that could be retrieved. *

* * @param successfulSet * Information about the events that could be retrieved. * @return Returns a reference to this object so that method calls can be chained together. */ public DescribeEventDetailsResult withSuccessfulSet(java.util.Collection successfulSet) { setSuccessfulSet(successfulSet); return this; } /** *

* Error messages for any events that could not be retrieved. *

* * @return Error messages for any events that could not be retrieved. */ public java.util.List getFailedSet() { return failedSet; } /** *

* Error messages for any events that could not be retrieved. *

* * @param failedSet * Error messages for any events that could not be retrieved. */ public void setFailedSet(java.util.Collection failedSet) { if (failedSet == null) { this.failedSet = null; return; } this.failedSet = new java.util.ArrayList(failedSet); } /** *

* Error messages for any events that could not be retrieved. *

*

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

* * @param failedSet * Error messages for any events that could not be retrieved. * @return Returns a reference to this object so that method calls can be chained together. */ public DescribeEventDetailsResult withFailedSet(EventDetailsErrorItem... failedSet) { if (this.failedSet == null) { setFailedSet(new java.util.ArrayList(failedSet.length)); } for (EventDetailsErrorItem ele : failedSet) { this.failedSet.add(ele); } return this; } /** *

* Error messages for any events that could not be retrieved. *

* * @param failedSet * Error messages for any events that could not be retrieved. * @return Returns a reference to this object so that method calls can be chained together. */ public DescribeEventDetailsResult withFailedSet(java.util.Collection failedSet) { setFailedSet(failedSet); 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 (getSuccessfulSet() != null) sb.append("SuccessfulSet: ").append(getSuccessfulSet()).append(","); if (getFailedSet() != null) sb.append("FailedSet: ").append(getFailedSet()); sb.append("}"); return sb.toString(); } @Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof DescribeEventDetailsResult == false) return false; DescribeEventDetailsResult other = (DescribeEventDetailsResult) obj; if (other.getSuccessfulSet() == null ^ this.getSuccessfulSet() == null) return false; if (other.getSuccessfulSet() != null && other.getSuccessfulSet().equals(this.getSuccessfulSet()) == false) return false; if (other.getFailedSet() == null ^ this.getFailedSet() == null) return false; if (other.getFailedSet() != null && other.getFailedSet().equals(this.getFailedSet()) == false) return false; return true; } @Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getSuccessfulSet() == null) ? 0 : getSuccessfulSet().hashCode()); hashCode = prime * hashCode + ((getFailedSet() == null) ? 0 : getFailedSet().hashCode()); return hashCode; } @Override public DescribeEventDetailsResult clone() { try { return (DescribeEventDetailsResult) 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