All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.pulumi.azurenative.videoanalyzer.outputs.TlsEndpointResponse Maven / Gradle / Ivy

There is a newer version: 2.82.0
Show newest version
// *** WARNING: this file was generated by pulumi-java-gen. ***
// *** Do not edit by hand unless you're certain you know what you are doing! ***

package com.pulumi.azurenative.videoanalyzer.outputs;

import com.pulumi.azurenative.videoanalyzer.outputs.PemCertificateListResponse;
import com.pulumi.azurenative.videoanalyzer.outputs.SecureIotDeviceRemoteTunnelResponse;
import com.pulumi.azurenative.videoanalyzer.outputs.TlsValidationOptionsResponse;
import com.pulumi.azurenative.videoanalyzer.outputs.UsernamePasswordCredentialsResponse;
import com.pulumi.core.annotations.CustomType;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.String;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;

@CustomType
public final class TlsEndpointResponse {
    /**
     * @return Credentials to be presented to the endpoint.
     * 
     */
    private UsernamePasswordCredentialsResponse credentials;
    /**
     * @return List of trusted certificate authorities when authenticating a TLS connection. A null list designates that Azure Video Analyzer's list of trusted authorities should be used.
     * 
     */
    private @Nullable PemCertificateListResponse trustedCertificates;
    /**
     * @return Describes the tunnel through which Video Analyzer can connect to the endpoint URL. This is an optional property, typically used when the endpoint is behind a firewall.
     * 
     */
    private @Nullable SecureIotDeviceRemoteTunnelResponse tunnel;
    /**
     * @return The discriminator for derived types.
     * Expected value is '#Microsoft.VideoAnalyzer.TlsEndpoint'.
     * 
     */
    private String type;
    /**
     * @return The endpoint URL for Video Analyzer to connect to.
     * 
     */
    private String url;
    /**
     * @return Validation options to use when authenticating a TLS connection. By default, strict validation is used.
     * 
     */
    private @Nullable TlsValidationOptionsResponse validationOptions;

    private TlsEndpointResponse() {}
    /**
     * @return Credentials to be presented to the endpoint.
     * 
     */
    public UsernamePasswordCredentialsResponse credentials() {
        return this.credentials;
    }
    /**
     * @return List of trusted certificate authorities when authenticating a TLS connection. A null list designates that Azure Video Analyzer's list of trusted authorities should be used.
     * 
     */
    public Optional trustedCertificates() {
        return Optional.ofNullable(this.trustedCertificates);
    }
    /**
     * @return Describes the tunnel through which Video Analyzer can connect to the endpoint URL. This is an optional property, typically used when the endpoint is behind a firewall.
     * 
     */
    public Optional tunnel() {
        return Optional.ofNullable(this.tunnel);
    }
    /**
     * @return The discriminator for derived types.
     * Expected value is '#Microsoft.VideoAnalyzer.TlsEndpoint'.
     * 
     */
    public String type() {
        return this.type;
    }
    /**
     * @return The endpoint URL for Video Analyzer to connect to.
     * 
     */
    public String url() {
        return this.url;
    }
    /**
     * @return Validation options to use when authenticating a TLS connection. By default, strict validation is used.
     * 
     */
    public Optional validationOptions() {
        return Optional.ofNullable(this.validationOptions);
    }

    public static Builder builder() {
        return new Builder();
    }

    public static Builder builder(TlsEndpointResponse defaults) {
        return new Builder(defaults);
    }
    @CustomType.Builder
    public static final class Builder {
        private UsernamePasswordCredentialsResponse credentials;
        private @Nullable PemCertificateListResponse trustedCertificates;
        private @Nullable SecureIotDeviceRemoteTunnelResponse tunnel;
        private String type;
        private String url;
        private @Nullable TlsValidationOptionsResponse validationOptions;
        public Builder() {}
        public Builder(TlsEndpointResponse defaults) {
    	      Objects.requireNonNull(defaults);
    	      this.credentials = defaults.credentials;
    	      this.trustedCertificates = defaults.trustedCertificates;
    	      this.tunnel = defaults.tunnel;
    	      this.type = defaults.type;
    	      this.url = defaults.url;
    	      this.validationOptions = defaults.validationOptions;
        }

        @CustomType.Setter
        public Builder credentials(UsernamePasswordCredentialsResponse credentials) {
            if (credentials == null) {
              throw new MissingRequiredPropertyException("TlsEndpointResponse", "credentials");
            }
            this.credentials = credentials;
            return this;
        }
        @CustomType.Setter
        public Builder trustedCertificates(@Nullable PemCertificateListResponse trustedCertificates) {

            this.trustedCertificates = trustedCertificates;
            return this;
        }
        @CustomType.Setter
        public Builder tunnel(@Nullable SecureIotDeviceRemoteTunnelResponse tunnel) {

            this.tunnel = tunnel;
            return this;
        }
        @CustomType.Setter
        public Builder type(String type) {
            if (type == null) {
              throw new MissingRequiredPropertyException("TlsEndpointResponse", "type");
            }
            this.type = type;
            return this;
        }
        @CustomType.Setter
        public Builder url(String url) {
            if (url == null) {
              throw new MissingRequiredPropertyException("TlsEndpointResponse", "url");
            }
            this.url = url;
            return this;
        }
        @CustomType.Setter
        public Builder validationOptions(@Nullable TlsValidationOptionsResponse validationOptions) {

            this.validationOptions = validationOptions;
            return this;
        }
        public TlsEndpointResponse build() {
            final var _resultValue = new TlsEndpointResponse();
            _resultValue.credentials = credentials;
            _resultValue.trustedCertificates = trustedCertificates;
            _resultValue.tunnel = tunnel;
            _resultValue.type = type;
            _resultValue.url = url;
            _resultValue.validationOptions = validationOptions;
            return _resultValue;
        }
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy