// 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;

/** controlPlaneEndpoint - API server endpoint for the control plane. */
@Fluent
public class ControlPlaneEndpointProfile {
    /*
     * API server endpoint for the control plane
     */
    @JsonProperty(value = "controlPlaneEndpoint")
    private ControlPlaneEndpointProfileControlPlaneEndpoint controlPlaneEndpoint;

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

    /**
     * Get the controlPlaneEndpoint property: API server endpoint for the control plane.
     *
     * @return the controlPlaneEndpoint value.
     */
    public ControlPlaneEndpointProfileControlPlaneEndpoint controlPlaneEndpoint() {
        return this.controlPlaneEndpoint;
    }

    /**
     * Set the controlPlaneEndpoint property: API server endpoint for the control plane.
     *
     * @param controlPlaneEndpoint the controlPlaneEndpoint value to set.
     * @return the ControlPlaneEndpointProfile object itself.
     */
    public ControlPlaneEndpointProfile withControlPlaneEndpoint(
        ControlPlaneEndpointProfileControlPlaneEndpoint controlPlaneEndpoint) {
        this.controlPlaneEndpoint = controlPlaneEndpoint;
        return this;
    }

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