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

com.amazonaws.services.medialive.model.BatchStartResult Maven / Gradle / Ivy

Go to download

The AWS Java SDK for AWS Elemental MediaLive module holds the client classes that are used for communicating with AWS Elemental MediaLive Service

There is a newer version: 1.12.772
Show newest version
/*
 * Copyright 2018-2023 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.medialive.model;

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

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

    /** List of failed operations */
    private java.util.List failed;
    /** List of successful operations */
    private java.util.List successful;

    /**
     * List of failed operations
     * 
     * @return List of failed operations
     */

    public java.util.List getFailed() {
        return failed;
    }

    /**
     * List of failed operations
     * 
     * @param failed
     *        List of failed operations
     */

    public void setFailed(java.util.Collection failed) {
        if (failed == null) {
            this.failed = null;
            return;
        }

        this.failed = new java.util.ArrayList(failed);
    }

    /**
     * List of failed operations
     * 

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

* * @param failed * List of failed operations * @return Returns a reference to this object so that method calls can be chained together. */ public BatchStartResult withFailed(BatchFailedResultModel... failed) { if (this.failed == null) { setFailed(new java.util.ArrayList(failed.length)); } for (BatchFailedResultModel ele : failed) { this.failed.add(ele); } return this; } /** * List of failed operations * * @param failed * List of failed operations * @return Returns a reference to this object so that method calls can be chained together. */ public BatchStartResult withFailed(java.util.Collection failed) { setFailed(failed); return this; } /** * List of successful operations * * @return List of successful operations */ public java.util.List getSuccessful() { return successful; } /** * List of successful operations * * @param successful * List of successful operations */ public void setSuccessful(java.util.Collection successful) { if (successful == null) { this.successful = null; return; } this.successful = new java.util.ArrayList(successful); } /** * List of successful operations *

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

* * @param successful * List of successful operations * @return Returns a reference to this object so that method calls can be chained together. */ public BatchStartResult withSuccessful(BatchSuccessfulResultModel... successful) { if (this.successful == null) { setSuccessful(new java.util.ArrayList(successful.length)); } for (BatchSuccessfulResultModel ele : successful) { this.successful.add(ele); } return this; } /** * List of successful operations * * @param successful * List of successful operations * @return Returns a reference to this object so that method calls can be chained together. */ public BatchStartResult withSuccessful(java.util.Collection successful) { setSuccessful(successful); 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 (getFailed() != null) sb.append("Failed: ").append(getFailed()).append(","); if (getSuccessful() != null) sb.append("Successful: ").append(getSuccessful()); sb.append("}"); return sb.toString(); } @Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof BatchStartResult == false) return false; BatchStartResult other = (BatchStartResult) obj; if (other.getFailed() == null ^ this.getFailed() == null) return false; if (other.getFailed() != null && other.getFailed().equals(this.getFailed()) == false) return false; if (other.getSuccessful() == null ^ this.getSuccessful() == null) return false; if (other.getSuccessful() != null && other.getSuccessful().equals(this.getSuccessful()) == false) return false; return true; } @Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getFailed() == null) ? 0 : getFailed().hashCode()); hashCode = prime * hashCode + ((getSuccessful() == null) ? 0 : getSuccessful().hashCode()); return hashCode; } @Override public BatchStartResult clone() { try { return (BatchStartResult) super.clone(); } catch (CloneNotSupportedException e) { throw new IllegalStateException("Got a CloneNotSupportedException from Object.clone() " + "even though we're Cloneable!", e); } } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy