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/Stream.h

271 lines
7.8 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/core/utils/memory/stl/AWSString.h>
#include <aws/core/utils/DateTime.h>
#include <aws/ivs/model/StreamState.h>
#include <aws/ivs/model/StreamHealth.h>
#include <utility>
namespace Aws
{
namespace Utils
{
namespace Json
{
class JsonValue;
class JsonView;
} // namespace Json
} // namespace Utils
namespace IVS
{
namespace Model
{
/**
* <p>Specifies a live video stream that has been ingested and
* distributed.</p><p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/ivs-2020-07-14/Stream">AWS API
* Reference</a></p>
*/
class AWS_IVS_API Stream
{
public:
Stream();
Stream(Aws::Utils::Json::JsonView jsonValue);
Stream& operator=(Aws::Utils::Json::JsonView jsonValue);
Aws::Utils::Json::JsonValue Jsonize() const;
/**
* <p>Channel ARN for the stream.</p>
*/
inline const Aws::String& GetChannelArn() const{ return m_channelArn; }
/**
* <p>Channel ARN for the stream.</p>
*/
inline bool ChannelArnHasBeenSet() const { return m_channelArnHasBeenSet; }
/**
* <p>Channel ARN for the stream.</p>
*/
inline void SetChannelArn(const Aws::String& value) { m_channelArnHasBeenSet = true; m_channelArn = value; }
/**
* <p>Channel ARN for the stream.</p>
*/
inline void SetChannelArn(Aws::String&& value) { m_channelArnHasBeenSet = true; m_channelArn = std::move(value); }
/**
* <p>Channel ARN for the stream.</p>
*/
inline void SetChannelArn(const char* value) { m_channelArnHasBeenSet = true; m_channelArn.assign(value); }
/**
* <p>Channel ARN for the stream.</p>
*/
inline Stream& WithChannelArn(const Aws::String& value) { SetChannelArn(value); return *this;}
/**
* <p>Channel ARN for the stream.</p>
*/
inline Stream& WithChannelArn(Aws::String&& value) { SetChannelArn(std::move(value)); return *this;}
/**
* <p>Channel ARN for the stream.</p>
*/
inline Stream& WithChannelArn(const char* value) { SetChannelArn(value); return *this;}
/**
* <p>URL of the video master manifest, required by the video player to play the
* HLS stream.</p>
*/
inline const Aws::String& GetPlaybackUrl() const{ return m_playbackUrl; }
/**
* <p>URL of the video master manifest, required by the video player to play the
* HLS stream.</p>
*/
inline bool PlaybackUrlHasBeenSet() const { return m_playbackUrlHasBeenSet; }
/**
* <p>URL of the video master manifest, required by the video player to play the
* HLS stream.</p>
*/
inline void SetPlaybackUrl(const Aws::String& value) { m_playbackUrlHasBeenSet = true; m_playbackUrl = value; }
/**
* <p>URL of the video master manifest, required by the video player to play the
* HLS stream.</p>
*/
inline void SetPlaybackUrl(Aws::String&& value) { m_playbackUrlHasBeenSet = true; m_playbackUrl = std::move(value); }
/**
* <p>URL of the video master manifest, required by the video player to play the
* HLS stream.</p>
*/
inline void SetPlaybackUrl(const char* value) { m_playbackUrlHasBeenSet = true; m_playbackUrl.assign(value); }
/**
* <p>URL of the video master manifest, required by the video player to play the
* HLS stream.</p>
*/
inline Stream& WithPlaybackUrl(const Aws::String& value) { SetPlaybackUrl(value); return *this;}
/**
* <p>URL of the video master manifest, required by the video player to play the
* HLS stream.</p>
*/
inline Stream& WithPlaybackUrl(Aws::String&& value) { SetPlaybackUrl(std::move(value)); return *this;}
/**
* <p>URL of the video master manifest, required by the video player to play the
* HLS stream.</p>
*/
inline Stream& WithPlaybackUrl(const char* value) { SetPlaybackUrl(value); return *this;}
/**
* <p>ISO-8601 formatted timestamp of the streams start.</p>
*/
inline const Aws::Utils::DateTime& GetStartTime() const{ return m_startTime; }
/**
* <p>ISO-8601 formatted timestamp of the streams start.</p>
*/
inline bool StartTimeHasBeenSet() const { return m_startTimeHasBeenSet; }
/**
* <p>ISO-8601 formatted timestamp of the streams start.</p>
*/
inline void SetStartTime(const Aws::Utils::DateTime& value) { m_startTimeHasBeenSet = true; m_startTime = value; }
/**
* <p>ISO-8601 formatted timestamp of the streams start.</p>
*/
inline void SetStartTime(Aws::Utils::DateTime&& value) { m_startTimeHasBeenSet = true; m_startTime = std::move(value); }
/**
* <p>ISO-8601 formatted timestamp of the streams start.</p>
*/
inline Stream& WithStartTime(const Aws::Utils::DateTime& value) { SetStartTime(value); return *this;}
/**
* <p>ISO-8601 formatted timestamp of the streams start.</p>
*/
inline Stream& WithStartTime(Aws::Utils::DateTime&& value) { SetStartTime(std::move(value)); return *this;}
/**
* <p>The streams state.</p>
*/
inline const StreamState& GetState() const{ return m_state; }
/**
* <p>The streams state.</p>
*/
inline bool StateHasBeenSet() const { return m_stateHasBeenSet; }
/**
* <p>The streams state.</p>
*/
inline void SetState(const StreamState& value) { m_stateHasBeenSet = true; m_state = value; }
/**
* <p>The streams state.</p>
*/
inline void SetState(StreamState&& value) { m_stateHasBeenSet = true; m_state = std::move(value); }
/**
* <p>The streams state.</p>
*/
inline Stream& WithState(const StreamState& value) { SetState(value); return *this;}
/**
* <p>The streams state.</p>
*/
inline Stream& WithState(StreamState&& value) { SetState(std::move(value)); return *this;}
/**
* <p>The streams health.</p>
*/
inline const StreamHealth& GetHealth() const{ return m_health; }
/**
* <p>The streams health.</p>
*/
inline bool HealthHasBeenSet() const { return m_healthHasBeenSet; }
/**
* <p>The streams health.</p>
*/
inline void SetHealth(const StreamHealth& value) { m_healthHasBeenSet = true; m_health = value; }
/**
* <p>The streams health.</p>
*/
inline void SetHealth(StreamHealth&& value) { m_healthHasBeenSet = true; m_health = std::move(value); }
/**
* <p>The streams health.</p>
*/
inline Stream& WithHealth(const StreamHealth& value) { SetHealth(value); return *this;}
/**
* <p>The streams health.</p>
*/
inline Stream& WithHealth(StreamHealth&& value) { SetHealth(std::move(value)); return *this;}
/**
* <p>Number of current viewers of the stream.</p>
*/
inline long long GetViewerCount() const{ return m_viewerCount; }
/**
* <p>Number of current viewers of the stream.</p>
*/
inline bool ViewerCountHasBeenSet() const { return m_viewerCountHasBeenSet; }
/**
* <p>Number of current viewers of the stream.</p>
*/
inline void SetViewerCount(long long value) { m_viewerCountHasBeenSet = true; m_viewerCount = value; }
/**
* <p>Number of current viewers of the stream.</p>
*/
inline Stream& WithViewerCount(long long value) { SetViewerCount(value); return *this;}
private:
Aws::String m_channelArn;
bool m_channelArnHasBeenSet;
Aws::String m_playbackUrl;
bool m_playbackUrlHasBeenSet;
Aws::Utils::DateTime m_startTime;
bool m_startTimeHasBeenSet;
StreamState m_state;
bool m_stateHasBeenSet;
StreamHealth m_health;
bool m_healthHasBeenSet;
long long m_viewerCount;
bool m_viewerCountHasBeenSet;
};
} // namespace Model
} // namespace IVS
} // namespace Aws