AWS SDK for C++

AWS SDK for C++ Version 1.11.744

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