(inputAttachments);
}
/**
*
* NOTE: This method appends the values to the existing list (if any). Use
* {@link #setInputAttachments(java.util.Collection)} or {@link #withInputAttachments(java.util.Collection)} if you
* want to override the existing values.
*
*
* @param inputAttachments
* @return Returns a reference to this object so that method calls can be chained together.
*/
public UpdateChannelRequest withInputAttachments(InputAttachment... inputAttachments) {
if (this.inputAttachments == null) {
setInputAttachments(new java.util.ArrayList(inputAttachments.length));
}
for (InputAttachment ele : inputAttachments) {
this.inputAttachments.add(ele);
}
return this;
}
/**
* @param inputAttachments
* @return Returns a reference to this object so that method calls can be chained together.
*/
public UpdateChannelRequest withInputAttachments(java.util.Collection inputAttachments) {
setInputAttachments(inputAttachments);
return this;
}
/**
* Specification of network and file inputs for this channel
*
* @param inputSpecification
* Specification of network and file inputs for this channel
*/
public void setInputSpecification(InputSpecification inputSpecification) {
this.inputSpecification = inputSpecification;
}
/**
* Specification of network and file inputs for this channel
*
* @return Specification of network and file inputs for this channel
*/
public InputSpecification getInputSpecification() {
return this.inputSpecification;
}
/**
* Specification of network and file inputs for this channel
*
* @param inputSpecification
* Specification of network and file inputs for this channel
* @return Returns a reference to this object so that method calls can be chained together.
*/
public UpdateChannelRequest withInputSpecification(InputSpecification inputSpecification) {
setInputSpecification(inputSpecification);
return this;
}
/**
* The log level to write to CloudWatch Logs.
*
* @param logLevel
* The log level to write to CloudWatch Logs.
* @see LogLevel
*/
public void setLogLevel(String logLevel) {
this.logLevel = logLevel;
}
/**
* The log level to write to CloudWatch Logs.
*
* @return The log level to write to CloudWatch Logs.
* @see LogLevel
*/
public String getLogLevel() {
return this.logLevel;
}
/**
* The log level to write to CloudWatch Logs.
*
* @param logLevel
* The log level to write to CloudWatch Logs.
* @return Returns a reference to this object so that method calls can be chained together.
* @see LogLevel
*/
public UpdateChannelRequest withLogLevel(String logLevel) {
setLogLevel(logLevel);
return this;
}
/**
* The log level to write to CloudWatch Logs.
*
* @param logLevel
* The log level to write to CloudWatch Logs.
* @return Returns a reference to this object so that method calls can be chained together.
* @see LogLevel
*/
public UpdateChannelRequest withLogLevel(LogLevel logLevel) {
this.logLevel = logLevel.toString();
return this;
}
/**
* Maintenance settings for this channel.
*
* @param maintenance
* Maintenance settings for this channel.
*/
public void setMaintenance(MaintenanceUpdateSettings maintenance) {
this.maintenance = maintenance;
}
/**
* Maintenance settings for this channel.
*
* @return Maintenance settings for this channel.
*/
public MaintenanceUpdateSettings getMaintenance() {
return this.maintenance;
}
/**
* Maintenance settings for this channel.
*
* @param maintenance
* Maintenance settings for this channel.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public UpdateChannelRequest withMaintenance(MaintenanceUpdateSettings maintenance) {
setMaintenance(maintenance);
return this;
}
/**
* The name of the channel.
*
* @param name
* The name of the channel.
*/
public void setName(String name) {
this.name = name;
}
/**
* The name of the channel.
*
* @return The name of the channel.
*/
public String getName() {
return this.name;
}
/**
* The name of the channel.
*
* @param name
* The name of the channel.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public UpdateChannelRequest withName(String name) {
setName(name);
return this;
}
/**
* An optional Amazon Resource Name (ARN) of the role to assume when running the Channel. If you do not specify this
* on an update call but the role was previously set that role will be removed.
*
* @param roleArn
* An optional Amazon Resource Name (ARN) of the role to assume when running the Channel. If you do not
* specify this on an update call but the role was previously set that role will be removed.
*/
public void setRoleArn(String roleArn) {
this.roleArn = roleArn;
}
/**
* An optional Amazon Resource Name (ARN) of the role to assume when running the Channel. If you do not specify this
* on an update call but the role was previously set that role will be removed.
*
* @return An optional Amazon Resource Name (ARN) of the role to assume when running the Channel. If you do not
* specify this on an update call but the role was previously set that role will be removed.
*/
public String getRoleArn() {
return this.roleArn;
}
/**
* An optional Amazon Resource Name (ARN) of the role to assume when running the Channel. If you do not specify this
* on an update call but the role was previously set that role will be removed.
*
* @param roleArn
* An optional Amazon Resource Name (ARN) of the role to assume when running the Channel. If you do not
* specify this on an update call but the role was previously set that role will be removed.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public UpdateChannelRequest withRoleArn(String roleArn) {
setRoleArn(roleArn);
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 (getCdiInputSpecification() != null)
sb.append("CdiInputSpecification: ").append(getCdiInputSpecification()).append(",");
if (getChannelId() != null)
sb.append("ChannelId: ").append(getChannelId()).append(",");
if (getDestinations() != null)
sb.append("Destinations: ").append(getDestinations()).append(",");
if (getEncoderSettings() != null)
sb.append("EncoderSettings: ").append(getEncoderSettings()).append(",");
if (getInputAttachments() != null)
sb.append("InputAttachments: ").append(getInputAttachments()).append(",");
if (getInputSpecification() != null)
sb.append("InputSpecification: ").append(getInputSpecification()).append(",");
if (getLogLevel() != null)
sb.append("LogLevel: ").append(getLogLevel()).append(",");
if (getMaintenance() != null)
sb.append("Maintenance: ").append(getMaintenance()).append(",");
if (getName() != null)
sb.append("Name: ").append(getName()).append(",");
if (getRoleArn() != null)
sb.append("RoleArn: ").append(getRoleArn());
sb.append("}");
return sb.toString();
}
@Override
public boolean equals(Object obj) {
if (this == obj)
return true;
if (obj == null)
return false;
if (obj instanceof UpdateChannelRequest == false)
return false;
UpdateChannelRequest other = (UpdateChannelRequest) obj;
if (other.getCdiInputSpecification() == null ^ this.getCdiInputSpecification() == null)
return false;
if (other.getCdiInputSpecification() != null && other.getCdiInputSpecification().equals(this.getCdiInputSpecification()) == false)
return false;
if (other.getChannelId() == null ^ this.getChannelId() == null)
return false;
if (other.getChannelId() != null && other.getChannelId().equals(this.getChannelId()) == 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.getEncoderSettings() == null ^ this.getEncoderSettings() == null)
return false;
if (other.getEncoderSettings() != null && other.getEncoderSettings().equals(this.getEncoderSettings()) == false)
return false;
if (other.getInputAttachments() == null ^ this.getInputAttachments() == null)
return false;
if (other.getInputAttachments() != null && other.getInputAttachments().equals(this.getInputAttachments()) == false)
return false;
if (other.getInputSpecification() == null ^ this.getInputSpecification() == null)
return false;
if (other.getInputSpecification() != null && other.getInputSpecification().equals(this.getInputSpecification()) == false)
return false;
if (other.getLogLevel() == null ^ this.getLogLevel() == null)
return false;
if (other.getLogLevel() != null && other.getLogLevel().equals(this.getLogLevel()) == false)
return false;
if (other.getMaintenance() == null ^ this.getMaintenance() == null)
return false;
if (other.getMaintenance() != null && other.getMaintenance().equals(this.getMaintenance()) == 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;
return true;
}
@Override
public int hashCode() {
final int prime = 31;
int hashCode = 1;
hashCode = prime * hashCode + ((getCdiInputSpecification() == null) ? 0 : getCdiInputSpecification().hashCode());
hashCode = prime * hashCode + ((getChannelId() == null) ? 0 : getChannelId().hashCode());
hashCode = prime * hashCode + ((getDestinations() == null) ? 0 : getDestinations().hashCode());
hashCode = prime * hashCode + ((getEncoderSettings() == null) ? 0 : getEncoderSettings().hashCode());
hashCode = prime * hashCode + ((getInputAttachments() == null) ? 0 : getInputAttachments().hashCode());
hashCode = prime * hashCode + ((getInputSpecification() == null) ? 0 : getInputSpecification().hashCode());
hashCode = prime * hashCode + ((getLogLevel() == null) ? 0 : getLogLevel().hashCode());
hashCode = prime * hashCode + ((getMaintenance() == null) ? 0 : getMaintenance().hashCode());
hashCode = prime * hashCode + ((getName() == null) ? 0 : getName().hashCode());
hashCode = prime * hashCode + ((getRoleArn() == null) ? 0 : getRoleArn().hashCode());
return hashCode;
}
@Override
public UpdateChannelRequest clone() {
return (UpdateChannelRequest) super.clone();
}
}