// *** 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.azure.media.outputs;

import com.pulumi.core.annotations.CustomType;
import java.lang.Boolean;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;

@CustomType
public final class StreamingPolicyEnvelopeEncryptionEnabledProtocols {
    /**
     * @return Enable DASH protocol or not. Changing this forces a new Streaming Policy to be created.
     * 
     */
    private @Nullable Boolean dash;
    /**
     * @return Enable Download protocol or not. Changing this forces a new Streaming Policy to be created.
     * 
     */
    private @Nullable Boolean download;
    /**
     * @return Enable HLS protocol or not. Changing this forces a new Streaming Policy to be created.
     * 
     */
    private @Nullable Boolean hls;
    /**
     * @return Enable SmoothStreaming protocol or not. Changing this forces a new Streaming Policy to be created.
     * 
     */
    private @Nullable Boolean smoothStreaming;

    private StreamingPolicyEnvelopeEncryptionEnabledProtocols() {}
    /**
     * @return Enable DASH protocol or not. Changing this forces a new Streaming Policy to be created.
     * 
     */
    public Optional<Boolean> dash() {
        return Optional.ofNullable(this.dash);
    }
    /**
     * @return Enable Download protocol or not. Changing this forces a new Streaming Policy to be created.
     * 
     */
    public Optional<Boolean> download() {
        return Optional.ofNullable(this.download);
    }
    /**
     * @return Enable HLS protocol or not. Changing this forces a new Streaming Policy to be created.
     * 
     */
    public Optional<Boolean> hls() {
        return Optional.ofNullable(this.hls);
    }
    /**
     * @return Enable SmoothStreaming protocol or not. Changing this forces a new Streaming Policy to be created.
     * 
     */
    public Optional<Boolean> smoothStreaming() {
        return Optional.ofNullable(this.smoothStreaming);
    }

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

    public static Builder builder(StreamingPolicyEnvelopeEncryptionEnabledProtocols defaults) {
        return new Builder(defaults);
    }
    @CustomType.Builder
    public static final class Builder {
        private @Nullable Boolean dash;
        private @Nullable Boolean download;
        private @Nullable Boolean hls;
        private @Nullable Boolean smoothStreaming;
        public Builder() {}
        public Builder(StreamingPolicyEnvelopeEncryptionEnabledProtocols defaults) {
    	      Objects.requireNonNull(defaults);
    	      this.dash = defaults.dash;
    	      this.download = defaults.download;
    	      this.hls = defaults.hls;
    	      this.smoothStreaming = defaults.smoothStreaming;
        }

        @CustomType.Setter
        public Builder dash(@Nullable Boolean dash) {
            this.dash = dash;
            return this;
        }
        @CustomType.Setter
        public Builder download(@Nullable Boolean download) {
            this.download = download;
            return this;
        }
        @CustomType.Setter
        public Builder hls(@Nullable Boolean hls) {
            this.hls = hls;
            return this;
        }
        @CustomType.Setter
        public Builder smoothStreaming(@Nullable Boolean smoothStreaming) {
            this.smoothStreaming = smoothStreaming;
            return this;
        }
        public StreamingPolicyEnvelopeEncryptionEnabledProtocols build() {
            final var o = new StreamingPolicyEnvelopeEncryptionEnabledProtocols();
            o.dash = dash;
            o.download = download;
            o.hls = hls;
            o.smoothStreaming = smoothStreaming;
            return o;
        }
    }
}
