/**
 * Copyright (c) Microsoft Corporation. All rights reserved.
 * Licensed under the MIT License. See License.txt in the project root for
 * license information.
 *
 * Code generated by Microsoft (R) AutoRest Code Generator.
 */

package com.microsoft.azure.cognitiveservices.vision.computervision.models;

import com.fasterxml.jackson.annotation.JsonProperty;

/**
 * A bounding box for an area inside an image.
 */
public class BoundingRect {
    /**
     * X-coordinate of the top left point of the area, in pixels.
     */
    @JsonProperty(value = "x")
    private int x;

    /**
     * Y-coordinate of the top left point of the area, in pixels.
     */
    @JsonProperty(value = "y")
    private int y;

    /**
     * Width measured from the top-left point of the area, in pixels.
     */
    @JsonProperty(value = "w")
    private int w;

    /**
     * Height measured from the top-left point of the area, in pixels.
     */
    @JsonProperty(value = "h")
    private int h;

    /**
     * Get the x value.
     *
     * @return the x value
     */
    public int x() {
        return this.x;
    }

    /**
     * Set the x value.
     *
     * @param x the x value to set
     * @return the BoundingRect object itself.
     */
    public BoundingRect withX(int x) {
        this.x = x;
        return this;
    }

    /**
     * Get the y value.
     *
     * @return the y value
     */
    public int y() {
        return this.y;
    }

    /**
     * Set the y value.
     *
     * @param y the y value to set
     * @return the BoundingRect object itself.
     */
    public BoundingRect withY(int y) {
        this.y = y;
        return this;
    }

    /**
     * Get the w value.
     *
     * @return the w value
     */
    public int w() {
        return this.w;
    }

    /**
     * Set the w value.
     *
     * @param w the w value to set
     * @return the BoundingRect object itself.
     */
    public BoundingRect withW(int w) {
        this.w = w;
        return this;
    }

    /**
     * Get the h value.
     *
     * @return the h value
     */
    public int h() {
        return this.h;
    }

    /**
     * Set the h value.
     *
     * @param h the h value to set
     * @return the BoundingRect object itself.
     */
    public BoundingRect withH(int h) {
        this.h = h;
        return this;
    }

}
