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

package com.azure.resourcemanager.hybridcontainerservice.models;

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

/** Additional features specs like Arc Agent Onboarding. */
@Fluent
public final class ProvisionedClustersCommonPropertiesFeatures {
    /*
     * Arc agentry configuration for the provisioned cluster.
     */
    @JsonProperty(value = "arcAgentProfile")
    private ArcAgentProfile arcAgentProfile;

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

    /**
     * Get the arcAgentProfile property: Arc agentry configuration for the provisioned cluster.
     *
     * @return the arcAgentProfile value.
     */
    public ArcAgentProfile arcAgentProfile() {
        return this.arcAgentProfile;
    }

    /**
     * Set the arcAgentProfile property: Arc agentry configuration for the provisioned cluster.
     *
     * @param arcAgentProfile the arcAgentProfile value to set.
     * @return the ProvisionedClustersCommonPropertiesFeatures object itself.
     */
    public ProvisionedClustersCommonPropertiesFeatures withArcAgentProfile(ArcAgentProfile arcAgentProfile) {
        this.arcAgentProfile = arcAgentProfile;
        return this;
    }

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