AWS SDK for C++

AWS SDK for C++ Version 1.11.868

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