This repository has been archived on 2025-09-14. You can view files and clone it, but cannot push or open issues or pull requests.
Files
pxz-hos-client-cpp-module/support/aws-sdk-cpp-master/aws-cpp-sdk-ivs/include/aws/ivs/model/UpdateChannelRequest.h

276 lines
11 KiB
C++
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/ivs/IVS_EXPORTS.h>
#include <aws/ivs/IVSRequest.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <aws/ivs/model/ChannelLatencyMode.h>
#include <aws/ivs/model/ChannelType.h>
#include <utility>
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;
/**
* <p>ARN of the channel to be updated.</p>
*/
inline const Aws::String& GetArn() const{ return m_arn; }
/**
* <p>ARN of the channel to be updated.</p>
*/
inline bool ArnHasBeenSet() const { return m_arnHasBeenSet; }
/**
* <p>ARN of the channel to be updated.</p>
*/
inline void SetArn(const Aws::String& value) { m_arnHasBeenSet = true; m_arn = value; }
/**
* <p>ARN of the channel to be updated.</p>
*/
inline void SetArn(Aws::String&& value) { m_arnHasBeenSet = true; m_arn = std::move(value); }
/**
* <p>ARN of the channel to be updated.</p>
*/
inline void SetArn(const char* value) { m_arnHasBeenSet = true; m_arn.assign(value); }
/**
* <p>ARN of the channel to be updated.</p>
*/
inline UpdateChannelRequest& WithArn(const Aws::String& value) { SetArn(value); return *this;}
/**
* <p>ARN of the channel to be updated.</p>
*/
inline UpdateChannelRequest& WithArn(Aws::String&& value) { SetArn(std::move(value)); return *this;}
/**
* <p>ARN of the channel to be updated.</p>
*/
inline UpdateChannelRequest& WithArn(const char* value) { SetArn(value); return *this;}
/**
* <p>Channel name.</p>
*/
inline const Aws::String& GetName() const{ return m_name; }
/**
* <p>Channel name.</p>
*/
inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
/**
* <p>Channel name.</p>
*/
inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
/**
* <p>Channel name.</p>
*/
inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
/**
* <p>Channel name.</p>
*/
inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
/**
* <p>Channel name.</p>
*/
inline UpdateChannelRequest& WithName(const Aws::String& value) { SetName(value); return *this;}
/**
* <p>Channel name.</p>
*/
inline UpdateChannelRequest& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
/**
* <p>Channel name.</p>
*/
inline UpdateChannelRequest& WithName(const char* value) { SetName(value); return *this;}
/**
* <p>Channel latency mode. Default: <code>LOW</code>.</p>
*/
inline const ChannelLatencyMode& GetLatencyMode() const{ return m_latencyMode; }
/**
* <p>Channel latency mode. Default: <code>LOW</code>.</p>
*/
inline bool LatencyModeHasBeenSet() const { return m_latencyModeHasBeenSet; }
/**
* <p>Channel latency mode. Default: <code>LOW</code>.</p>
*/
inline void SetLatencyMode(const ChannelLatencyMode& value) { m_latencyModeHasBeenSet = true; m_latencyMode = value; }
/**
* <p>Channel latency mode. Default: <code>LOW</code>.</p>
*/
inline void SetLatencyMode(ChannelLatencyMode&& value) { m_latencyModeHasBeenSet = true; m_latencyMode = std::move(value); }
/**
* <p>Channel latency mode. Default: <code>LOW</code>.</p>
*/
inline UpdateChannelRequest& WithLatencyMode(const ChannelLatencyMode& value) { SetLatencyMode(value); return *this;}
/**
* <p>Channel latency mode. Default: <code>LOW</code>.</p>
*/
inline UpdateChannelRequest& WithLatencyMode(ChannelLatencyMode&& value) { SetLatencyMode(std::move(value)); return *this;}
/**
* <p>Channel type, which determines the allowable resolution and bitrate. <i>If
* you exceed the allowable resolution or bitrate, the stream probably will
* disconnect immediately.</i> Valid values:</p> <ul> <li> <p>
* <code>STANDARD</code>: 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.</p> </li> <li> <p> <code>BASIC</code>: Amazon IVS delivers the original
* input to viewers. The viewers 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.</p> </li> </ul> <p>Default: <code>STANDARD</code>.</p>
*/
inline const ChannelType& GetType() const{ return m_type; }
/**
* <p>Channel type, which determines the allowable resolution and bitrate. <i>If
* you exceed the allowable resolution or bitrate, the stream probably will
* disconnect immediately.</i> Valid values:</p> <ul> <li> <p>
* <code>STANDARD</code>: 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.</p> </li> <li> <p> <code>BASIC</code>: Amazon IVS delivers the original
* input to viewers. The viewers 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.</p> </li> </ul> <p>Default: <code>STANDARD</code>.</p>
*/
inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
/**
* <p>Channel type, which determines the allowable resolution and bitrate. <i>If
* you exceed the allowable resolution or bitrate, the stream probably will
* disconnect immediately.</i> Valid values:</p> <ul> <li> <p>
* <code>STANDARD</code>: 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.</p> </li> <li> <p> <code>BASIC</code>: Amazon IVS delivers the original
* input to viewers. The viewers 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.</p> </li> </ul> <p>Default: <code>STANDARD</code>.</p>
*/
inline void SetType(const ChannelType& value) { m_typeHasBeenSet = true; m_type = value; }
/**
* <p>Channel type, which determines the allowable resolution and bitrate. <i>If
* you exceed the allowable resolution or bitrate, the stream probably will
* disconnect immediately.</i> Valid values:</p> <ul> <li> <p>
* <code>STANDARD</code>: 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.</p> </li> <li> <p> <code>BASIC</code>: Amazon IVS delivers the original
* input to viewers. The viewers 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.</p> </li> </ul> <p>Default: <code>STANDARD</code>.</p>
*/
inline void SetType(ChannelType&& value) { m_typeHasBeenSet = true; m_type = std::move(value); }
/**
* <p>Channel type, which determines the allowable resolution and bitrate. <i>If
* you exceed the allowable resolution or bitrate, the stream probably will
* disconnect immediately.</i> Valid values:</p> <ul> <li> <p>
* <code>STANDARD</code>: 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.</p> </li> <li> <p> <code>BASIC</code>: Amazon IVS delivers the original
* input to viewers. The viewers 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.</p> </li> </ul> <p>Default: <code>STANDARD</code>.</p>
*/
inline UpdateChannelRequest& WithType(const ChannelType& value) { SetType(value); return *this;}
/**
* <p>Channel type, which determines the allowable resolution and bitrate. <i>If
* you exceed the allowable resolution or bitrate, the stream probably will
* disconnect immediately.</i> Valid values:</p> <ul> <li> <p>
* <code>STANDARD</code>: 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.</p> </li> <li> <p> <code>BASIC</code>: Amazon IVS delivers the original
* input to viewers. The viewers 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.</p> </li> </ul> <p>Default: <code>STANDARD</code>.</p>
*/
inline UpdateChannelRequest& WithType(ChannelType&& value) { SetType(std::move(value)); return *this;}
/**
* <p>Whether the channel is authorized. Default: <code>false</code>.</p>
*/
inline bool GetAuthorized() const{ return m_authorized; }
/**
* <p>Whether the channel is authorized. Default: <code>false</code>.</p>
*/
inline bool AuthorizedHasBeenSet() const { return m_authorizedHasBeenSet; }
/**
* <p>Whether the channel is authorized. Default: <code>false</code>.</p>
*/
inline void SetAuthorized(bool value) { m_authorizedHasBeenSet = true; m_authorized = value; }
/**
* <p>Whether the channel is authorized. Default: <code>false</code>.</p>
*/
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