(urlPath);
}
/**
* The value for the variable portion of the URL for the dynamic input, for this instance of the input. Each time
* you use the same dynamic input in an input switch action, you can provide a different value, in order to connect
* the input to a different content source.
*
* NOTE: This method appends the values to the existing list (if any). Use
* {@link #setUrlPath(java.util.Collection)} or {@link #withUrlPath(java.util.Collection)} if you want to override
* the existing values.
*
*
* @param urlPath
* The value for the variable portion of the URL for the dynamic input, for this instance of the input. Each
* time you use the same dynamic input in an input switch action, you can provide a different value, in order
* to connect the input to a different content source.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public InputPrepareScheduleActionSettings withUrlPath(String... urlPath) {
if (this.urlPath == null) {
setUrlPath(new java.util.ArrayList(urlPath.length));
}
for (String ele : urlPath) {
this.urlPath.add(ele);
}
return this;
}
/**
* The value for the variable portion of the URL for the dynamic input, for this instance of the input. Each time
* you use the same dynamic input in an input switch action, you can provide a different value, in order to connect
* the input to a different content source.
*
* @param urlPath
* The value for the variable portion of the URL for the dynamic input, for this instance of the input. Each
* time you use the same dynamic input in an input switch action, you can provide a different value, in order
* to connect the input to a different content source.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public InputPrepareScheduleActionSettings withUrlPath(java.util.Collection urlPath) {
setUrlPath(urlPath);
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 (getInputAttachmentNameReference() != null)
sb.append("InputAttachmentNameReference: ").append(getInputAttachmentNameReference()).append(",");
if (getInputClippingSettings() != null)
sb.append("InputClippingSettings: ").append(getInputClippingSettings()).append(",");
if (getUrlPath() != null)
sb.append("UrlPath: ").append(getUrlPath());
sb.append("}");
return sb.toString();
}
@Override
public boolean equals(Object obj) {
if (this == obj)
return true;
if (obj == null)
return false;
if (obj instanceof InputPrepareScheduleActionSettings == false)
return false;
InputPrepareScheduleActionSettings other = (InputPrepareScheduleActionSettings) obj;
if (other.getInputAttachmentNameReference() == null ^ this.getInputAttachmentNameReference() == null)
return false;
if (other.getInputAttachmentNameReference() != null && other.getInputAttachmentNameReference().equals(this.getInputAttachmentNameReference()) == false)
return false;
if (other.getInputClippingSettings() == null ^ this.getInputClippingSettings() == null)
return false;
if (other.getInputClippingSettings() != null && other.getInputClippingSettings().equals(this.getInputClippingSettings()) == false)
return false;
if (other.getUrlPath() == null ^ this.getUrlPath() == null)
return false;
if (other.getUrlPath() != null && other.getUrlPath().equals(this.getUrlPath()) == false)
return false;
return true;
}
@Override
public int hashCode() {
final int prime = 31;
int hashCode = 1;
hashCode = prime * hashCode + ((getInputAttachmentNameReference() == null) ? 0 : getInputAttachmentNameReference().hashCode());
hashCode = prime * hashCode + ((getInputClippingSettings() == null) ? 0 : getInputClippingSettings().hashCode());
hashCode = prime * hashCode + ((getUrlPath() == null) ? 0 : getUrlPath().hashCode());
return hashCode;
}
@Override
public InputPrepareScheduleActionSettings clone() {
try {
return (InputPrepareScheduleActionSettings) 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.medialive.model.transform.InputPrepareScheduleActionSettingsMarshaller.getInstance().marshall(this, protocolMarshaller);
}
}