AWS SDK for C++  0.14.3
AWS SDK for C++
AudioParameters.h
Go to the documentation of this file.
1 /*
2 * Copyright 2010-2016 Amazon.com, Inc. or its affiliates. All Rights Reserved.
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License").
5 * You may not use this file except in compliance with the License.
6 * A copy of the License is located at
7 *
8 * http://aws.amazon.com/apache2.0
9 *
10 * or in the "license" file accompanying this file. This file is distributed
11 * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
12 * express or implied. See the License for the specific language governing
13 * permissions and limitations under the License.
14 */
15 #pragma once
19 
20 namespace Aws
21 {
22 namespace Utils
23 {
24 namespace Json
25 {
26  class JsonValue;
27 } // namespace Json
28 } // namespace Utils
29 namespace ElasticTranscoder
30 {
31 namespace Model
32 {
33 
38  {
39  public:
42  AudioParameters& operator=(const Aws::Utils::Json::JsonValue& jsonValue);
43  Aws::Utils::Json::JsonValue Jsonize() const;
44 
50  inline const Aws::String& GetCodec() const{ return m_codec; }
51 
57  inline void SetCodec(const Aws::String& value) { m_codecHasBeenSet = true; m_codec = value; }
58 
64  inline void SetCodec(Aws::String&& value) { m_codecHasBeenSet = true; m_codec = value; }
65 
71  inline void SetCodec(const char* value) { m_codecHasBeenSet = true; m_codec.assign(value); }
72 
78  inline AudioParameters& WithCodec(const Aws::String& value) { SetCodec(value); return *this;}
79 
85  inline AudioParameters& WithCodec(Aws::String&& value) { SetCodec(value); return *this;}
86 
92  inline AudioParameters& WithCodec(const char* value) { SetCodec(value); return *this;}
93 
101  inline const Aws::String& GetSampleRate() const{ return m_sampleRate; }
102 
110  inline void SetSampleRate(const Aws::String& value) { m_sampleRateHasBeenSet = true; m_sampleRate = value; }
111 
119  inline void SetSampleRate(Aws::String&& value) { m_sampleRateHasBeenSet = true; m_sampleRate = value; }
120 
128  inline void SetSampleRate(const char* value) { m_sampleRateHasBeenSet = true; m_sampleRate.assign(value); }
129 
137  inline AudioParameters& WithSampleRate(const Aws::String& value) { SetSampleRate(value); return *this;}
138 
146  inline AudioParameters& WithSampleRate(Aws::String&& value) { SetSampleRate(value); return *this;}
147 
155  inline AudioParameters& WithSampleRate(const char* value) { SetSampleRate(value); return *this;}
156 
161  inline const Aws::String& GetBitRate() const{ return m_bitRate; }
162 
167  inline void SetBitRate(const Aws::String& value) { m_bitRateHasBeenSet = true; m_bitRate = value; }
168 
173  inline void SetBitRate(Aws::String&& value) { m_bitRateHasBeenSet = true; m_bitRate = value; }
174 
179  inline void SetBitRate(const char* value) { m_bitRateHasBeenSet = true; m_bitRate.assign(value); }
180 
185  inline AudioParameters& WithBitRate(const Aws::String& value) { SetBitRate(value); return *this;}
186 
191  inline AudioParameters& WithBitRate(Aws::String&& value) { SetBitRate(value); return *this;}
192 
197  inline AudioParameters& WithBitRate(const char* value) { SetBitRate(value); return *this;}
198 
218  inline const Aws::String& GetChannels() const{ return m_channels; }
219 
239  inline void SetChannels(const Aws::String& value) { m_channelsHasBeenSet = true; m_channels = value; }
240 
260  inline void SetChannels(Aws::String&& value) { m_channelsHasBeenSet = true; m_channels = value; }
261 
281  inline void SetChannels(const char* value) { m_channelsHasBeenSet = true; m_channels.assign(value); }
282 
302  inline AudioParameters& WithChannels(const Aws::String& value) { SetChannels(value); return *this;}
303 
323  inline AudioParameters& WithChannels(Aws::String&& value) { SetChannels(value); return *this;}
324 
344  inline AudioParameters& WithChannels(const char* value) { SetChannels(value); return *this;}
345 
412  inline const Aws::String& GetAudioPackingMode() const{ return m_audioPackingMode; }
413 
480  inline void SetAudioPackingMode(const Aws::String& value) { m_audioPackingModeHasBeenSet = true; m_audioPackingMode = value; }
481 
548  inline void SetAudioPackingMode(Aws::String&& value) { m_audioPackingModeHasBeenSet = true; m_audioPackingMode = value; }
549 
616  inline void SetAudioPackingMode(const char* value) { m_audioPackingModeHasBeenSet = true; m_audioPackingMode.assign(value); }
617 
684  inline AudioParameters& WithAudioPackingMode(const Aws::String& value) { SetAudioPackingMode(value); return *this;}
685 
752  inline AudioParameters& WithAudioPackingMode(Aws::String&& value) { SetAudioPackingMode(value); return *this;}
753 
820  inline AudioParameters& WithAudioPackingMode(const char* value) { SetAudioPackingMode(value); return *this;}
821 
829  inline const AudioCodecOptions& GetCodecOptions() const{ return m_codecOptions; }
830 
838  inline void SetCodecOptions(const AudioCodecOptions& value) { m_codecOptionsHasBeenSet = true; m_codecOptions = value; }
839 
847  inline void SetCodecOptions(AudioCodecOptions&& value) { m_codecOptionsHasBeenSet = true; m_codecOptions = value; }
848 
856  inline AudioParameters& WithCodecOptions(const AudioCodecOptions& value) { SetCodecOptions(value); return *this;}
857 
865  inline AudioParameters& WithCodecOptions(AudioCodecOptions&& value) { SetCodecOptions(value); return *this;}
866 
867  private:
868  Aws::String m_codec;
869  bool m_codecHasBeenSet;
870  Aws::String m_sampleRate;
871  bool m_sampleRateHasBeenSet;
872  Aws::String m_bitRate;
873  bool m_bitRateHasBeenSet;
874  Aws::String m_channels;
875  bool m_channelsHasBeenSet;
876  Aws::String m_audioPackingMode;
877  bool m_audioPackingModeHasBeenSet;
878  AudioCodecOptions m_codecOptions;
879  bool m_codecOptionsHasBeenSet;
880  };
881 
882 } // namespace Model
883 } // namespace ElasticTranscoder
884 } // namespace Aws
AudioParameters & WithCodec(Aws::String &&value)
AudioParameters & WithChannels(const char *value)
void SetCodec(const Aws::String &value)
AudioParameters & WithAudioPackingMode(const char *value)
AudioParameters & WithCodecOptions(const AudioCodecOptions &value)
AudioParameters & WithChannels(const Aws::String &value)
void SetBitRate(const Aws::String &value)
AudioParameters & WithCodecOptions(AudioCodecOptions &&value)
const Aws::String & GetAudioPackingMode() const
AudioParameters & WithBitRate(const char *value)
AudioParameters & WithAudioPackingMode(const Aws::String &value)
void SetAudioPackingMode(const Aws::String &value)
void SetSampleRate(const Aws::String &value)
const AudioCodecOptions & GetCodecOptions() const
AudioParameters & WithCodec(const char *value)
AudioParameters & WithChannels(Aws::String &&value)
AudioParameters & WithAudioPackingMode(Aws::String &&value)
AudioParameters & WithSampleRate(Aws::String &&value)
void SetChannels(const Aws::String &value)
AudioParameters & WithSampleRate(const char *value)
#define AWS_ELASTICTRANSCODER_API
AudioParameters & WithBitRate(const Aws::String &value)
void SetCodecOptions(AudioCodecOptions &&value)
void SetCodecOptions(const AudioCodecOptions &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
AudioParameters & WithSampleRate(const Aws::String &value)
AudioParameters & WithCodec(const Aws::String &value)
AudioParameters & WithBitRate(Aws::String &&value)
JSON (JavaScript Object Notation).