This repository has been archived on 2025-09-14. You can view files and clone it, but cannot push or open issues or pull requests.
Files

148 lines
3.8 KiB
C
Raw Normal View History

/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/mediaconvert/MediaConvert_EXPORTS.h>
namespace Aws
{
namespace Utils
{
namespace Json
{
class JsonValue;
class JsonView;
} // namespace Json
} // namespace Utils
namespace MediaConvert
{
namespace Model
{
/**
* Use Rectangle to identify a specific area of the video frame.<p><h3>See
* Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/mediaconvert-2017-08-29/Rectangle">AWS
* API Reference</a></p>
*/
class AWS_MEDIACONVERT_API Rectangle
{
public:
Rectangle();
Rectangle(Aws::Utils::Json::JsonView jsonValue);
Rectangle& operator=(Aws::Utils::Json::JsonView jsonValue);
Aws::Utils::Json::JsonValue Jsonize() const;
/**
* Height of rectangle in pixels. Specify only even numbers.
*/
inline int GetHeight() const{ return m_height; }
/**
* Height of rectangle in pixels. Specify only even numbers.
*/
inline bool HeightHasBeenSet() const { return m_heightHasBeenSet; }
/**
* Height of rectangle in pixels. Specify only even numbers.
*/
inline void SetHeight(int value) { m_heightHasBeenSet = true; m_height = value; }
/**
* Height of rectangle in pixels. Specify only even numbers.
*/
inline Rectangle& WithHeight(int value) { SetHeight(value); return *this;}
/**
* Width of rectangle in pixels. Specify only even numbers.
*/
inline int GetWidth() const{ return m_width; }
/**
* Width of rectangle in pixels. Specify only even numbers.
*/
inline bool WidthHasBeenSet() const { return m_widthHasBeenSet; }
/**
* Width of rectangle in pixels. Specify only even numbers.
*/
inline void SetWidth(int value) { m_widthHasBeenSet = true; m_width = value; }
/**
* Width of rectangle in pixels. Specify only even numbers.
*/
inline Rectangle& WithWidth(int value) { SetWidth(value); return *this;}
/**
* The distance, in pixels, between the rectangle and the left edge of the video
* frame. Specify only even numbers.
*/
inline int GetX() const{ return m_x; }
/**
* The distance, in pixels, between the rectangle and the left edge of the video
* frame. Specify only even numbers.
*/
inline bool XHasBeenSet() const { return m_xHasBeenSet; }
/**
* The distance, in pixels, between the rectangle and the left edge of the video
* frame. Specify only even numbers.
*/
inline void SetX(int value) { m_xHasBeenSet = true; m_x = value; }
/**
* The distance, in pixels, between the rectangle and the left edge of the video
* frame. Specify only even numbers.
*/
inline Rectangle& WithX(int value) { SetX(value); return *this;}
/**
* The distance, in pixels, between the rectangle and the top edge of the video
* frame. Specify only even numbers.
*/
inline int GetY() const{ return m_y; }
/**
* The distance, in pixels, between the rectangle and the top edge of the video
* frame. Specify only even numbers.
*/
inline bool YHasBeenSet() const { return m_yHasBeenSet; }
/**
* The distance, in pixels, between the rectangle and the top edge of the video
* frame. Specify only even numbers.
*/
inline void SetY(int value) { m_yHasBeenSet = true; m_y = value; }
/**
* The distance, in pixels, between the rectangle and the top edge of the video
* frame. Specify only even numbers.
*/
inline Rectangle& WithY(int value) { SetY(value); return *this;}
private:
int m_height;
bool m_heightHasBeenSet;
int m_width;
bool m_widthHasBeenSet;
int m_x;
bool m_xHasBeenSet;
int m_y;
bool m_yHasBeenSet;
};
} // namespace Model
} // namespace MediaConvert
} // namespace Aws