com.amazonaws.services.mediatailor.model.UpdateChannelRequest Maven / Gradle / Ivy
Show all versions of aws-java-sdk-mediatailor Show documentation
/*
* Copyright 2019-2024 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.mediatailor.model;
import java.io.Serializable;
import javax.annotation.Generated;
import com.amazonaws.AmazonWebServiceRequest;
/**
*
* @see AWS API
* Documentation
*/
@Generated("com.amazonaws:aws-java-sdk-code-generator")
public class UpdateChannelRequest extends com.amazonaws.AmazonWebServiceRequest implements Serializable, Cloneable {
/**
*
* The list of audiences defined in channel.
*
*/
private java.util.List audiences;
/**
*
* The name of the channel.
*
*/
private String channelName;
/**
*
* The slate used to fill gaps between programs in the schedule. You must configure filler slate if your channel
* uses the LINEAR
PlaybackMode
. MediaTailor doesn't support filler slate for channels
* using the LOOP
PlaybackMode
.
*
*/
private SlateSource fillerSlate;
/**
*
* The channel's output properties.
*
*/
private java.util.List outputs;
/**
*
* The time-shifted viewing configuration you want to associate to the channel.
*
*/
private TimeShiftConfiguration timeShiftConfiguration;
/**
*
* The list of audiences defined in channel.
*
*
* @return The list of audiences defined in channel.
*/
public java.util.List getAudiences() {
return audiences;
}
/**
*
* The list of audiences defined in channel.
*
*
* @param audiences
* The list of audiences defined in channel.
*/
public void setAudiences(java.util.Collection audiences) {
if (audiences == null) {
this.audiences = null;
return;
}
this.audiences = new java.util.ArrayList(audiences);
}
/**
*
* The list of audiences defined in channel.
*
*
* NOTE: This method appends the values to the existing list (if any). Use
* {@link #setAudiences(java.util.Collection)} or {@link #withAudiences(java.util.Collection)} if you want to
* override the existing values.
*
*
* @param audiences
* The list of audiences defined in channel.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public UpdateChannelRequest withAudiences(String... audiences) {
if (this.audiences == null) {
setAudiences(new java.util.ArrayList(audiences.length));
}
for (String ele : audiences) {
this.audiences.add(ele);
}
return this;
}
/**
*
* The list of audiences defined in channel.
*
*
* @param audiences
* The list of audiences defined in channel.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public UpdateChannelRequest withAudiences(java.util.Collection audiences) {
setAudiences(audiences);
return this;
}
/**
*
* The name of the channel.
*
*
* @param channelName
* The name of the channel.
*/
public void setChannelName(String channelName) {
this.channelName = channelName;
}
/**
*
* The name of the channel.
*
*
* @return The name of the channel.
*/
public String getChannelName() {
return this.channelName;
}
/**
*
* The name of the channel.
*
*
* @param channelName
* The name of the channel.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public UpdateChannelRequest withChannelName(String channelName) {
setChannelName(channelName);
return this;
}
/**
*
* The slate used to fill gaps between programs in the schedule. You must configure filler slate if your channel
* uses the LINEAR
PlaybackMode
. MediaTailor doesn't support filler slate for channels
* using the LOOP
PlaybackMode
.
*
*
* @param fillerSlate
* The slate used to fill gaps between programs in the schedule. You must configure filler slate if your
* channel uses the LINEAR
PlaybackMode
. MediaTailor doesn't support filler slate
* for channels using the LOOP
PlaybackMode
.
*/
public void setFillerSlate(SlateSource fillerSlate) {
this.fillerSlate = fillerSlate;
}
/**
*
* The slate used to fill gaps between programs in the schedule. You must configure filler slate if your channel
* uses the LINEAR
PlaybackMode
. MediaTailor doesn't support filler slate for channels
* using the LOOP
PlaybackMode
.
*
*
* @return The slate used to fill gaps between programs in the schedule. You must configure filler slate if your
* channel uses the LINEAR
PlaybackMode
. MediaTailor doesn't support filler slate
* for channels using the LOOP
PlaybackMode
.
*/
public SlateSource getFillerSlate() {
return this.fillerSlate;
}
/**
*
* The slate used to fill gaps between programs in the schedule. You must configure filler slate if your channel
* uses the LINEAR
PlaybackMode
. MediaTailor doesn't support filler slate for channels
* using the LOOP
PlaybackMode
.
*
*
* @param fillerSlate
* The slate used to fill gaps between programs in the schedule. You must configure filler slate if your
* channel uses the LINEAR
PlaybackMode
. MediaTailor doesn't support filler slate
* for channels using the LOOP
PlaybackMode
.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public UpdateChannelRequest withFillerSlate(SlateSource fillerSlate) {
setFillerSlate(fillerSlate);
return this;
}
/**
*
* The channel's output properties.
*
*
* @return The channel's output properties.
*/
public java.util.List getOutputs() {
return outputs;
}
/**
*
* The channel's output properties.
*
*
* @param outputs
* The channel's output properties.
*/
public void setOutputs(java.util.Collection outputs) {
if (outputs == null) {
this.outputs = null;
return;
}
this.outputs = new java.util.ArrayList(outputs);
}
/**
*
* The channel's output properties.
*
*
* NOTE: This method appends the values to the existing list (if any). Use
* {@link #setOutputs(java.util.Collection)} or {@link #withOutputs(java.util.Collection)} if you want to override
* the existing values.
*
*
* @param outputs
* The channel's output properties.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public UpdateChannelRequest withOutputs(RequestOutputItem... outputs) {
if (this.outputs == null) {
setOutputs(new java.util.ArrayList(outputs.length));
}
for (RequestOutputItem ele : outputs) {
this.outputs.add(ele);
}
return this;
}
/**
*
* The channel's output properties.
*
*
* @param outputs
* The channel's output properties.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public UpdateChannelRequest withOutputs(java.util.Collection outputs) {
setOutputs(outputs);
return this;
}
/**
*
* The time-shifted viewing configuration you want to associate to the channel.
*
*
* @param timeShiftConfiguration
* The time-shifted viewing configuration you want to associate to the channel.
*/
public void setTimeShiftConfiguration(TimeShiftConfiguration timeShiftConfiguration) {
this.timeShiftConfiguration = timeShiftConfiguration;
}
/**
*
* The time-shifted viewing configuration you want to associate to the channel.
*
*
* @return The time-shifted viewing configuration you want to associate to the channel.
*/
public TimeShiftConfiguration getTimeShiftConfiguration() {
return this.timeShiftConfiguration;
}
/**
*
* The time-shifted viewing configuration you want to associate to the channel.
*
*
* @param timeShiftConfiguration
* The time-shifted viewing configuration you want to associate to the channel.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public UpdateChannelRequest withTimeShiftConfiguration(TimeShiftConfiguration timeShiftConfiguration) {
setTimeShiftConfiguration(timeShiftConfiguration);
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 (getAudiences() != null)
sb.append("Audiences: ").append(getAudiences()).append(",");
if (getChannelName() != null)
sb.append("ChannelName: ").append(getChannelName()).append(",");
if (getFillerSlate() != null)
sb.append("FillerSlate: ").append(getFillerSlate()).append(",");
if (getOutputs() != null)
sb.append("Outputs: ").append(getOutputs()).append(",");
if (getTimeShiftConfiguration() != null)
sb.append("TimeShiftConfiguration: ").append(getTimeShiftConfiguration());
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.getAudiences() == null ^ this.getAudiences() == null)
return false;
if (other.getAudiences() != null && other.getAudiences().equals(this.getAudiences()) == false)
return false;
if (other.getChannelName() == null ^ this.getChannelName() == null)
return false;
if (other.getChannelName() != null && other.getChannelName().equals(this.getChannelName()) == false)
return false;
if (other.getFillerSlate() == null ^ this.getFillerSlate() == null)
return false;
if (other.getFillerSlate() != null && other.getFillerSlate().equals(this.getFillerSlate()) == false)
return false;
if (other.getOutputs() == null ^ this.getOutputs() == null)
return false;
if (other.getOutputs() != null && other.getOutputs().equals(this.getOutputs()) == false)
return false;
if (other.getTimeShiftConfiguration() == null ^ this.getTimeShiftConfiguration() == null)
return false;
if (other.getTimeShiftConfiguration() != null && other.getTimeShiftConfiguration().equals(this.getTimeShiftConfiguration()) == false)
return false;
return true;
}
@Override
public int hashCode() {
final int prime = 31;
int hashCode = 1;
hashCode = prime * hashCode + ((getAudiences() == null) ? 0 : getAudiences().hashCode());
hashCode = prime * hashCode + ((getChannelName() == null) ? 0 : getChannelName().hashCode());
hashCode = prime * hashCode + ((getFillerSlate() == null) ? 0 : getFillerSlate().hashCode());
hashCode = prime * hashCode + ((getOutputs() == null) ? 0 : getOutputs().hashCode());
hashCode = prime * hashCode + ((getTimeShiftConfiguration() == null) ? 0 : getTimeShiftConfiguration().hashCode());
return hashCode;
}
@Override
public UpdateChannelRequest clone() {
return (UpdateChannelRequest) super.clone();
}
}