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

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

import com.azure.core.annotation.Fluent;
import com.azure.resourcemanager.delegatednetwork.models.OrchestratorIdentity;
import com.azure.resourcemanager.delegatednetwork.models.OrchestratorKind;
import com.azure.resourcemanager.delegatednetwork.models.OrchestratorResource;
import com.azure.resourcemanager.delegatednetwork.models.OrchestratorResourceProperties;
import com.fasterxml.jackson.annotation.JsonProperty;
import java.util.Map;

/** Represents an instance of a orchestrator. */
@Fluent
public final class OrchestratorInner extends OrchestratorResource {
    /*
     * Properties of the provision operation request.
     */
    @JsonProperty(value = "properties")
    private OrchestratorResourceProperties properties;

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

    /**
     * Get the properties property: Properties of the provision operation request.
     *
     * @return the properties value.
     */
    public OrchestratorResourceProperties properties() {
        return this.properties;
    }

    /**
     * Set the properties property: Properties of the provision operation request.
     *
     * @param properties the properties value to set.
     * @return the OrchestratorInner object itself.
     */
    public OrchestratorInner withProperties(OrchestratorResourceProperties properties) {
        this.properties = properties;
        return this;
    }

    /** {@inheritDoc} */
    @Override
    public OrchestratorInner withKind(OrchestratorKind kind) {
        super.withKind(kind);
        return this;
    }

    /** {@inheritDoc} */
    @Override
    public OrchestratorInner withIdentity(OrchestratorIdentity identity) {
        super.withIdentity(identity);
        return this;
    }

    /** {@inheritDoc} */
    @Override
    public OrchestratorInner withLocation(String location) {
        super.withLocation(location);
        return this;
    }

    /** {@inheritDoc} */
    @Override
    public OrchestratorInner withTags(Map<String, String> tags) {
        super.withTags(tags);
        return this;
    }

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