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-rekognition/include/aws/rekognition/model/AudioMetadata.h

163 lines
4.8 KiB
C++

/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/rekognition/Rekognition_EXPORTS.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <utility>
namespace Aws
{
namespace Utils
{
namespace Json
{
class JsonValue;
class JsonView;
} // namespace Json
} // namespace Utils
namespace Rekognition
{
namespace Model
{
/**
* <p>Metadata information about an audio stream. An array of
* <code>AudioMetadata</code> objects for the audio streams found in a stored video
* is returned by <a>GetSegmentDetection</a>. </p><p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/rekognition-2016-06-27/AudioMetadata">AWS
* API Reference</a></p>
*/
class AWS_REKOGNITION_API AudioMetadata
{
public:
AudioMetadata();
AudioMetadata(Aws::Utils::Json::JsonView jsonValue);
AudioMetadata& operator=(Aws::Utils::Json::JsonView jsonValue);
Aws::Utils::Json::JsonValue Jsonize() const;
/**
* <p>The audio codec used to encode or decode the audio stream. </p>
*/
inline const Aws::String& GetCodec() const{ return m_codec; }
/**
* <p>The audio codec used to encode or decode the audio stream. </p>
*/
inline bool CodecHasBeenSet() const { return m_codecHasBeenSet; }
/**
* <p>The audio codec used to encode or decode the audio stream. </p>
*/
inline void SetCodec(const Aws::String& value) { m_codecHasBeenSet = true; m_codec = value; }
/**
* <p>The audio codec used to encode or decode the audio stream. </p>
*/
inline void SetCodec(Aws::String&& value) { m_codecHasBeenSet = true; m_codec = std::move(value); }
/**
* <p>The audio codec used to encode or decode the audio stream. </p>
*/
inline void SetCodec(const char* value) { m_codecHasBeenSet = true; m_codec.assign(value); }
/**
* <p>The audio codec used to encode or decode the audio stream. </p>
*/
inline AudioMetadata& WithCodec(const Aws::String& value) { SetCodec(value); return *this;}
/**
* <p>The audio codec used to encode or decode the audio stream. </p>
*/
inline AudioMetadata& WithCodec(Aws::String&& value) { SetCodec(std::move(value)); return *this;}
/**
* <p>The audio codec used to encode or decode the audio stream. </p>
*/
inline AudioMetadata& WithCodec(const char* value) { SetCodec(value); return *this;}
/**
* <p>The duration of the audio stream in milliseconds.</p>
*/
inline long long GetDurationMillis() const{ return m_durationMillis; }
/**
* <p>The duration of the audio stream in milliseconds.</p>
*/
inline bool DurationMillisHasBeenSet() const { return m_durationMillisHasBeenSet; }
/**
* <p>The duration of the audio stream in milliseconds.</p>
*/
inline void SetDurationMillis(long long value) { m_durationMillisHasBeenSet = true; m_durationMillis = value; }
/**
* <p>The duration of the audio stream in milliseconds.</p>
*/
inline AudioMetadata& WithDurationMillis(long long value) { SetDurationMillis(value); return *this;}
/**
* <p>The sample rate for the audio stream.</p>
*/
inline long long GetSampleRate() const{ return m_sampleRate; }
/**
* <p>The sample rate for the audio stream.</p>
*/
inline bool SampleRateHasBeenSet() const { return m_sampleRateHasBeenSet; }
/**
* <p>The sample rate for the audio stream.</p>
*/
inline void SetSampleRate(long long value) { m_sampleRateHasBeenSet = true; m_sampleRate = value; }
/**
* <p>The sample rate for the audio stream.</p>
*/
inline AudioMetadata& WithSampleRate(long long value) { SetSampleRate(value); return *this;}
/**
* <p>The number of audio channels in the segement.</p>
*/
inline long long GetNumberOfChannels() const{ return m_numberOfChannels; }
/**
* <p>The number of audio channels in the segement.</p>
*/
inline bool NumberOfChannelsHasBeenSet() const { return m_numberOfChannelsHasBeenSet; }
/**
* <p>The number of audio channels in the segement.</p>
*/
inline void SetNumberOfChannels(long long value) { m_numberOfChannelsHasBeenSet = true; m_numberOfChannels = value; }
/**
* <p>The number of audio channels in the segement.</p>
*/
inline AudioMetadata& WithNumberOfChannels(long long value) { SetNumberOfChannels(value); return *this;}
private:
Aws::String m_codec;
bool m_codecHasBeenSet;
long long m_durationMillis;
bool m_durationMillisHasBeenSet;
long long m_sampleRate;
bool m_sampleRateHasBeenSet;
long long m_numberOfChannels;
bool m_numberOfChannelsHasBeenSet;
};
} // namespace Model
} // namespace Rekognition
} // namespace Aws