AWS SDK for C++

AWS SDK for C++ Version 1.11.815

Loading...
Searching...
No Matches
AspectRatio.h
1
6#pragma once
7#include <aws/elementalinference/ElementalInference_EXPORTS.h>
8
9namespace Aws {
10namespace Utils {
11namespace Json {
12class JsonValue;
13class JsonView;
14} // namespace Json
15} // namespace Utils
16namespace ElementalInference {
17namespace Model {
18
26 public:
27 AWS_ELEMENTALINFERENCE_API AspectRatio() = default;
28 AWS_ELEMENTALINFERENCE_API AspectRatio(Aws::Utils::Json::JsonView jsonValue);
29 AWS_ELEMENTALINFERENCE_API AspectRatio& operator=(Aws::Utils::Json::JsonView jsonValue);
30 AWS_ELEMENTALINFERENCE_API Aws::Utils::Json::JsonValue Jsonize() const;
31
33
37 inline int GetWidth() const { return m_width; }
38 inline bool WidthHasBeenSet() const { return m_widthHasBeenSet; }
39 inline void SetWidth(int value) {
40 m_widthHasBeenSet = true;
41 m_width = value;
42 }
43 inline AspectRatio& WithWidth(int value) {
44 SetWidth(value);
45 return *this;
46 }
48
50
54 inline int GetHeight() const { return m_height; }
55 inline bool HeightHasBeenSet() const { return m_heightHasBeenSet; }
56 inline void SetHeight(int value) {
57 m_heightHasBeenSet = true;
58 m_height = value;
59 }
60 inline AspectRatio& WithHeight(int value) {
61 SetHeight(value);
62 return *this;
63 }
65 private:
66 int m_width{0};
67
68 int m_height{0};
69 bool m_widthHasBeenSet = false;
70 bool m_heightHasBeenSet = false;
71};
72
73} // namespace Model
74} // namespace ElementalInference
75} // namespace Aws
AWS_ELEMENTALINFERENCE_API AspectRatio()=default
AWS_ELEMENTALINFERENCE_API AspectRatio & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_ELEMENTALINFERENCE_API AspectRatio(Aws::Utils::Json::JsonView jsonValue)
AWS_ELEMENTALINFERENCE_API Aws::Utils::Json::JsonValue Jsonize() const
Aws::Utils::Json::JsonValue JsonValue