/* * Copyright 2018-2023 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.ivs.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 { /** *

* ARN of the channel to be updated. *

*/ private String arn; /** *

* Whether the channel is private (enabled for playback authorization). *

*/ private Boolean authorized; /** *

* Whether the channel allows insecure RTMP ingest. Default: false. *

*/ private Boolean insecureIngest; /** *

* Channel latency mode. Use NORMAL to broadcast and deliver live video up to Full HD. Use * LOW for near-real-time interaction with viewers. (Note: In the Amazon IVS console, LOW * and NORMAL correspond to Ultra-low and Standard, respectively.) *

*/ private String latencyMode; /** *

* Channel name. *

*/ private String name; /** *

* Optional transcode preset for the channel. This is selectable only for ADVANCED_HD and * ADVANCED_SD channel types. For those channel types, the default preset is * HIGHER_BANDWIDTH_DELIVERY. For other channel types (BASIC and STANDARD), * preset is the empty string (""). *

*/ private String preset; /** *

* Recording-configuration ARN. If this is set to an empty string, recording is disabled. A value other than an * empty string indicates that recording is enabled *

*/ private String recordingConfigurationArn; /** *

* Channel type, which determines the allowable resolution and bitrate. If you exceed the allowable input * resolution or bitrate, the stream probably will disconnect immediately. Some types generate multiple * qualities (renditions) from the original input; this automatically gives viewers the best experience for their * devices and network conditions. Some types provide transcoded video; transcoding allows higher playback quality * across a range of download speeds. Default: STANDARD. Valid values: *

* *

* Optional transcode presets (available for the ADVANCED types) allow you to trade off * available download bandwidth and video quality, to optimize the viewing experience. There are two presets: *

* */ private String type; /** *

* ARN of the channel to be updated. *

* * @param arn * ARN of the channel to be updated. */ public void setArn(String arn) { this.arn = arn; } /** *

* ARN of the channel to be updated. *

* * @return ARN of the channel to be updated. */ public String getArn() { return this.arn; } /** *

* ARN of the channel to be updated. *

* * @param arn * ARN of the channel to be updated. * @return Returns a reference to this object so that method calls can be chained together. */ public UpdateChannelRequest withArn(String arn) { setArn(arn); return this; } /** *

* Whether the channel is private (enabled for playback authorization). *

* * @param authorized * Whether the channel is private (enabled for playback authorization). */ public void setAuthorized(Boolean authorized) { this.authorized = authorized; } /** *

* Whether the channel is private (enabled for playback authorization). *

* * @return Whether the channel is private (enabled for playback authorization). */ public Boolean getAuthorized() { return this.authorized; } /** *

* Whether the channel is private (enabled for playback authorization). *

* * @param authorized * Whether the channel is private (enabled for playback authorization). * @return Returns a reference to this object so that method calls can be chained together. */ public UpdateChannelRequest withAuthorized(Boolean authorized) { setAuthorized(authorized); return this; } /** *

* Whether the channel is private (enabled for playback authorization). *

* * @return Whether the channel is private (enabled for playback authorization). */ public Boolean isAuthorized() { return this.authorized; } /** *

* Whether the channel allows insecure RTMP ingest. Default: false. *

* * @param insecureIngest * Whether the channel allows insecure RTMP ingest. Default: false. */ public void setInsecureIngest(Boolean insecureIngest) { this.insecureIngest = insecureIngest; } /** *

* Whether the channel allows insecure RTMP ingest. Default: false. *

* * @return Whether the channel allows insecure RTMP ingest. Default: false. */ public Boolean getInsecureIngest() { return this.insecureIngest; } /** *

* Whether the channel allows insecure RTMP ingest. Default: false. *

* * @param insecureIngest * Whether the channel allows insecure RTMP ingest. Default: false. * @return Returns a reference to this object so that method calls can be chained together. */ public UpdateChannelRequest withInsecureIngest(Boolean insecureIngest) { setInsecureIngest(insecureIngest); return this; } /** *

* Whether the channel allows insecure RTMP ingest. Default: false. *

* * @return Whether the channel allows insecure RTMP ingest. Default: false. */ public Boolean isInsecureIngest() { return this.insecureIngest; } /** *

* Channel latency mode. Use NORMAL to broadcast and deliver live video up to Full HD. Use * LOW for near-real-time interaction with viewers. (Note: In the Amazon IVS console, LOW * and NORMAL correspond to Ultra-low and Standard, respectively.) *

* * @param latencyMode * Channel latency mode. Use NORMAL to broadcast and deliver live video up to Full HD. Use * LOW for near-real-time interaction with viewers. (Note: In the Amazon IVS console, * LOW and NORMAL correspond to Ultra-low and Standard, respectively.) * @see ChannelLatencyMode */ public void setLatencyMode(String latencyMode) { this.latencyMode = latencyMode; } /** *

* Channel latency mode. Use NORMAL to broadcast and deliver live video up to Full HD. Use * LOW for near-real-time interaction with viewers. (Note: In the Amazon IVS console, LOW * and NORMAL correspond to Ultra-low and Standard, respectively.) *

* * @return Channel latency mode. Use NORMAL to broadcast and deliver live video up to Full HD. Use * LOW for near-real-time interaction with viewers. (Note: In the Amazon IVS console, * LOW and NORMAL correspond to Ultra-low and Standard, respectively.) * @see ChannelLatencyMode */ public String getLatencyMode() { return this.latencyMode; } /** *

* Channel latency mode. Use NORMAL to broadcast and deliver live video up to Full HD. Use * LOW for near-real-time interaction with viewers. (Note: In the Amazon IVS console, LOW * and NORMAL correspond to Ultra-low and Standard, respectively.) *

* * @param latencyMode * Channel latency mode. Use NORMAL to broadcast and deliver live video up to Full HD. Use * LOW for near-real-time interaction with viewers. (Note: In the Amazon IVS console, * LOW and NORMAL correspond to Ultra-low and Standard, respectively.) * @return Returns a reference to this object so that method calls can be chained together. * @see ChannelLatencyMode */ public UpdateChannelRequest withLatencyMode(String latencyMode) { setLatencyMode(latencyMode); return this; } /** *

* Channel latency mode. Use NORMAL to broadcast and deliver live video up to Full HD. Use * LOW for near-real-time interaction with viewers. (Note: In the Amazon IVS console, LOW * and NORMAL correspond to Ultra-low and Standard, respectively.) *

* * @param latencyMode * Channel latency mode. Use NORMAL to broadcast and deliver live video up to Full HD. Use * LOW for near-real-time interaction with viewers. (Note: In the Amazon IVS console, * LOW and NORMAL correspond to Ultra-low and Standard, respectively.) * @return Returns a reference to this object so that method calls can be chained together. * @see ChannelLatencyMode */ public UpdateChannelRequest withLatencyMode(ChannelLatencyMode latencyMode) { this.latencyMode = latencyMode.toString(); return this; } /** *

* Channel name. *

* * @param name * Channel name. */ public void setName(String name) { this.name = name; } /** *

* Channel name. *

* * @return Channel name. */ public String getName() { return this.name; } /** *

* Channel name. *

* * @param name * Channel name. * @return Returns a reference to this object so that method calls can be chained together. */ public UpdateChannelRequest withName(String name) { setName(name); return this; } /** *

* Optional transcode preset for the channel. This is selectable only for ADVANCED_HD and * ADVANCED_SD channel types. For those channel types, the default preset is * HIGHER_BANDWIDTH_DELIVERY. For other channel types (BASIC and STANDARD), * preset is the empty string (""). *

* * @param preset * Optional transcode preset for the channel. This is selectable only for ADVANCED_HD and * ADVANCED_SD channel types. For those channel types, the default preset is * HIGHER_BANDWIDTH_DELIVERY. For other channel types (BASIC and * STANDARD), preset is the empty string (""). * @see TranscodePreset */ public void setPreset(String preset) { this.preset = preset; } /** *

* Optional transcode preset for the channel. This is selectable only for ADVANCED_HD and * ADVANCED_SD channel types. For those channel types, the default preset is * HIGHER_BANDWIDTH_DELIVERY. For other channel types (BASIC and STANDARD), * preset is the empty string (""). *

* * @return Optional transcode preset for the channel. This is selectable only for ADVANCED_HD and * ADVANCED_SD channel types. For those channel types, the default preset is * HIGHER_BANDWIDTH_DELIVERY. For other channel types (BASIC and * STANDARD), preset is the empty string (""). * @see TranscodePreset */ public String getPreset() { return this.preset; } /** *

* Optional transcode preset for the channel. This is selectable only for ADVANCED_HD and * ADVANCED_SD channel types. For those channel types, the default preset is * HIGHER_BANDWIDTH_DELIVERY. For other channel types (BASIC and STANDARD), * preset is the empty string (""). *

* * @param preset * Optional transcode preset for the channel. This is selectable only for ADVANCED_HD and * ADVANCED_SD channel types. For those channel types, the default preset is * HIGHER_BANDWIDTH_DELIVERY. For other channel types (BASIC and * STANDARD), preset is the empty string (""). * @return Returns a reference to this object so that method calls can be chained together. * @see TranscodePreset */ public UpdateChannelRequest withPreset(String preset) { setPreset(preset); return this; } /** *

* Optional transcode preset for the channel. This is selectable only for ADVANCED_HD and * ADVANCED_SD channel types. For those channel types, the default preset is * HIGHER_BANDWIDTH_DELIVERY. For other channel types (BASIC and STANDARD), * preset is the empty string (""). *

* * @param preset * Optional transcode preset for the channel. This is selectable only for ADVANCED_HD and * ADVANCED_SD channel types. For those channel types, the default preset is * HIGHER_BANDWIDTH_DELIVERY. For other channel types (BASIC and * STANDARD), preset is the empty string (""). * @return Returns a reference to this object so that method calls can be chained together. * @see TranscodePreset */ public UpdateChannelRequest withPreset(TranscodePreset preset) { this.preset = preset.toString(); return this; } /** *

* Recording-configuration ARN. If this is set to an empty string, recording is disabled. A value other than an * empty string indicates that recording is enabled *

* * @param recordingConfigurationArn * Recording-configuration ARN. If this is set to an empty string, recording is disabled. A value other than * an empty string indicates that recording is enabled */ public void setRecordingConfigurationArn(String recordingConfigurationArn) { this.recordingConfigurationArn = recordingConfigurationArn; } /** *

* Recording-configuration ARN. If this is set to an empty string, recording is disabled. A value other than an * empty string indicates that recording is enabled *

* * @return Recording-configuration ARN. If this is set to an empty string, recording is disabled. A value other than * an empty string indicates that recording is enabled */ public String getRecordingConfigurationArn() { return this.recordingConfigurationArn; } /** *

* Recording-configuration ARN. If this is set to an empty string, recording is disabled. A value other than an * empty string indicates that recording is enabled *

* * @param recordingConfigurationArn * Recording-configuration ARN. If this is set to an empty string, recording is disabled. A value other than * an empty string indicates that recording is enabled * @return Returns a reference to this object so that method calls can be chained together. */ public UpdateChannelRequest withRecordingConfigurationArn(String recordingConfigurationArn) { setRecordingConfigurationArn(recordingConfigurationArn); return this; } /** *

* Channel type, which determines the allowable resolution and bitrate. If you exceed the allowable input * resolution or bitrate, the stream probably will disconnect immediately. Some types generate multiple * qualities (renditions) from the original input; this automatically gives viewers the best experience for their * devices and network conditions. Some types provide transcoded video; transcoding allows higher playback quality * across a range of download speeds. Default: STANDARD. Valid values: *

* *

* Optional transcode presets (available for the ADVANCED types) allow you to trade off * available download bandwidth and video quality, to optimize the viewing experience. There are two presets: *

* * * @param type * Channel type, which determines the allowable resolution and bitrate. If you exceed the allowable input * resolution or bitrate, the stream probably will disconnect immediately. Some types generate multiple * qualities (renditions) from the original input; this automatically gives viewers the best experience for * their devices and network conditions. Some types provide transcoded video; transcoding allows higher * playback quality across a range of download speeds. Default: STANDARD. Valid values:

* *

* Optional transcode presets (available for the ADVANCED types) allow you to trade off * available download bandwidth and video quality, to optimize the viewing experience. There are two presets: *

*