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

218 lines
6.0 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/ivs/model/StreamState.h>
#include <aws/ivs/model/StreamHealth.h>
#include <aws/core/utils/DateTime.h>
#include <utility>
namespace Aws
{
namespace Utils
{
namespace Json
{
class JsonValue;
class JsonView;
} // namespace Json
} // namespace Utils
namespace IVS
{
namespace Model
{
/**
* <p>Summary information about a stream.</p><p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/ivs-2020-07-14/StreamSummary">AWS
* API Reference</a></p>
*/
class AWS_IVS_API StreamSummary
{
public:
StreamSummary();
StreamSummary(Aws::Utils::Json::JsonView jsonValue);
StreamSummary& 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 StreamSummary& WithChannelArn(const Aws::String& value) { SetChannelArn(value); return *this;}
/**
* <p>Channel ARN for the stream.</p>
*/
inline StreamSummary& WithChannelArn(Aws::String&& value) { SetChannelArn(std::move(value)); return *this;}
/**
* <p>Channel ARN for the stream.</p>
*/
inline StreamSummary& WithChannelArn(const char* value) { SetChannelArn(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 StreamSummary& WithState(const StreamState& value) { SetState(value); return *this;}
/**
* <p>The streams state.</p>
*/
inline StreamSummary& 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 StreamSummary& WithHealth(const StreamHealth& value) { SetHealth(value); return *this;}
/**
* <p>The streams health.</p>
*/
inline StreamSummary& 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 StreamSummary& WithViewerCount(long long value) { SetViewerCount(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 StreamSummary& WithStartTime(const Aws::Utils::DateTime& value) { SetStartTime(value); return *this;}
/**
* <p>ISO-8601 formatted timestamp of the streams start.</p>
*/
inline StreamSummary& WithStartTime(Aws::Utils::DateTime&& value) { SetStartTime(std::move(value)); return *this;}
private:
Aws::String m_channelArn;
bool m_channelArnHasBeenSet;
StreamState m_state;
bool m_stateHasBeenSet;
StreamHealth m_health;
bool m_healthHasBeenSet;
long long m_viewerCount;
bool m_viewerCountHasBeenSet;
Aws::Utils::DateTime m_startTime;
bool m_startTimeHasBeenSet;
};
} // namespace Model
} // namespace IVS
} // namespace Aws