(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();
}
}