// 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;
import java.util.List;

/** The network endpoint. */
@Fluent
public final class IntegrationServiceEnvironmentNetworkEndpoint {
    /*
     * The accessibility state.
     */
    @JsonProperty(value = "accessibility")
    private IntegrationServiceEnvironmentNetworkEndPointAccessibilityState accessibility;

    /*
     * The domain name.
     */
    @JsonProperty(value = "domainName")
    private String domainName;

    /*
     * The ports.
     */
    @JsonProperty(value = "ports")
    private List<String> ports;

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

    /**
     * Get the accessibility property: The accessibility state.
     *
     * @return the accessibility value.
     */
    public IntegrationServiceEnvironmentNetworkEndPointAccessibilityState accessibility() {
        return this.accessibility;
    }

    /**
     * Set the accessibility property: The accessibility state.
     *
     * @param accessibility the accessibility value to set.
     * @return the IntegrationServiceEnvironmentNetworkEndpoint object itself.
     */
    public IntegrationServiceEnvironmentNetworkEndpoint withAccessibility(
        IntegrationServiceEnvironmentNetworkEndPointAccessibilityState accessibility) {
        this.accessibility = accessibility;
        return this;
    }

    /**
     * Get the domainName property: The domain name.
     *
     * @return the domainName value.
     */
    public String domainName() {
        return this.domainName;
    }

    /**
     * Set the domainName property: The domain name.
     *
     * @param domainName the domainName value to set.
     * @return the IntegrationServiceEnvironmentNetworkEndpoint object itself.
     */
    public IntegrationServiceEnvironmentNetworkEndpoint withDomainName(String domainName) {
        this.domainName = domainName;
        return this;
    }

    /**
     * Get the ports property: The ports.
     *
     * @return the ports value.
     */
    public List<String> ports() {
        return this.ports;
    }

    /**
     * Set the ports property: The ports.
     *
     * @param ports the ports value to set.
     * @return the IntegrationServiceEnvironmentNetworkEndpoint object itself.
     */
    public IntegrationServiceEnvironmentNetworkEndpoint withPorts(List<String> ports) {
        this.ports = ports;
        return this;
    }

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