// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
// Code generated by Microsoft (R) AutoRest Code Generator.

package com.azure.autorest.partialupdate.util;

import com.azure.core.annotation.Generated;
import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonProperty;

public final class Model {
    /*
     * Required field.
     */
    @Generated
    @JsonProperty(value = "requiredField", required = true)
    private String requiredField;

    /*
     * Optional field
     */
    @Generated
    @JsonProperty(value = "optionalField")
    private String optionalField;

    /**
     * Creates an instance of Model class.
     *
     * @param requiredField
     */
    @Generated
    public Model(
            @JsonProperty(value = "requiredField", required = true) String requiredField) {
        this.requiredField = requiredField;
    }

    /**
     * Get the requiredField property: Required field.
     *
     * @return the requiredField value.
     */
    @Generated
    public String getRequiredField() {
        return this.requiredField;
    }

    /**
     * Get the optionalField property: Optional field.
     *
     * @return the optionalField value.
     */
    @Generated
    public String getOptionalField() {
        return this.optionalField;
    }

    /**
     * Set the optionalField property: Optional field.
     *
     * @param optionalField the optionalField value to set.
     * @return the Model object itself.
     */
    @Generated
    public Model setOptionalField(String optionalField) {
        this.optionalField = optionalField;
        return this;
    }
}