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

com.amazonaws.services.medialive.model.DescribeInputResult 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 DescribeInputResponse
 * 
 * @see AWS API
 *      Documentation
 */
@Generated("com.amazonaws:aws-java-sdk-code-generator")
public class DescribeInputResult extends com.amazonaws.AmazonWebServiceResult implements Serializable, Cloneable {

    /** The Unique ARN of the input (generated, immutable). */
    private String arn;
    /** A list of channel IDs that that input is attached to (currently an input can only be attached to one channel). */
    private java.util.List attachedChannels;
    /** A list of the destinations of the input (PUSH-type). */
    private java.util.List destinations;
    /** The generated ID of the input (unique for user account, immutable). */
    private String id;
    /**
     * STANDARD - MediaLive expects two sources to be connected to this input. If the channel is also STANDARD, both
     * sources will be ingested. If the channel is SINGLE_PIPELINE, only the first source will be ingested; the second
     * source will always be ignored, even if the first source fails. SINGLE_PIPELINE - You can connect only one source
     * to this input. If the ChannelClass is also SINGLE_PIPELINE, this value is valid. If the ChannelClass is STANDARD,
     * this value is not valid because the channel requires two sources in the input.
     */
    private String inputClass;
    /** Settings for the input devices. */
    private java.util.List inputDevices;
    /** A list of IDs for all Inputs which are partners of this one. */
    private java.util.List inputPartnerIds;
    /**
     * Certain pull input sources can be dynamic, meaning that they can have their URL's dynamically changes during
     * input switch actions. Presently, this functionality only works with MP4_FILE and TS_FILE inputs.
     */
    private String inputSourceType;
    /** A list of MediaConnect Flows for this input. */
    private java.util.List mediaConnectFlows;
    /** The user-assigned name (This is a mutable value). */
    private String name;
    /** The Amazon Resource Name (ARN) of the role this input assumes during and after creation. */
    private String roleArn;
    /** A list of IDs for all the Input Security Groups attached to the input. */
    private java.util.List securityGroups;
    /** A list of the sources of the input (PULL-type). */
    private java.util.List sources;

    private String state;
    /** A collection of key-value pairs. */
    private java.util.Map tags;

    private String type;

    /**
     * The Unique ARN of the input (generated, immutable).
     * 
     * @param arn
     *        The Unique ARN of the input (generated, immutable).
     */

    public void setArn(String arn) {
        this.arn = arn;
    }

    /**
     * The Unique ARN of the input (generated, immutable).
     * 
     * @return The Unique ARN of the input (generated, immutable).
     */

    public String getArn() {
        return this.arn;
    }

    /**
     * The Unique ARN of the input (generated, immutable).
     * 
     * @param arn
     *        The Unique ARN of the input (generated, immutable).
     * @return Returns a reference to this object so that method calls can be chained together.
     */

    public DescribeInputResult withArn(String arn) {
        setArn(arn);
        return this;
    }

    /**
     * A list of channel IDs that that input is attached to (currently an input can only be attached to one channel).
     * 
     * @return A list of channel IDs that that input is attached to (currently an input can only be attached to one
     *         channel).
     */

    public java.util.List getAttachedChannels() {
        return attachedChannels;
    }

    /**
     * A list of channel IDs that that input is attached to (currently an input can only be attached to one channel).
     * 
     * @param attachedChannels
     *        A list of channel IDs that that input is attached to (currently an input can only be attached to one
     *        channel).
     */

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

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

