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

package com.azure.resourcemanager.logic.models;

import com.azure.core.annotation.Fluent;
import com.fasterxml.jackson.annotation.JsonProperty;

/** The API backend service. */
@Fluent
public final class ApiResourceBackendService {
    /*
     * The service URL.
     */
    @JsonProperty(value = "serviceUrl")
    private String serviceUrl;

    /** Creates an instance of ApiResourceBackendService class. */
    public ApiResourceBackendService() {
    }

    /**
     * Get the serviceUrl property: The service URL.
     *
     * @return the serviceUrl value.
     */
    public String serviceUrl() {
        return this.serviceUrl;
    }

    /**
     * Set the serviceUrl property: The service URL.
     *
     * @param serviceUrl the serviceUrl value to set.
     * @return the ApiResourceBackendService object itself.
     */
    public ApiResourceBackendService withServiceUrl(String serviceUrl) {
        this.serviceUrl = serviceUrl;
        return this;
    }

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