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

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

import com.azure.core.annotation.Fluent;
import com.azure.resourcemanager.synapse.models.PrivateEndpointConnectionForPrivateLinkHubBasicAutoGenerated;
import com.fasterxml.jackson.annotation.JsonProperty;

/** The PrivateEndpointConnectionForPrivateLinkHub model. */
@Fluent
public final class PrivateEndpointConnectionForPrivateLinkHubInner
    extends PrivateEndpointConnectionForPrivateLinkHubBasicAutoGenerated {
    /*
     * The name property.
     */
    @JsonProperty(value = "name")
    private String name;

    /*
     * The type property.
     */
    @JsonProperty(value = "type")
    private String type;

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

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

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

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

    /**
     * Set the type property: The type property.
     *
     * @param type the type value to set.
     * @return the PrivateEndpointConnectionForPrivateLinkHubInner object itself.
     */
    public PrivateEndpointConnectionForPrivateLinkHubInner withType(String type) {
        this.type = type;
        return this;
    }

    /** {@inheritDoc} */
    @Override
    public PrivateEndpointConnectionForPrivateLinkHubInner withId(String id) {
        super.withId(id);
        return this;
    }

    /** {@inheritDoc} */
    @Override
    public PrivateEndpointConnectionForPrivateLinkHubInner withProperties(
        PrivateEndpointConnectionProperties properties) {
        super.withProperties(properties);
        return this;
    }

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