/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include namespace Aws { namespace Utils { namespace Json { class JsonValue; class JsonView; } // namespace Json } // namespace Utils namespace DeviceFarm { namespace Model { /** *

Represents the screen resolution of a device in height and width, expressed * in pixels.

See Also:

AWS * API Reference

*/ class Resolution { public: AWS_DEVICEFARM_API Resolution(); AWS_DEVICEFARM_API Resolution(Aws::Utils::Json::JsonView jsonValue); AWS_DEVICEFARM_API Resolution& operator=(Aws::Utils::Json::JsonView jsonValue); AWS_DEVICEFARM_API Aws::Utils::Json::JsonValue Jsonize() const; /** *

The screen resolution's width, expressed in pixels.

*/ inline int GetWidth() const{ return m_width; } /** *

The screen resolution's width, expressed in pixels.

*/ inline bool WidthHasBeenSet() const { return m_widthHasBeenSet; } /** *

The screen resolution's width, expressed in pixels.

*/ inline void SetWidth(int value) { m_widthHasBeenSet = true; m_width = value; } /** *

The screen resolution's width, expressed in pixels.

*/ inline Resolution& WithWidth(int value) { SetWidth(value); return *this;} /** *

The screen resolution's height, expressed in pixels.

*/ inline int GetHeight() const{ return m_height; } /** *

The screen resolution's height, expressed in pixels.

*/ inline bool HeightHasBeenSet() const { return m_heightHasBeenSet; } /** *

The screen resolution's height, expressed in pixels.

*/ inline void SetHeight(int value) { m_heightHasBeenSet = true; m_height = value; } /** *

The screen resolution's height, expressed in pixels.

*/ inline Resolution& WithHeight(int value) { SetHeight(value); return *this;} private: int m_width; bool m_widthHasBeenSet = false; int m_height; bool m_heightHasBeenSet = false; }; } // namespace Model } // namespace DeviceFarm } // namespace Aws