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

package com.azure.media.videoanalyzer.edge.models;

import com.azure.core.annotation.Fluent;
import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonTypeInfo;
import com.fasterxml.jackson.annotation.JsonTypeName;

/**
 * Unsecured endpoint describes an endpoint that the pipeline can connect to over clear transport (no encryption in
 * transit).
 */
@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "@type")
@JsonTypeName("#Microsoft.VideoAnalyzer.UnsecuredEndpoint")
@Fluent
public final class UnsecuredEndpoint extends EndpointBase {
    /**
     * Creates an instance of UnsecuredEndpoint class.
     *
     * @param url the url value to set.
     */
    @JsonCreator
    public UnsecuredEndpoint(@JsonProperty(value = "url", required = true) String url) {
        super(url);
    }

    /** {@inheritDoc} */
    @Override
    public UnsecuredEndpoint setCredentials(CredentialsBase credentials) {
        super.setCredentials(credentials);
        return this;
    }
}
