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

package com.azure.resourcemanager.apimanagement.fluent.models;

import com.azure.core.annotation.Fluent;
import com.azure.resourcemanager.apimanagement.models.ResourceLocationDataContract;
import com.fasterxml.jackson.annotation.JsonProperty;

/** Properties of the Gateway contract. */
@Fluent
public final class GatewayContractProperties {
    /*
     * Gateway location.
     */
    @JsonProperty(value = "locationData")
    private ResourceLocationDataContract locationData;

    /*
     * Gateway description
     */
    @JsonProperty(value = "description")
    private String description;

    /**
     * Get the locationData property: Gateway location.
     *
     * @return the locationData value.
     */
    public ResourceLocationDataContract locationData() {
        return this.locationData;
    }

    /**
     * Set the locationData property: Gateway location.
     *
     * @param locationData the locationData value to set.
     * @return the GatewayContractProperties object itself.
     */
    public GatewayContractProperties withLocationData(ResourceLocationDataContract locationData) {
        this.locationData = locationData;
        return this;
    }

    /**
     * Get the description property: Gateway description.
     *
     * @return the description value.
     */
    public String description() {
        return this.description;
    }

    /**
     * Set the description property: Gateway description.
     *
     * @param description the description value to set.
     * @return the GatewayContractProperties object itself.
     */
    public GatewayContractProperties withDescription(String description) {
        this.description = description;
        return this;
    }

    /**
     * Validates the instance.
     *
     * @throws IllegalArgumentException thrown if the instance is not valid.
     */
    public void validate() {
        if (locationData() != null) {
            locationData().validate();
        }
    }
}