    /**
     * A list of channel IDs that that input is attached to (currently an input can only be attached to one channel).
     * 

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

* * @param attachedChannels * A list of channel IDs that that input is attached to (currently an input can only be attached to one * channel). * @return Returns a reference to this object so that method calls can be chained together. */ public DescribeInputResult withAttachedChannels(String... attachedChannels) { if (this.attachedChannels == null) { setAttachedChannels(new java.util.ArrayList(attachedChannels.length)); } for (String ele : attachedChannels) { this.attachedChannels.add(ele); } return this; } /** * A list of channel IDs that that input is attached to (currently an input can only be attached to one channel). * * @param attachedChannels * A list of channel IDs that that input is attached to (currently an input can only be attached to one * channel). * @return Returns a reference to this object so that method calls can be chained together. */ public DescribeInputResult withAttachedChannels(java.util.Collection attachedChannels) { setAttachedChannels(attachedChannels); return this; } /** * A list of the destinations of the input (PUSH-type). * * @return A list of the destinations of the input (PUSH-type). */ public java.util.List getDestinations() { return destinations; } /** * A list of the destinations of the input (PUSH-type). * * @param destinations * A list of the destinations of the input (PUSH-type). */ public void setDestinations(java.util.Collection destinations) { if (destinations == null) { this.destinations = null; return; } this.destinations = new java.util.ArrayList(destinations); } /** * A list of the destinations of the input (PUSH-type). *

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

* * @param destinations * A list of the destinations of the input (PUSH-type). * @return Returns a reference to this object so that method calls can be chained together. */ public DescribeInputResult withDestinations(InputDestination... destinations) { if (this.destinations == null) { setDestinations(new java.util.ArrayList(destinations.length)); } for (InputDestination ele : destinations) { this.destinations.add(ele); } return this; } /** * A list of the destinations of the input (PUSH-type). * * @param destinations * A list of the destinations of the input (PUSH-type). * @return Returns a reference to this object so that method calls can be chained together. */ public DescribeInputResult withDestinations(java.util.Collection destinations) { setDestinations(destinations); return this; } /** * The generated ID of the input (unique for user account, immutable). * * @param id * The generated ID of the input (unique for user account, immutable). */ public void setId(String id) { this.id = id; } /** * The generated ID of the input (unique for user account, immutable). * * @return The generated ID of the input (unique for user account, immutable). */ public String getId() { return this.id; } /** * The generated ID of the input (unique for user account, immutable). * * @param id * The generated ID of the input (unique for user account, immutable). * @return Returns a reference to this object so that method calls can be chained together. */ public DescribeInputResult withId(String id) { setId(id); return this; } /** * STANDARD - MediaLive expects two sources to be connected to this input. If the channel is also STANDARD, both * sources will be ingested. If the channel is SINGLE_PIPELINE, only the first source will be ingested; the second * source will always be ignored, even if the first source fails. SINGLE_PIPELINE - You can connect only one source * to this input. If the ChannelClass is also SINGLE_PIPELINE, this value is valid. If the ChannelClass is STANDARD, * this value is not valid because the channel requires two sources in the input. * * @param inputClass * STANDARD - MediaLive expects two sources to be connected to this input. If the channel is also STANDARD, * both sources will be ingested. If the channel is SINGLE_PIPELINE, only the first source will be ingested; * the second source will always be ignored, even if the first source fails. SINGLE_PIPELINE - You can * connect only one source to this input. If the ChannelClass is also SINGLE_PIPELINE, this value is valid. * If the ChannelClass is STANDARD, this value is not valid because the channel requires two sources in the * input. * @see InputClass */ public void setInputClass(String inputClass) { this.inputClass = inputClass; } /** * STANDARD - MediaLive expects two sources to be connected to this input. If the channel is also STANDARD, both * sources will be ingested. If the channel is SINGLE_PIPELINE, only the first source will be ingested; the second * source will always be ignored, even if the first source fails. SINGLE_PIPELINE - You can connect only one source * to this input. If the ChannelClass is also SINGLE_PIPELINE, this value is valid. If the ChannelClass is STANDARD, * this value is not valid because the channel requires two sources in the input. * * @return STANDARD - MediaLive expects two sources to be connected to this input. If the channel is also STANDARD, * both sources will be ingested. If the channel is SINGLE_PIPELINE, only the first source will be ingested; * the second source will always be ignored, even if the first source fails. SINGLE_PIPELINE - You can * connect only one source to this input. If the ChannelClass is also SINGLE_PIPELINE, this value is valid. * If the ChannelClass is STANDARD, this value is not valid because the channel requires two sources in the * input. * @see InputClass */ public String getInputClass() { return this.inputClass; } /** * STANDARD - MediaLive expects two sources to be connected to this input. If the channel is also STANDARD, both * sources will be ingested. If the channel is SINGLE_PIPELINE, only the first source will be ingested; the second * source will always be ignored, even if the first source fails. SINGLE_PIPELINE - You can connect only one source * to this input. If the ChannelClass is also SINGLE_PIPELINE, this value is valid. If the ChannelClass is STANDARD, * this value is not valid because the channel requires two sources in the input. * * @param inputClass * STANDARD - MediaLive expects two sources to be connected to this input. If the channel is also STANDARD, * both sources will be ingested. If the channel is SINGLE_PIPELINE, only the first source will be ingested; * the second source will always be ignored, even if the first source fails. SINGLE_PIPELINE - You can * connect only one source to this input. If the ChannelClass is also SINGLE_PIPELINE, this value is valid. * If the ChannelClass is STANDARD, this value is not valid because the channel requires two sources in the * input. * @return Returns a reference to this object so that method calls can be chained together. * @see InputClass */ public DescribeInputResult withInputClass(String inputClass) { setInputClass(inputClass); return this; } /** * STANDARD - MediaLive expects two sources to be connected to this input. If the channel is also STANDARD, both * sources will be ingested. If the channel is SINGLE_PIPELINE, only the first source will be ingested; the second * source will always be ignored, even if the first source fails. SINGLE_PIPELINE - You can connect only one source * to this input. If the ChannelClass is also SINGLE_PIPELINE, this value is valid. If the ChannelClass is STANDARD, * this value is not valid because the channel requires two sources in the input. * * @param inputClass * STANDARD - MediaLive expects two sources to be connected to this input. If the channel is also STANDARD, * both sources will be ingested. If the channel is SINGLE_PIPELINE, only the first source will be ingested; * the second source will always be ignored, even if the first source fails. SINGLE_PIPELINE - You can * connect only one source to this input. If the ChannelClass is also SINGLE_PIPELINE, this value is valid. * If the ChannelClass is STANDARD, this value is not valid because the channel requires two sources in the * input. * @return Returns a reference to this object so that method calls can be chained together. * @see InputClass */ public DescribeInputResult withInputClass(InputClass inputClass) { this.inputClass = inputClass.toString(); return this; } /** * Settings for the input devices. * * @return Settings for the input devices. */ public java.util.List getInputDevices() { return inputDevices; } /** * Settings for the input devices. * * @param inputDevices * Settings for the input devices. */ public void setInputDevices(java.util.Collection inputDevices) { if (inputDevices == null) { this.inputDevices = null; return; } this.inputDevices = new java.util.ArrayList(inputDevices); } /** * Settings for the input devices. *

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

* * @param inputDevices * Settings for the input devices. * @return Returns a reference to this object so that method calls can be chained together. */ public DescribeInputResult withInputDevices(InputDeviceSettings... inputDevices) { if (this.inputDevices == null) { setInputDevices(new java.util.ArrayList(inputDevices.length)); } for (InputDeviceSettings ele : inputDevices) { this.inputDevices.add(ele); } return this; } /** * Settings for the input devices. * * @param inputDevices * Settings for the input devices. * @return Returns a reference to this object so that method calls can be chained together. */ public DescribeInputResult withInputDevices(java.util.Collection inputDevices) { setInputDevices(inputDevices); return this; } /** * A list of IDs for all Inputs which are partners of this one. * * @return A list of IDs for all Inputs which are partners of this one. */ public java.util.List getInputPartnerIds() { return inputPartnerIds; } /** * A list of IDs for all Inputs which are partners of this one. * * @param inputPartnerIds * A list of IDs for all Inputs which are partners of this one. */ public void setInputPartnerIds(java.util.Collection inputPartnerIds) { if (inputPartnerIds == null) { this.inputPartnerIds = null; return; } this.inputPartnerIds = new java.util.ArrayList(inputPartnerIds); } /** * A list of IDs for all Inputs which are partners of this one. *

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

* * @param inputPartnerIds * A list of IDs for all Inputs which are partners of this one. * @return Returns a reference to this object so that method calls can be chained together. */ public DescribeInputResult withInputPartnerIds(String... inputPartnerIds) { if (this.inputPartnerIds == null) { setInputPartnerIds(new java.util.ArrayList(inputPartnerIds.length)); } for (String ele : inputPartnerIds) { this.inputPartnerIds.add(ele); } return this; } /** * A list of IDs for all Inputs which are partners of this one. * * @param inputPartnerIds * A list of IDs for all Inputs which are partners of this one. * @return Returns a reference to this object so that method calls can be chained together. */ public DescribeInputResult withInputPartnerIds(java.util.Collection inputPartnerIds) { setInputPartnerIds(inputPartnerIds); return this; } /** * Certain pull input sources can be dynamic, meaning that they can have their URL's dynamically changes during * input switch actions. Presently, this functionality only works with MP4_FILE and TS_FILE inputs. * * @param inputSourceType * Certain pull input sources can be dynamic, meaning that they can have their URL's dynamically changes * during input switch actions. Presently, this functionality only works with MP4_FILE and TS_FILE inputs. * @see InputSourceType */ public void setInputSourceType(String inputSourceType) { this.inputSourceType = inputSourceType; } /** * Certain pull input sources can be dynamic, meaning that they can have their URL's dynamically changes during * input switch actions. Presently, this functionality only works with MP4_FILE and TS_FILE inputs. * * @return Certain pull input sources can be dynamic, meaning that they can have their URL's dynamically changes * during input switch actions. Presently, this functionality only works with MP4_FILE and TS_FILE inputs. * @see InputSourceType */ public String getInputSourceType() { return this.inputSourceType; } /** * Certain pull input sources can be dynamic, meaning that they can have their URL's dynamically changes during * input switch actions. Presently, this functionality only works with MP4_FILE and TS_FILE inputs. * * @param inputSourceType * Certain pull input sources can be dynamic, meaning that they can have their URL's dynamically changes * during input switch actions. Presently, this functionality only works with MP4_FILE and TS_FILE inputs. * @return Returns a reference to this object so that method calls can be chained together. * @see InputSourceType */ public DescribeInputResult withInputSourceType(String inputSourceType) { setInputSourceType(inputSourceType); return this; } /** * Certain pull input sources can be dynamic, meaning that they can have their URL's dynamically changes during * input switch actions. Presently, this functionality only works with MP4_FILE and TS_FILE inputs. * * @param inputSourceType * Certain pull input sources can be dynamic, meaning that they can have their URL's dynamically changes * during input switch actions. Presently, this functionality only works with MP4_FILE and TS_FILE inputs. * @return Returns a reference to this object so that method calls can be chained together. * @see InputSourceType */ public DescribeInputResult withInputSourceType(InputSourceType inputSourceType) { this.inputSourceType = inputSourceType.toString(); return this; } /** * A list of MediaConnect Flows for this input. * * @return A list of MediaConnect Flows for this input. */ public java.util.List getMediaConnectFlows() { return mediaConnectFlows; } /** * A list of MediaConnect Flows for this input. * * @param mediaConnectFlows * A list of MediaConnect Flows for this input. */ public void setMediaConnectFlows(java.util.Collection mediaConnectFlows) { if (mediaConnectFlows == null) { this.mediaConnectFlows = null; return; } this.mediaConnectFlows = new java.util.ArrayList(mediaConnectFlows); } /** * A list of MediaConnect Flows for this input. *

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

* * @param mediaConnectFlows * A list of MediaConnect Flows for this input. * @return Returns a reference to this object so that method calls can be chained together. */ public DescribeInputResult withMediaConnectFlows(MediaConnectFlow... mediaConnectFlows) { if (this.mediaConnectFlows == null) { setMediaConnectFlows(new java.util.ArrayList(mediaConnectFlows.length)); } for (MediaConnectFlow ele : mediaConnectFlows) { this.mediaConnectFlows.add(ele); } return this; } /** * A list of MediaConnect Flows for this input. * * @param mediaConnectFlows * A list of MediaConnect Flows for this input. * @return Returns a reference to this object so that method calls can be chained together. */ public DescribeInputResult withMediaConnectFlows(java.util.Collection mediaConnectFlows) { setMediaConnectFlows(mediaConnectFlows); return this; } /** * The user-assigned name (This is a mutable value). * * @param name * The user-assigned name (This is a mutable value). */ public void setName(String name) { this.name = name; } /** * The user-assigned name (This is a mutable value). * * @return The user-assigned name (This is a mutable value). */ public String getName() { return this.name; } /** * The user-assigned name (This is a mutable value). * * @param name * The user-assigned name (This is a mutable value). * @return Returns a reference to this object so that method calls can be chained together. */ public DescribeInputResult withName(String name) { setName(name); return this; } /** * The Amazon Resource Name (ARN) of the role this input assumes during and after creation. * * @param roleArn * The Amazon Resource Name (ARN) of the role this input assumes during and after creation. */ public void setRoleArn(String roleArn) { this.roleArn = roleArn; } /** * The Amazon Resource Name (ARN) of the role this input assumes during and after creation. * * @return The Amazon Resource Name (ARN) of the role this input assumes during and after creation. */ public String getRoleArn() { return this.roleArn; } /** * The Amazon Resource Name (ARN) of the role this input assumes during and after creation. * * @param roleArn * The Amazon Resource Name (ARN) of the role this input assumes during and after creation. * @return Returns a reference to this object so that method calls can be chained together. */ public DescribeInputResult withRoleArn(String roleArn) { setRoleArn(roleArn); return this; } /** * A list of IDs for all the Input Security Groups attached to the input. * * @return A list of IDs for all the Input Security Groups attached to the input. */ public java.util.List getSecurityGroups() { return securityGroups; } /** * A list of IDs for all the Input Security Groups attached to the input. * * @param securityGroups * A list of IDs for all the Input Security Groups attached to the input. */ public void setSecurityGroups(java.util.Collection securityGroups) { if (securityGroups == null) { this.securityGroups = null; return; } this.securityGroups = new java.util.ArrayList(securityGroups); } /** * A list of IDs for all the Input Security Groups attached to the input. *

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

* * @param securityGroups * A list of IDs for all the Input Security Groups attached to the input. * @return Returns a reference to this object so that method calls can be chained together. */ public DescribeInputResult withSecurityGroups(String... securityGroups) { if (this.securityGroups == null) { setSecurityGroups(new java.util.ArrayList(securityGroups.length)); } for (String ele : securityGroups) { this.securityGroups.add(ele); } return this; } /** * A list of IDs for all the Input Security Groups attached to the input. * * @param securityGroups * A list of IDs for all the Input Security Groups attached to the input. * @return Returns a reference to this object so that method calls can be chained together. */ public DescribeInputResult withSecurityGroups(java.util.Collection securityGroups) { setSecurityGroups(securityGroups); return this; } /** * A list of the sources of the input (PULL-type). * * @return A list of the sources of the input (PULL-type). */ public java.util.List getSources() { return sources; } /** * A list of the sources of the input (PULL-type). * * @param sources * A list of the sources of the input (PULL-type). */ public void setSources(java.util.Collection sources) { if (sources == null) { this.sources = null; return; } this.sources = new java.util.ArrayList(sources); } /** * A list of the sources of the input (PULL-type). *

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

* * @param sources * A list of the sources of the input (PULL-type). * @return Returns a reference to this object so that method calls can be chained together. */ public DescribeInputResult withSources(InputSource... sources) { if (this.sources == null) { setSources(new java.util.ArrayList(sources.length)); } for (InputSource ele : sources) { this.sources.add(ele); } return this; } /** * A list of the sources of the input (PULL-type). * * @param sources * A list of the sources of the input (PULL-type). * @return Returns a reference to this object so that method calls can be chained together. */ public DescribeInputResult withSources(java.util.Collection sources) { setSources(sources); return this; } /** * @param state * @see InputState */ public void setState(String state) { this.state = state; } /** * @return * @see InputState */ public String getState() { return this.state; } /** * @param state * @return Returns a reference to this object so that method calls can be chained together. * @see InputState */ public DescribeInputResult withState(String state) { setState(state); return this; } /** * @param state * @return Returns a reference to this object so that method calls can be chained together. * @see InputState */ public DescribeInputResult withState(InputState state) { this.state = state.toString(); return this; } /** * A collection of key-value pairs. * * @return A collection of key-value pairs. */ public java.util.Map getTags() { return tags; } /** * A collection of key-value pairs. * * @param tags * A collection of key-value pairs. */ public void setTags(java.util.Map tags) { this.tags = tags; } /** * A collection of key-value pairs. * * @param tags * A collection of key-value pairs. * @return Returns a reference to this object so that method calls can be chained together. */ public DescribeInputResult withTags(java.util.Map tags) { setTags(tags); return this; } /** * Add a single Tags entry * * @see DescribeInputResult#withTags * @returns a reference to this object so that method calls can be chained together. */ public DescribeInputResult addTagsEntry(String key, String value) { if (null == this.tags) { this.tags = new java.util.HashMap(); } if (this.tags.containsKey(key)) throw new IllegalArgumentException("Duplicated keys (" + key.toString() + ") are provided."); this.tags.put(key, value); return this; } /** * Removes all the entries added into Tags. * * @return Returns a reference to this object so that method calls can be chained together. */ public DescribeInputResult clearTagsEntries() { this.tags = null; return this; } /** * @param type * @see InputType */ public void setType(String type) { this.type = type; } /** * @return * @see InputType */ public String getType() { return this.type; } /** * @param type * @return Returns a reference to this object so that method calls can be chained together. * @see InputType */ public DescribeInputResult withType(String type) { setType(type); return this; } /** * @param type * @return Returns a reference to this object so that method calls can be chained together. * @see InputType */ public DescribeInputResult withType(InputType type) { this.type = type.toString(); 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 (getArn() != null) sb.append("Arn: ").append(getArn()).append(","); if (getAttachedChannels() != null) sb.append("AttachedChannels: ").append(getAttachedChannels()).append(","); if (getDestinations() != null) sb.append("Destinations: ").append(getDestinations()).append(","); if (getId() != null) sb.append("Id: ").append(getId()).append(","); if (getInputClass() != null) sb.append("InputClass: ").append(getInputClass()).append(","); if (getInputDevices() != null) sb.append("InputDevices: ").append(getInputDevices()).append(","); if (getInputPartnerIds() != null) sb.append("InputPartnerIds: ").append(getInputPartnerIds()).append(","); if (getInputSourceType() != null) sb.append("InputSourceType: ").append(getInputSourceType()).append(","); if (getMediaConnectFlows() != null) sb.append("MediaConnectFlows: ").append(getMediaConnectFlows()).append(","); if (getName() != null) sb.append("Name: ").append(getName()).append(","); if (getRoleArn() != null) sb.append("RoleArn: ").append(getRoleArn()).append(","); if (getSecurityGroups() != null) sb.append("SecurityGroups: ").append(getSecurityGroups()).append(","); if (getSources() != null) sb.append("Sources: ").append(getSources()).append(","); if (getState() != null) sb.append("State: ").append(getState()).append(","); if (getTags() != null) sb.append("Tags: ").append(getTags()).append(","); if (getType() != null) sb.append("Type: ").append(getType()); sb.append("}"); return sb.toString(); } @Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof DescribeInputResult == false) return false; DescribeInputResult other = (DescribeInputResult) obj; if (other.getArn() == null ^ this.getArn() == null) return false; if (other.getArn() != null && other.getArn().equals(this.getArn()) == false) return false; if (other.getAttachedChannels() == null ^ this.getAttachedChannels() == null) return false; if (other.getAttachedChannels() != null && other.getAttachedChannels().equals(this.getAttachedChannels()) == false) return false; if (other.getDestinations() == null ^ this.getDestinations() == null) return false; if (other.getDestinations() != null && other.getDestinations().equals(this.getDestinations()) == false) return false; if (other.getId() == null ^ this.getId() == null) return false; if (other.getId() != null && other.getId().equals(this.getId()) == false) return false; if (other.getInputClass() == null ^ this.getInputClass() == null) return false; if (other.getInputClass() != null && other.getInputClass().equals(this.getInputClass()) == false) return false; if (other.getInputDevices() == null ^ this.getInputDevices() == null) return false; if (other.getInputDevices() != null && other.getInputDevices().equals(this.getInputDevices()) == false) return false; if (other.getInputPartnerIds() == null ^ this.getInputPartnerIds() == null) return false; if (other.getInputPartnerIds() != null && other.getInputPartnerIds().equals(this.getInputPartnerIds()) == false) return false; if (other.getInputSourceType() == null ^ this.getInputSourceType() == null) return false; if (other.getInputSourceType() != null && other.getInputSourceType().equals(this.getInputSourceType()) == false) return false; if (other.getMediaConnectFlows() == null ^ this.getMediaConnectFlows() == null) return false; if (other.getMediaConnectFlows() != null && other.getMediaConnectFlows().equals(this.getMediaConnectFlows()) == false) return false; if (other.getName() == null ^ this.getName() == null) return false; if (other.getName() != null && other.getName().equals(this.getName()) == false) return false; if (other.getRoleArn() == null ^ this.getRoleArn() == null) return false; if (other.getRoleArn() != null && other.getRoleArn().equals(this.getRoleArn()) == false) return false; if (other.getSecurityGroups() == null ^ this.getSecurityGroups() == null) return false; if (other.getSecurityGroups() != null && other.getSecurityGroups().equals(this.getSecurityGroups()) == false) return false; if (other.getSources() == null ^ this.getSources() == null) return false; if (other.getSources() != null && other.getSources().equals(this.getSources()) == false) return false; if (other.getState() == null ^ this.getState() == null) return false; if (other.getState() != null && other.getState().equals(this.getState()) == false) return false; if (other.getTags() == null ^ this.getTags() == null) return false; if (other.getTags() != null && other.getTags().equals(this.getTags()) == false) return false; if (other.getType() == null ^ this.getType() == null) return false; if (other.getType() != null && other.getType().equals(this.getType()) == false) return false; return true; } @Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getArn() == null) ? 0 : getArn().hashCode()); hashCode = prime * hashCode + ((getAttachedChannels() == null) ? 0 : getAttachedChannels().hashCode()); hashCode = prime * hashCode + ((getDestinations() == null) ? 0 : getDestinations().hashCode()); hashCode = prime * hashCode + ((getId() == null) ? 0 : getId().hashCode()); hashCode = prime * hashCode + ((getInputClass() == null) ? 0 : getInputClass().hashCode()); hashCode = prime * hashCode + ((getInputDevices() == null) ? 0 : getInputDevices().hashCode()); hashCode = prime * hashCode + ((getInputPartnerIds() == null) ? 0 : getInputPartnerIds().hashCode()); hashCode = prime * hashCode + ((getInputSourceType() == null) ? 0 : getInputSourceType().hashCode()); hashCode = prime * hashCode + ((getMediaConnectFlows() == null) ? 0 : getMediaConnectFlows().hashCode()); hashCode = prime * hashCode + ((getName() == null) ? 0 : getName().hashCode()); hashCode = prime * hashCode + ((getRoleArn() == null) ? 0 : getRoleArn().hashCode()); hashCode = prime * hashCode + ((getSecurityGroups() == null) ? 0 : getSecurityGroups().hashCode()); hashCode = prime * hashCode + ((getSources() == null) ? 0 : getSources().hashCode()); hashCode = prime * hashCode + ((getState() == null) ? 0 : getState().hashCode()); hashCode = prime * hashCode + ((getTags() == null) ? 0 : getTags().hashCode()); hashCode = prime * hashCode + ((getType() == null) ? 0 : getType().hashCode()); return hashCode; } @Override public DescribeInputResult clone() { try { return (DescribeInputResult) 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