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

com.amazonaws.services.medialive.model.UpdateInputRequest 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;

import com.amazonaws.AmazonWebServiceRequest;

/**
 * A request to update an input.
 * 
 * @see AWS API
 *      Documentation
 */
@Generated("com.amazonaws:aws-java-sdk-code-generator")
public class UpdateInputRequest extends com.amazonaws.AmazonWebServiceRequest implements Serializable, Cloneable {

    /** Destination settings for PUSH type inputs. */
    private java.util.List destinations;
    /** Settings for the devices. */
    private java.util.List inputDevices;
    /** Unique ID of the input. */
    private String inputId;
    /** A list of security groups referenced by IDs to attach to the input. */
    private java.util.List inputSecurityGroups;
    /**
     * A list of the MediaConnect Flow ARNs that you want to use as the source of the input. You can specify as few as
     * one Flow and presently, as many as two. The only requirement is when you have more than one is that each Flow is
     * in a separate Availability Zone as this ensures your EML input is redundant to AZ issues.
     */
    private java.util.List mediaConnectFlows;
    /** Name of the input. */
    private String name;
    /** The Amazon Resource Name (ARN) of the role this input assumes during and after creation. */
    private String roleArn;
    /**
     * The source URLs for a PULL-type input. Every PULL type input needs exactly two source URLs for redundancy. Only
     * specify sources for PULL type Inputs. Leave Destinations empty.
     */
    private java.util.List sources;

    /**
     * Destination settings for PUSH type inputs.
     * 
     * @return Destination settings for PUSH type inputs.
     */

    public java.util.List getDestinations() {
        return destinations;
    }

    /**
     * Destination settings for PUSH type inputs.
     * 
     * @param destinations
     *        Destination settings for PUSH type inputs.
     */

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

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

