All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.amazonaws.services.mediatailor.model.UpdateChannelResult Maven / Gradle / Ivy

Go to download

The AWS Java SDK for AWS MediaTailor module holds the client classes that are used for communicating with AWS MediaTailor Service

There is a newer version: 1.12.772
Show newest version
/*
 * 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;

/**
 * 
 * @see AWS API
 *      Documentation
 */
@Generated("com.amazonaws:aws-java-sdk-code-generator")
public class UpdateChannelResult extends com.amazonaws.AmazonWebServiceResult implements Serializable, Cloneable {

    /**
     * 

* The Amazon Resource Name (ARN) associated with the channel. *

*/ private String arn; /** *

* The list of audiences defined in channel. *

*/ private java.util.List audiences; /** *

* The name of the channel. *

*/ private String channelName; /** *

* Returns the state whether the channel is running or not. *

*/ private String channelState; /** *

* The timestamp of when the channel was created. *

*/ private java.util.Date creationTime; /** *

* 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 timestamp that indicates when the channel was last modified. *

*/ private java.util.Date lastModifiedTime; /** *

* The channel's output properties. *

*/ private java.util.List outputs; /** *

* The type of playback mode for this channel. *

*

* LINEAR - Programs play back-to-back only once. *

*

* LOOP - Programs play back-to-back in an endless loop. When the last program in the schedule plays, * playback loops back to the first program in the schedule. *

*/ private String playbackMode; /** *

* The tags to assign to the channel. Tags are key-value pairs that you can associate with Amazon resources to help * with organization, access control, and cost tracking. For more information, see Tagging AWS Elemental MediaTailor * Resources. *

*/ private java.util.Map tags; /** *

* The tier associated with this Channel. *

*/ private String tier; /** *

* The time-shifted viewing configuration for the channel. *

*/ private TimeShiftConfiguration timeShiftConfiguration; /** *

* The Amazon Resource Name (ARN) associated with the channel. *

* * @param arn * The Amazon Resource Name (ARN) associated with the channel. */ public void setArn(String arn) { this.arn = arn; } /** *

* The Amazon Resource Name (ARN) associated with the channel. *

* * @return The Amazon Resource Name (ARN) associated with the channel. */ public String getArn() { return this.arn; } /** *

* The Amazon Resource Name (ARN) associated with the channel. *

* * @param arn * The Amazon Resource Name (ARN) associated with the channel. * @return Returns a reference to this object so that method calls can be chained together. */ public UpdateChannelResult withArn(String arn) { setArn(arn); return this; } /** *

* 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 UpdateChannelResult 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 UpdateChannelResult 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 UpdateChannelResult withChannelName(String channelName) { setChannelName(channelName); return this; } /** *

* Returns the state whether the channel is running or not. *

* * @param channelState * Returns the state whether the channel is running or not. * @see ChannelState */ public void setChannelState(String channelState) { this.channelState = channelState; } /** *

* Returns the state whether the channel is running or not. *

* * @return Returns the state whether the channel is running or not. * @see ChannelState */ public String getChannelState() { return this.channelState; } /** *

* Returns the state whether the channel is running or not. *

* * @param channelState * Returns the state whether the channel is running or not. * @return Returns a reference to this object so that method calls can be chained together. * @see ChannelState */ public UpdateChannelResult withChannelState(String channelState) { setChannelState(channelState); return this; } /** *

* Returns the state whether the channel is running or not. *

* * @param channelState * Returns the state whether the channel is running or not. * @return Returns a reference to this object so that method calls can be chained together. * @see ChannelState */ public UpdateChannelResult withChannelState(ChannelState channelState) { this.channelState = channelState.toString(); return this; } /** *

* The timestamp of when the channel was created. *

* * @param creationTime * The timestamp of when the channel was created. */ public void setCreationTime(java.util.Date creationTime) { this.creationTime = creationTime; } /** *

* The timestamp of when the channel was created. *

* * @return The timestamp of when the channel was created. */ public java.util.Date getCreationTime() { return this.creationTime; } /** *

* The timestamp of when the channel was created. *

* * @param creationTime * The timestamp of when the channel was created. * @return Returns a reference to this object so that method calls can be chained together. */ public UpdateChannelResult withCreationTime(java.util.Date creationTime) { setCreationTime(creationTime); 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 UpdateChannelResult withFillerSlate(SlateSource fillerSlate) { setFillerSlate(fillerSlate); return this; } /** *

* The timestamp that indicates when the channel was last modified. *

* * @param lastModifiedTime * The timestamp that indicates when the channel was last modified. */ public void setLastModifiedTime(java.util.Date lastModifiedTime) { this.lastModifiedTime = lastModifiedTime; } /** *

* The timestamp that indicates when the channel was last modified. *

* * @return The timestamp that indicates when the channel was last modified. */ public java.util.Date getLastModifiedTime() { return this.lastModifiedTime; } /** *

* The timestamp that indicates when the channel was last modified. *

* * @param lastModifiedTime * The timestamp that indicates when the channel was last modified. * @return Returns a reference to this object so that method calls can be chained together. */ public UpdateChannelResult withLastModifiedTime(java.util.Date lastModifiedTime) { setLastModifiedTime(lastModifiedTime); 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 UpdateChannelResult withOutputs(ResponseOutputItem... outputs) { if (this.outputs == null) { setOutputs(new java.util.ArrayList(outputs.length)); } for (ResponseOutputItem 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 UpdateChannelResult withOutputs(java.util.Collection outputs) { setOutputs(outputs); return this; } /** *

* The type of playback mode for this channel. *

*

* LINEAR - Programs play back-to-back only once. *

*

* LOOP - Programs play back-to-back in an endless loop. When the last program in the schedule plays, * playback loops back to the first program in the schedule. *

* * @param playbackMode * The type of playback mode for this channel.

*

* LINEAR - Programs play back-to-back only once. *

*

* LOOP - Programs play back-to-back in an endless loop. When the last program in the schedule * plays, playback loops back to the first program in the schedule. */ public void setPlaybackMode(String playbackMode) { this.playbackMode = playbackMode; } /** *

* The type of playback mode for this channel. *

*

* LINEAR - Programs play back-to-back only once. *

*

* LOOP - Programs play back-to-back in an endless loop. When the last program in the schedule plays, * playback loops back to the first program in the schedule. *

* * @return The type of playback mode for this channel.

*

* LINEAR - Programs play back-to-back only once. *

*

* LOOP - Programs play back-to-back in an endless loop. When the last program in the schedule * plays, playback loops back to the first program in the schedule. */ public String getPlaybackMode() { return this.playbackMode; } /** *

* The type of playback mode for this channel. *

*

* LINEAR - Programs play back-to-back only once. *

*

* LOOP - Programs play back-to-back in an endless loop. When the last program in the schedule plays, * playback loops back to the first program in the schedule. *

* * @param playbackMode * The type of playback mode for this channel.

*

* LINEAR - Programs play back-to-back only once. *

*

* LOOP - Programs play back-to-back in an endless loop. When the last program in the schedule * plays, playback loops back to the first program in the schedule. * @return Returns a reference to this object so that method calls can be chained together. */ public UpdateChannelResult withPlaybackMode(String playbackMode) { setPlaybackMode(playbackMode); return this; } /** *

* The tags to assign to the channel. Tags are key-value pairs that you can associate with Amazon resources to help * with organization, access control, and cost tracking. For more information, see Tagging AWS Elemental MediaTailor * Resources. *

* * @return The tags to assign to the channel. Tags are key-value pairs that you can associate with Amazon resources * to help with organization, access control, and cost tracking. For more information, see Tagging AWS Elemental MediaTailor * Resources. */ public java.util.Map getTags() { return tags; } /** *

* The tags to assign to the channel. Tags are key-value pairs that you can associate with Amazon resources to help * with organization, access control, and cost tracking. For more information, see Tagging AWS Elemental MediaTailor * Resources. *

* * @param tags * The tags to assign to the channel. Tags are key-value pairs that you can associate with Amazon resources * to help with organization, access control, and cost tracking. For more information, see Tagging AWS Elemental MediaTailor * Resources. */ public void setTags(java.util.Map tags) { this.tags = tags; } /** *

* The tags to assign to the channel. Tags are key-value pairs that you can associate with Amazon resources to help * with organization, access control, and cost tracking. For more information, see Tagging AWS Elemental MediaTailor * Resources. *

* * @param tags * The tags to assign to the channel. Tags are key-value pairs that you can associate with Amazon resources * to help with organization, access control, and cost tracking. For more information, see Tagging AWS Elemental MediaTailor * Resources. * @return Returns a reference to this object so that method calls can be chained together. */ public UpdateChannelResult withTags(java.util.Map tags) { setTags(tags); return this; } /** * Add a single Tags entry * * @see UpdateChannelResult#withTags * @returns a reference to this object so that method calls can be chained together. */ public UpdateChannelResult addTagsEntry(String key, String value) { if (null == this.tags) { this.tags = new java.util.HashMap(); } if (this.tags.containsKey(key)) throw new IllegalArgumentException("Duplicated keys (" + key.toString() + ") are provided."); this.tags.put(key, value); return this; } /** * Removes all the entries added into Tags. * * @return Returns a reference to this object so that method calls can be chained together. */ public UpdateChannelResult clearTagsEntries() { this.tags = null; return this; } /** *

* The tier associated with this Channel. *

* * @param tier * The tier associated with this Channel. */ public void setTier(String tier) { this.tier = tier; } /** *

* The tier associated with this Channel. *

* * @return The tier associated with this Channel. */ public String getTier() { return this.tier; } /** *

* The tier associated with this Channel. *

* * @param tier * The tier associated with this Channel. * @return Returns a reference to this object so that method calls can be chained together. */ public UpdateChannelResult withTier(String tier) { setTier(tier); return this; } /** *

* The time-shifted viewing configuration for the channel. *

* * @param timeShiftConfiguration * The time-shifted viewing configuration for the channel. */ public void setTimeShiftConfiguration(TimeShiftConfiguration timeShiftConfiguration) { this.timeShiftConfiguration = timeShiftConfiguration; } /** *

* The time-shifted viewing configuration for the channel. *

* * @return The time-shifted viewing configuration for the channel. */ public TimeShiftConfiguration getTimeShiftConfiguration() { return this.timeShiftConfiguration; } /** *

* The time-shifted viewing configuration for the channel. *

* * @param timeShiftConfiguration * The time-shifted viewing configuration for the channel. * @return Returns a reference to this object so that method calls can be chained together. */ public UpdateChannelResult 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 (getArn() != null) sb.append("Arn: ").append(getArn()).append(","); if (getAudiences() != null) sb.append("Audiences: ").append(getAudiences()).append(","); if (getChannelName() != null) sb.append("ChannelName: ").append(getChannelName()).append(","); if (getChannelState() != null) sb.append("ChannelState: ").append(getChannelState()).append(","); if (getCreationTime() != null) sb.append("CreationTime: ").append(getCreationTime()).append(","); if (getFillerSlate() != null) sb.append("FillerSlate: ").append(getFillerSlate()).append(","); if (getLastModifiedTime() != null) sb.append("LastModifiedTime: ").append(getLastModifiedTime()).append(","); if (getOutputs() != null) sb.append("Outputs: ").append(getOutputs()).append(","); if (getPlaybackMode() != null) sb.append("PlaybackMode: ").append(getPlaybackMode()).append(","); if (getTags() != null) sb.append("Tags: ").append(getTags()).append(","); if (getTier() != null) sb.append("Tier: ").append(getTier()).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 UpdateChannelResult == false) return false; UpdateChannelResult other = (UpdateChannelResult) obj; if (other.getArn() == null ^ this.getArn() == null) return false; if (other.getArn() != null && other.getArn().equals(this.getArn()) == false) return false; 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.getChannelState() == null ^ this.getChannelState() == null) return false; if (other.getChannelState() != null && other.getChannelState().equals(this.getChannelState()) == false) return false; if (other.getCreationTime() == null ^ this.getCreationTime() == null) return false; if (other.getCreationTime() != null && other.getCreationTime().equals(this.getCreationTime()) == 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.getLastModifiedTime() == null ^ this.getLastModifiedTime() == null) return false; if (other.getLastModifiedTime() != null && other.getLastModifiedTime().equals(this.getLastModifiedTime()) == 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.getPlaybackMode() == null ^ this.getPlaybackMode() == null) return false; if (other.getPlaybackMode() != null && other.getPlaybackMode().equals(this.getPlaybackMode()) == false) return false; if (other.getTags() == null ^ this.getTags() == null) return false; if (other.getTags() != null && other.getTags().equals(this.getTags()) == false) return false; if (other.getTier() == null ^ this.getTier() == null) return false; if (other.getTier() != null && other.getTier().equals(this.getTier()) == 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 + ((getArn() == null) ? 0 : getArn().hashCode()); hashCode = prime * hashCode + ((getAudiences() == null) ? 0 : getAudiences().hashCode()); hashCode = prime * hashCode + ((getChannelName() == null) ? 0 : getChannelName().hashCode()); hashCode = prime * hashCode + ((getChannelState() == null) ? 0 : getChannelState().hashCode()); hashCode = prime * hashCode + ((getCreationTime() == null) ? 0 : getCreationTime().hashCode()); hashCode = prime * hashCode + ((getFillerSlate() == null) ? 0 : getFillerSlate().hashCode()); hashCode = prime * hashCode + ((getLastModifiedTime() == null) ? 0 : getLastModifiedTime().hashCode()); hashCode = prime * hashCode + ((getOutputs() == null) ? 0 : getOutputs().hashCode()); hashCode = prime * hashCode + ((getPlaybackMode() == null) ? 0 : getPlaybackMode().hashCode()); hashCode = prime * hashCode + ((getTags() == null) ? 0 : getTags().hashCode()); hashCode = prime * hashCode + ((getTier() == null) ? 0 : getTier().hashCode()); hashCode = prime * hashCode + ((getTimeShiftConfiguration() == null) ? 0 : getTimeShiftConfiguration().hashCode()); return hashCode; } @Override public UpdateChannelResult clone() { try { return (UpdateChannelResult) super.clone(); } catch (CloneNotSupportedException e) { throw new IllegalStateException("Got a CloneNotSupportedException from Object.clone() " + "even though we're Cloneable!", e); } } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy