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

/** API server endpoint for the control plane. */
@Fluent
public final class ControlPlaneEndpointProfileControlPlaneEndpoint {
    /*
     * Host IP address for API server
     */
    @JsonProperty(value = "hostIP")
    private String hostIp;

    /*
     * Port for the API server
     */
    @JsonProperty(value = "port")
    private String port;

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

    /**
     * Get the hostIp property: Host IP address for API server.
     *
     * @return the hostIp value.
     */
    public String hostIp() {
        return this.hostIp;
    }

    /**
     * Set the hostIp property: Host IP address for API server.
     *
     * @param hostIp the hostIp value to set.
     * @return the ControlPlaneEndpointProfileControlPlaneEndpoint object itself.
     */
    public ControlPlaneEndpointProfileControlPlaneEndpoint withHostIp(String hostIp) {
        this.hostIp = hostIp;
        return this;
    }

    /**
     * Get the port property: Port for the API server.
     *
     * @return the port value.
     */
    public String port() {
        return this.port;
    }

    /**
     * Set the port property: Port for the API server.
     *
     * @param port the port value to set.
     * @return the ControlPlaneEndpointProfileControlPlaneEndpoint object itself.
     */
    public ControlPlaneEndpointProfileControlPlaneEndpoint withPort(String port) {
        this.port = port;
        return this;
    }

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