    /**
     * Destination settings for PUSH type inputs.
     * 

* 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 * Destination settings for PUSH type inputs. * @return Returns a reference to this object so that method calls can be chained together. */ public UpdateInputRequest withDestinations(InputDestinationRequest... destinations) { if (this.destinations == null) { setDestinations(new java.util.ArrayList(destinations.length)); } for (InputDestinationRequest ele : destinations) { this.destinations.add(ele); } return this; } /** * Destination settings for PUSH type inputs. * * @param destinations * Destination settings for PUSH type inputs. * @return Returns a reference to this object so that method calls can be chained together. */ public UpdateInputRequest withDestinations(java.util.Collection destinations) { setDestinations(destinations); return this; } /** * Settings for the devices. * * @return Settings for the devices. */ public java.util.List getInputDevices() { return inputDevices; } /** * Settings for the devices. * * @param inputDevices * Settings for the 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 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 devices. * @return Returns a reference to this object so that method calls can be chained together. */ public UpdateInputRequest withInputDevices(InputDeviceRequest... inputDevices) { if (this.inputDevices == null) { setInputDevices(new java.util.ArrayList(inputDevices.length)); } for (InputDeviceRequest ele : inputDevices) { this.inputDevices.add(ele); } return this; } /** * Settings for the devices. * * @param inputDevices * Settings for the devices. * @return Returns a reference to this object so that method calls can be chained together. */ public UpdateInputRequest withInputDevices(java.util.Collection inputDevices) { setInputDevices(inputDevices); return this; } /** * Unique ID of the input. * * @param inputId * Unique ID of the input. */ public void setInputId(String inputId) { this.inputId = inputId; } /** * Unique ID of the input. * * @return Unique ID of the input. */ public String getInputId() { return this.inputId; } /** * Unique ID of the input. * * @param inputId * Unique ID of the input. * @return Returns a reference to this object so that method calls can be chained together. */ public UpdateInputRequest withInputId(String inputId) { setInputId(inputId); return this; } /** * A list of security groups referenced by IDs to attach to the input. * * @return A list of security groups referenced by IDs to attach to the input. */ public java.util.List getInputSecurityGroups() { return inputSecurityGroups; } /** * A list of security groups referenced by IDs to attach to the input. * * @param inputSecurityGroups * A list of security groups referenced by IDs to attach to the input. */ public void setInputSecurityGroups(java.util.Collection inputSecurityGroups) { if (inputSecurityGroups == null) { this.inputSecurityGroups = null; return; } this.inputSecurityGroups = new java.util.ArrayList(inputSecurityGroups); } /** * A list of security groups referenced by IDs to attach to the input. *

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

* * @param inputSecurityGroups * A list of security groups referenced by IDs to attach to the input. * @return Returns a reference to this object so that method calls can be chained together. */ public UpdateInputRequest withInputSecurityGroups(String... inputSecurityGroups) { if (this.inputSecurityGroups == null) { setInputSecurityGroups(new java.util.ArrayList(inputSecurityGroups.length)); } for (String ele : inputSecurityGroups) { this.inputSecurityGroups.add(ele); } return this; } /** * A list of security groups referenced by IDs to attach to the input. * * @param inputSecurityGroups * A list of security groups referenced by IDs to attach to the input. * @return Returns a reference to this object so that method calls can be chained together. */ public UpdateInputRequest withInputSecurityGroups(java.util.Collection inputSecurityGroups) { setInputSecurityGroups(inputSecurityGroups); return this; } /** * A list of the MediaConnect Flow ARNs that you want to use as the source of the input. You can specify as few as * one Flow and presently, as many as two. The only requirement is when you have more than one is that each Flow is * in a separate Availability Zone as this ensures your EML input is redundant to AZ issues. * * @return A list of the MediaConnect Flow ARNs that you want to use as the source of the input. You can specify as * few as one Flow and presently, as many as two. The only requirement is when you have more than one is * that each Flow is in a separate Availability Zone as this ensures your EML input is redundant to AZ * issues. */ public java.util.List getMediaConnectFlows() { return mediaConnectFlows; } /** * A list of the MediaConnect Flow ARNs that you want to use as the source of the input. You can specify as few as * one Flow and presently, as many as two. The only requirement is when you have more than one is that each Flow is * in a separate Availability Zone as this ensures your EML input is redundant to AZ issues. * * @param mediaConnectFlows * A list of the MediaConnect Flow ARNs that you want to use as the source of the input. You can specify as * few as one Flow and presently, as many as two. The only requirement is when you have more than one is that * each Flow is in a separate Availability Zone as this ensures your EML input is redundant to AZ issues. */ public void setMediaConnectFlows(java.util.Collection mediaConnectFlows) { if (mediaConnectFlows == null) { this.mediaConnectFlows = null; return; } this.mediaConnectFlows = new java.util.ArrayList(mediaConnectFlows); } /** * A list of the MediaConnect Flow ARNs that you want to use as the source of the input. You can specify as few as * one Flow and presently, as many as two. The only requirement is when you have more than one is that each Flow is * in a separate Availability Zone as this ensures your EML input is redundant to AZ issues. * *

* 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 the MediaConnect Flow ARNs that you want to use as the source of the input. You can specify as * few as one Flow and presently, as many as two. The only requirement is when you have more than one is that * each Flow is in a separate Availability Zone as this ensures your EML input is redundant to AZ issues. * @return Returns a reference to this object so that method calls can be chained together. */ public UpdateInputRequest withMediaConnectFlows(MediaConnectFlowRequest... mediaConnectFlows) { if (this.mediaConnectFlows == null) { setMediaConnectFlows(new java.util.ArrayList(mediaConnectFlows.length)); } for (MediaConnectFlowRequest ele : mediaConnectFlows) { this.mediaConnectFlows.add(ele); } return this; } /** * A list of the MediaConnect Flow ARNs that you want to use as the source of the input. You can specify as few as * one Flow and presently, as many as two. The only requirement is when you have more than one is that each Flow is * in a separate Availability Zone as this ensures your EML input is redundant to AZ issues. * * @param mediaConnectFlows * A list of the MediaConnect Flow ARNs that you want to use as the source of the input. You can specify as * few as one Flow and presently, as many as two. The only requirement is when you have more than one is that * each Flow is in a separate Availability Zone as this ensures your EML input is redundant to AZ issues. * @return Returns a reference to this object so that method calls can be chained together. */ public UpdateInputRequest withMediaConnectFlows(java.util.Collection mediaConnectFlows) { setMediaConnectFlows(mediaConnectFlows); return this; } /** * Name of the input. * * @param name * Name of the input. */ public void setName(String name) { this.name = name; } /** * Name of the input. * * @return Name of the input. */ public String getName() { return this.name; } /** * Name of the input. * * @param name * Name of the input. * @return Returns a reference to this object so that method calls can be chained together. */ public UpdateInputRequest 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 UpdateInputRequest withRoleArn(String roleArn) { setRoleArn(roleArn); return this; } /** * The source URLs for a PULL-type input. Every PULL type input needs exactly two source URLs for redundancy. Only * specify sources for PULL type Inputs. Leave Destinations empty. * * @return The source URLs for a PULL-type input. Every PULL type input needs exactly two source URLs for * redundancy. Only specify sources for PULL type Inputs. Leave Destinations empty. */ public java.util.List getSources() { return sources; } /** * The source URLs for a PULL-type input. Every PULL type input needs exactly two source URLs for redundancy. Only * specify sources for PULL type Inputs. Leave Destinations empty. * * @param sources * The source URLs for a PULL-type input. Every PULL type input needs exactly two source URLs for redundancy. * Only specify sources for PULL type Inputs. Leave Destinations empty. */ public void setSources(java.util.Collection sources) { if (sources == null) { this.sources = null; return; } this.sources = new java.util.ArrayList(sources); } /** * The source URLs for a PULL-type input. Every PULL type input needs exactly two source URLs for redundancy. Only * specify sources for PULL type Inputs. Leave Destinations empty. * *

* 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 * The source URLs for a PULL-type input. Every PULL type input needs exactly two source URLs for redundancy. * Only specify sources for PULL type Inputs. Leave Destinations empty. * @return Returns a reference to this object so that method calls can be chained together. */ public UpdateInputRequest withSources(InputSourceRequest... sources) { if (this.sources == null) { setSources(new java.util.ArrayList(sources.length)); } for (InputSourceRequest ele : sources) { this.sources.add(ele); } return this; } /** * The source URLs for a PULL-type input. Every PULL type input needs exactly two source URLs for redundancy. Only * specify sources for PULL type Inputs. Leave Destinations empty. * * @param sources * The source URLs for a PULL-type input. Every PULL type input needs exactly two source URLs for redundancy. * Only specify sources for PULL type Inputs. Leave Destinations empty. * @return Returns a reference to this object so that method calls can be chained together. */ public UpdateInputRequest withSources(java.util.Collection sources) { setSources(sources); 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 (getDestinations() != null) sb.append("Destinations: ").append(getDestinations()).append(","); if (getInputDevices() != null) sb.append("InputDevices: ").append(getInputDevices()).append(","); if (getInputId() != null) sb.append("InputId: ").append(getInputId()).append(","); if (getInputSecurityGroups() != null) sb.append("InputSecurityGroups: ").append(getInputSecurityGroups()).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 (getSources() != null) sb.append("Sources: ").append(getSources()); sb.append("}"); return sb.toString(); } @Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof UpdateInputRequest == false) return false; UpdateInputRequest other = (UpdateInputRequest) obj; if (other.getDestinations() == null ^ this.getDestinations() == null) return false; if (other.getDestinations() != null && other.getDestinations().equals(this.getDestinations()) == 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.getInputId() == null ^ this.getInputId() == null) return false; if (other.getInputId() != null && other.getInputId().equals(this.getInputId()) == false) return false; if (other.getInputSecurityGroups() == null ^ this.getInputSecurityGroups() == null) return false; if (other.getInputSecurityGroups() != null && other.getInputSecurityGroups().equals(this.getInputSecurityGroups()) == 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.getSources() == null ^ this.getSources() == null) return false; if (other.getSources() != null && other.getSources().equals(this.getSources()) == false) return false; return true; } @Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getDestinations() == null) ? 0 : getDestinations().hashCode()); hashCode = prime * hashCode + ((getInputDevices() == null) ? 0 : getInputDevices().hashCode()); hashCode = prime * hashCode + ((getInputId() == null) ? 0 : getInputId().hashCode()); hashCode = prime * hashCode + ((getInputSecurityGroups() == null) ? 0 : getInputSecurityGroups().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 + ((getSources() == null) ? 0 : getSources().hashCode()); return hashCode; } @Override public UpdateInputRequest clone() { return (UpdateInputRequest) super.clone(); } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy