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

com.pulumi.azurenative.media.outputs.MediaGraphTlsEndpointResponse Maven / Gradle / Ivy

There is a newer version: 2.78.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.media.outputs;

import com.pulumi.azurenative.media.outputs.MediaGraphPemCertificateListResponse;
import com.pulumi.azurenative.media.outputs.MediaGraphTlsValidationOptionsResponse;
import com.pulumi.azurenative.media.outputs.MediaGraphUsernamePasswordCredentialsResponse;
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 MediaGraphTlsEndpointResponse {
    /**
     * @return Polymorphic credentials to present to the endpoint.
     * 
     */
    private @Nullable MediaGraphUsernamePasswordCredentialsResponse credentials;
    /**
     * @return The discriminator for derived types.
     * Expected value is '#Microsoft.Media.MediaGraphTlsEndpoint'.
     * 
     */
    private String odataType;
    /**
     * @return What certificates should be trusted when authenticating a TLS connection. Null designates that Azure Media's source of trust should be used.
     * 
     */
    private @Nullable MediaGraphPemCertificateListResponse trustedCertificates;
    /**
     * @return Url for the endpoint.
     * 
     */
    private String url;
    /**
     * @return Validation options to use when authenticating a TLS connection. By default, strict validation is used.
     * 
     */
    private @Nullable MediaGraphTlsValidationOptionsResponse validationOptions;

    private MediaGraphTlsEndpointResponse() {}
    /**
     * @return Polymorphic credentials to present to the endpoint.
     * 
     */
    public Optional credentials() {
        return Optional.ofNullable(this.credentials);
    }
    /**
     * @return The discriminator for derived types.
     * Expected value is '#Microsoft.Media.MediaGraphTlsEndpoint'.
     * 
     */
    public String odataType() {
        return this.odataType;
    }
    /**
     * @return What certificates should be trusted when authenticating a TLS connection. Null designates that Azure Media's source of trust should be used.
     * 
     */
    public Optional trustedCertificates() {
        return Optional.ofNullable(this.trustedCertificates);
    }
    /**
     * @return Url for the endpoint.
     * 
     */
    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(MediaGraphTlsEndpointResponse defaults) {
        return new Builder(defaults);
    }
    @CustomType.Builder
    public static final class Builder {
        private @Nullable MediaGraphUsernamePasswordCredentialsResponse credentials;
        private String odataType;
        private @Nullable MediaGraphPemCertificateListResponse trustedCertificates;
        private String url;
        private @Nullable MediaGraphTlsValidationOptionsResponse validationOptions;
        public Builder() {}
        public Builder(MediaGraphTlsEndpointResponse defaults) {
    	      Objects.requireNonNull(defaults);
    	      this.credentials = defaults.credentials;
    	      this.odataType = defaults.odataType;
    	      this.trustedCertificates = defaults.trustedCertificates;
    	      this.url = defaults.url;
    	      this.validationOptions = defaults.validationOptions;
        }

        @CustomType.Setter
        public Builder credentials(@Nullable MediaGraphUsernamePasswordCredentialsResponse credentials) {

            this.credentials = credentials;
            return this;
        }
        @CustomType.Setter
        public Builder odataType(String odataType) {
            if (odataType == null) {
              throw new MissingRequiredPropertyException("MediaGraphTlsEndpointResponse", "odataType");
            }
            this.odataType = odataType;
            return this;
        }
        @CustomType.Setter
        public Builder trustedCertificates(@Nullable MediaGraphPemCertificateListResponse trustedCertificates) {

            this.trustedCertificates = trustedCertificates;
            return this;
        }
        @CustomType.Setter
        public Builder url(String url) {
            if (url == null) {
              throw new MissingRequiredPropertyException("MediaGraphTlsEndpointResponse", "url");
            }
            this.url = url;
            return this;
        }
        @CustomType.Setter
        public Builder validationOptions(@Nullable MediaGraphTlsValidationOptionsResponse validationOptions) {

            this.validationOptions = validationOptions;
            return this;
        }
        public MediaGraphTlsEndpointResponse build() {
            final var _resultValue = new MediaGraphTlsEndpointResponse();
            _resultValue.credentials = credentials;
            _resultValue.odataType = odataType;
            _resultValue.trustedCertificates = trustedCertificates;
            _resultValue.url = url;
            _resultValue.validationOptions = validationOptions;
            return _resultValue;
        }
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy