AWS SDK for C++  0.14.3
AWS SDK for C++
DetectedProperties.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
18 
19 namespace Aws
20 {
21 namespace Utils
22 {
23 namespace Json
24 {
25  class JsonValue;
26 } // namespace Json
27 } // namespace Utils
28 namespace ElasticTranscoder
29 {
30 namespace Model
31 {
32 
38  {
39  public:
42  DetectedProperties& operator=(const Aws::Utils::Json::JsonValue& jsonValue);
43  Aws::Utils::Json::JsonValue Jsonize() const;
44 
48  inline int GetWidth() const{ return m_width; }
49 
53  inline void SetWidth(int value) { m_widthHasBeenSet = true; m_width = value; }
54 
58  inline DetectedProperties& WithWidth(int value) { SetWidth(value); return *this;}
59 
63  inline int GetHeight() const{ return m_height; }
64 
68  inline void SetHeight(int value) { m_heightHasBeenSet = true; m_height = value; }
69 
73  inline DetectedProperties& WithHeight(int value) { SetHeight(value); return *this;}
74 
78  inline const Aws::String& GetFrameRate() const{ return m_frameRate; }
79 
83  inline void SetFrameRate(const Aws::String& value) { m_frameRateHasBeenSet = true; m_frameRate = value; }
84 
88  inline void SetFrameRate(Aws::String&& value) { m_frameRateHasBeenSet = true; m_frameRate = value; }
89 
93  inline void SetFrameRate(const char* value) { m_frameRateHasBeenSet = true; m_frameRate.assign(value); }
94 
98  inline DetectedProperties& WithFrameRate(const Aws::String& value) { SetFrameRate(value); return *this;}
99 
103  inline DetectedProperties& WithFrameRate(Aws::String&& value) { SetFrameRate(value); return *this;}
104 
108  inline DetectedProperties& WithFrameRate(const char* value) { SetFrameRate(value); return *this;}
109 
113  inline long long GetFileSize() const{ return m_fileSize; }
114 
118  inline void SetFileSize(long long value) { m_fileSizeHasBeenSet = true; m_fileSize = value; }
119 
123  inline DetectedProperties& WithFileSize(long long value) { SetFileSize(value); return *this;}
124 
128  inline long long GetDurationMillis() const{ return m_durationMillis; }
129 
133  inline void SetDurationMillis(long long value) { m_durationMillisHasBeenSet = true; m_durationMillis = value; }
134 
138  inline DetectedProperties& WithDurationMillis(long long value) { SetDurationMillis(value); return *this;}
139 
140  private:
141  int m_width;
142  bool m_widthHasBeenSet;
143  int m_height;
144  bool m_heightHasBeenSet;
145  Aws::String m_frameRate;
146  bool m_frameRateHasBeenSet;
147  long long m_fileSize;
148  bool m_fileSizeHasBeenSet;
149  long long m_durationMillis;
150  bool m_durationMillisHasBeenSet;
151  };
152 
153 } // namespace Model
154 } // namespace ElasticTranscoder
155 } // namespace Aws
DetectedProperties & WithFrameRate(const Aws::String &value)
DetectedProperties & WithFrameRate(Aws::String &&value)
DetectedProperties & WithFileSize(long long value)
DetectedProperties & WithDurationMillis(long long value)
#define AWS_ELASTICTRANSCODER_API
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
DetectedProperties & WithFrameRate(const char *value)
JSON (JavaScript Object Notation).