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

package com.azure.resourcemanager.deviceupdate.models;

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

/** Private endpoint connection proxy object properties. */
@Fluent
public class PrivateEndpointConnectionProxyPropertiesAutoGenerated {
    /*
     * ETag from NRP.
     */
    @JsonProperty(value = "eTag", access = JsonProperty.Access.WRITE_ONLY)
    private String etag;

    /*
     * Remote private endpoint details.
     */
    @JsonProperty(value = "remotePrivateEndpoint")
    private RemotePrivateEndpoint remotePrivateEndpoint;

    /*
     * Operation status.
     */
    @JsonProperty(value = "status")
    private String status;

    /**
     * Get the etag property: ETag from NRP.
     *
     * @return the etag value.
     */
    public String etag() {
        return this.etag;
    }

    /**
     * Get the remotePrivateEndpoint property: Remote private endpoint details.
     *
     * @return the remotePrivateEndpoint value.
     */
    public RemotePrivateEndpoint remotePrivateEndpoint() {
        return this.remotePrivateEndpoint;
    }

    /**
     * Set the remotePrivateEndpoint property: Remote private endpoint details.
     *
     * @param remotePrivateEndpoint the remotePrivateEndpoint value to set.
     * @return the PrivateEndpointConnectionProxyPropertiesAutoGenerated object itself.
     */
    public PrivateEndpointConnectionProxyPropertiesAutoGenerated withRemotePrivateEndpoint(
        RemotePrivateEndpoint remotePrivateEndpoint) {
        this.remotePrivateEndpoint = remotePrivateEndpoint;
        return this;
    }

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

    /**
     * Set the status property: Operation status.
     *
     * @param status the status value to set.
     * @return the PrivateEndpointConnectionProxyPropertiesAutoGenerated object itself.
     */
    public PrivateEndpointConnectionProxyPropertiesAutoGenerated withStatus(String status) {
        this.status = status;
        return this;
    }

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