(inputConfigurations);
}
/**
* The transport parameters that you want to associate with the media stream.
*
* NOTE: This method appends the values to the existing list (if any). Use
* {@link #setInputConfigurations(java.util.Collection)} or {@link #withInputConfigurations(java.util.Collection)}
* if you want to override the existing values.
*
*
* @param inputConfigurations
* The transport parameters that you want to associate with the media stream.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public MediaStreamSourceConfigurationRequest withInputConfigurations(InputConfigurationRequest... inputConfigurations) {
if (this.inputConfigurations == null) {
setInputConfigurations(new java.util.ArrayList(inputConfigurations.length));
}
for (InputConfigurationRequest ele : inputConfigurations) {
this.inputConfigurations.add(ele);
}
return this;
}
/**
* The transport parameters that you want to associate with the media stream.
*
* @param inputConfigurations
* The transport parameters that you want to associate with the media stream.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public MediaStreamSourceConfigurationRequest withInputConfigurations(java.util.Collection inputConfigurations) {
setInputConfigurations(inputConfigurations);
return this;
}
/**
* The name of the media stream.
*
* @param mediaStreamName
* The name of the media stream.
*/
public void setMediaStreamName(String mediaStreamName) {
this.mediaStreamName = mediaStreamName;
}
/**
* The name of the media stream.
*
* @return The name of the media stream.
*/
public String getMediaStreamName() {
return this.mediaStreamName;
}
/**
* The name of the media stream.
*
* @param mediaStreamName
* The name of the media stream.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public MediaStreamSourceConfigurationRequest withMediaStreamName(String mediaStreamName) {
setMediaStreamName(mediaStreamName);
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 (getEncodingName() != null)
sb.append("EncodingName: ").append(getEncodingName()).append(",");
if (getInputConfigurations() != null)
sb.append("InputConfigurations: ").append(getInputConfigurations()).append(",");
if (getMediaStreamName() != null)
sb.append("MediaStreamName: ").append(getMediaStreamName());
sb.append("}");
return sb.toString();
}
@Override
public boolean equals(Object obj) {
if (this == obj)
return true;
if (obj == null)
return false;
if (obj instanceof MediaStreamSourceConfigurationRequest == false)
return false;
MediaStreamSourceConfigurationRequest other = (MediaStreamSourceConfigurationRequest) obj;
if (other.getEncodingName() == null ^ this.getEncodingName() == null)
return false;
if (other.getEncodingName() != null && other.getEncodingName().equals(this.getEncodingName()) == false)
return false;
if (other.getInputConfigurations() == null ^ this.getInputConfigurations() == null)
return false;
if (other.getInputConfigurations() != null && other.getInputConfigurations().equals(this.getInputConfigurations()) == false)
return false;
if (other.getMediaStreamName() == null ^ this.getMediaStreamName() == null)
return false;
if (other.getMediaStreamName() != null && other.getMediaStreamName().equals(this.getMediaStreamName()) == false)
return false;
return true;
}
@Override
public int hashCode() {
final int prime = 31;
int hashCode = 1;
hashCode = prime * hashCode + ((getEncodingName() == null) ? 0 : getEncodingName().hashCode());
hashCode = prime * hashCode + ((getInputConfigurations() == null) ? 0 : getInputConfigurations().hashCode());
hashCode = prime * hashCode + ((getMediaStreamName() == null) ? 0 : getMediaStreamName().hashCode());
return hashCode;
}
@Override
public MediaStreamSourceConfigurationRequest clone() {
try {
return (MediaStreamSourceConfigurationRequest) super.clone();
} catch (CloneNotSupportedException e) {
throw new IllegalStateException("Got a CloneNotSupportedException from Object.clone() " + "even though we're Cloneable!", e);
}
}
@com.amazonaws.annotation.SdkInternalApi
@Override
public void marshall(ProtocolMarshaller protocolMarshaller) {
com.amazonaws.services.mediaconnect.model.transform.MediaStreamSourceConfigurationRequestMarshaller.getInstance().marshall(this, protocolMarshaller);
}
}