/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include #include #include namespace Aws { namespace IVS { namespace Model { /** */ class AWS_IVS_API UpdateChannelRequest : public IVSRequest { public: UpdateChannelRequest(); // Service request name is the Operation name which will send this request out, // each operation should has unique request name, so that we can get operation's name from this request. // Note: this is not true for response, multiple operations may have the same response name, // so we can not get operation's name from response. inline virtual const char* GetServiceRequestName() const override { return "UpdateChannel"; } Aws::String SerializePayload() const override; /** *

ARN of the channel to be updated.

*/ inline const Aws::String& GetArn() const{ return m_arn; } /** *

ARN of the channel to be updated.

*/ inline bool ArnHasBeenSet() const { return m_arnHasBeenSet; } /** *

ARN of the channel to be updated.

*/ inline void SetArn(const Aws::String& value) { m_arnHasBeenSet = true; m_arn = value; } /** *

ARN of the channel to be updated.

*/ inline void SetArn(Aws::String&& value) { m_arnHasBeenSet = true; m_arn = std::move(value); } /** *

ARN of the channel to be updated.

*/ inline void SetArn(const char* value) { m_arnHasBeenSet = true; m_arn.assign(value); } /** *

ARN of the channel to be updated.

*/ inline UpdateChannelRequest& WithArn(const Aws::String& value) { SetArn(value); return *this;} /** *

ARN of the channel to be updated.

*/ inline UpdateChannelRequest& WithArn(Aws::String&& value) { SetArn(std::move(value)); return *this;} /** *

ARN of the channel to be updated.

*/ inline UpdateChannelRequest& WithArn(const char* value) { SetArn(value); return *this;} /** *

Channel name.

*/ inline const Aws::String& GetName() const{ return m_name; } /** *

Channel name.

*/ inline bool NameHasBeenSet() const { return m_nameHasBeenSet; } /** *

Channel name.

*/ inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; } /** *

Channel name.

*/ inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); } /** *

Channel name.

*/ inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); } /** *

Channel name.

*/ inline UpdateChannelRequest& WithName(const Aws::String& value) { SetName(value); return *this;} /** *

Channel name.

*/ inline UpdateChannelRequest& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;} /** *

Channel name.

*/ inline UpdateChannelRequest& WithName(const char* value) { SetName(value); return *this;} /** *

Channel latency mode. Default: LOW.

*/ inline const ChannelLatencyMode& GetLatencyMode() const{ return m_latencyMode; } /** *

Channel latency mode. Default: LOW.

*/ inline bool LatencyModeHasBeenSet() const { return m_latencyModeHasBeenSet; } /** *

Channel latency mode. Default: LOW.

*/ inline void SetLatencyMode(const ChannelLatencyMode& value) { m_latencyModeHasBeenSet = true; m_latencyMode = value; } /** *

Channel latency mode. Default: LOW.

*/ inline void SetLatencyMode(ChannelLatencyMode&& value) { m_latencyModeHasBeenSet = true; m_latencyMode = std::move(value); } /** *

Channel latency mode. Default: LOW.

*/ inline UpdateChannelRequest& WithLatencyMode(const ChannelLatencyMode& value) { SetLatencyMode(value); return *this;} /** *

Channel latency mode. Default: LOW.

*/ inline UpdateChannelRequest& WithLatencyMode(ChannelLatencyMode&& value) { SetLatencyMode(std::move(value)); return *this;} /** *

Channel type, which determines the allowable resolution and bitrate. If * you exceed the allowable resolution or bitrate, the stream probably will * disconnect immediately. Valid values:

  • * STANDARD: Multiple qualities are generated from the original input, * to automatically give viewers the best experience for their devices and network * conditions. Vertical resolution can be up to 1080 and bitrate can be up to 8.5 * Mbps.

  • BASIC: Amazon IVS delivers the original * input to viewers. The viewer’s video-quality choice is limited to the original * input. Vertical resolution can be up to 480 and bitrate can be up to 1.5 * Mbps.

Default: STANDARD.

*/ inline const ChannelType& GetType() const{ return m_type; } /** *

Channel type, which determines the allowable resolution and bitrate. If * you exceed the allowable resolution or bitrate, the stream probably will * disconnect immediately. Valid values:

  • * STANDARD: Multiple qualities are generated from the original input, * to automatically give viewers the best experience for their devices and network * conditions. Vertical resolution can be up to 1080 and bitrate can be up to 8.5 * Mbps.

  • BASIC: Amazon IVS delivers the original * input to viewers. The viewer’s video-quality choice is limited to the original * input. Vertical resolution can be up to 480 and bitrate can be up to 1.5 * Mbps.

Default: STANDARD.

*/ inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; } /** *

Channel type, which determines the allowable resolution and bitrate. If * you exceed the allowable resolution or bitrate, the stream probably will * disconnect immediately. Valid values:

  • * STANDARD: Multiple qualities are generated from the original input, * to automatically give viewers the best experience for their devices and network * conditions. Vertical resolution can be up to 1080 and bitrate can be up to 8.5 * Mbps.

  • BASIC: Amazon IVS delivers the original * input to viewers. The viewer’s video-quality choice is limited to the original * input. Vertical resolution can be up to 480 and bitrate can be up to 1.5 * Mbps.

Default: STANDARD.

*/ inline void SetType(const ChannelType& value) { m_typeHasBeenSet = true; m_type = value; } /** *

Channel type, which determines the allowable resolution and bitrate. If * you exceed the allowable resolution or bitrate, the stream probably will * disconnect immediately. Valid values:

  • * STANDARD: Multiple qualities are generated from the original input, * to automatically give viewers the best experience for their devices and network * conditions. Vertical resolution can be up to 1080 and bitrate can be up to 8.5 * Mbps.

  • BASIC: Amazon IVS delivers the original * input to viewers. The viewer’s video-quality choice is limited to the original * input. Vertical resolution can be up to 480 and bitrate can be up to 1.5 * Mbps.

Default: STANDARD.

*/ inline void SetType(ChannelType&& value) { m_typeHasBeenSet = true; m_type = std::move(value); } /** *

Channel type, which determines the allowable resolution and bitrate. If * you exceed the allowable resolution or bitrate, the stream probably will * disconnect immediately. Valid values:

  • * STANDARD: Multiple qualities are generated from the original input, * to automatically give viewers the best experience for their devices and network * conditions. Vertical resolution can be up to 1080 and bitrate can be up to 8.5 * Mbps.

  • BASIC: Amazon IVS delivers the original * input to viewers. The viewer’s video-quality choice is limited to the original * input. Vertical resolution can be up to 480 and bitrate can be up to 1.5 * Mbps.

Default: STANDARD.

*/ inline UpdateChannelRequest& WithType(const ChannelType& value) { SetType(value); return *this;} /** *

Channel type, which determines the allowable resolution and bitrate. If * you exceed the allowable resolution or bitrate, the stream probably will * disconnect immediately. Valid values:

  • * STANDARD: Multiple qualities are generated from the original input, * to automatically give viewers the best experience for their devices and network * conditions. Vertical resolution can be up to 1080 and bitrate can be up to 8.5 * Mbps.

  • BASIC: Amazon IVS delivers the original * input to viewers. The viewer’s video-quality choice is limited to the original * input. Vertical resolution can be up to 480 and bitrate can be up to 1.5 * Mbps.

Default: STANDARD.

*/ inline UpdateChannelRequest& WithType(ChannelType&& value) { SetType(std::move(value)); return *this;} /** *

Whether the channel is authorized. Default: false.

*/ inline bool GetAuthorized() const{ return m_authorized; } /** *

Whether the channel is authorized. Default: false.

*/ inline bool AuthorizedHasBeenSet() const { return m_authorizedHasBeenSet; } /** *

Whether the channel is authorized. Default: false.

*/ inline void SetAuthorized(bool value) { m_authorizedHasBeenSet = true; m_authorized = value; } /** *

Whether the channel is authorized. Default: false.

*/ inline UpdateChannelRequest& WithAuthorized(bool value) { SetAuthorized(value); return *this;} private: Aws::String m_arn; bool m_arnHasBeenSet; Aws::String m_name; bool m_nameHasBeenSet; ChannelLatencyMode m_latencyMode; bool m_latencyModeHasBeenSet; ChannelType m_type; bool m_typeHasBeenSet; bool m_authorized; bool m_authorizedHasBeenSet; }; } // namespace Model } // namespace IVS } // namespace Aws