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

com.pulumi.azurenative.media.inputs.AudioTrackArgs Maven / Gradle / Ivy

There is a newer version: 2.72.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.inputs;

import com.pulumi.azurenative.media.inputs.DashSettingsArgs;
import com.pulumi.azurenative.media.inputs.HlsSettingsArgs;
import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import com.pulumi.core.internal.Codegen;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.Integer;
import java.lang.String;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;


/**
 * Represents an audio track in the asset.
 * 
 */
public final class AudioTrackArgs extends com.pulumi.resources.ResourceArgs {

    public static final AudioTrackArgs Empty = new AudioTrackArgs();

    /**
     * The DASH specific setting for the audio track.
     * 
     */
    @Import(name="dashSettings")
    private @Nullable Output dashSettings;

    /**
     * @return The DASH specific setting for the audio track.
     * 
     */
    public Optional> dashSettings() {
        return Optional.ofNullable(this.dashSettings);
    }

    /**
     * The display name of the audio track on a video player. In HLS, this maps to the NAME attribute of EXT-X-MEDIA.
     * 
     */
    @Import(name="displayName")
    private @Nullable Output displayName;

    /**
     * @return The display name of the audio track on a video player. In HLS, this maps to the NAME attribute of EXT-X-MEDIA.
     * 
     */
    public Optional> displayName() {
        return Optional.ofNullable(this.displayName);
    }

    /**
     * The file name to the source file. This file is located in the storage container of the asset.
     * 
     */
    @Import(name="fileName")
    private @Nullable Output fileName;

    /**
     * @return The file name to the source file. This file is located in the storage container of the asset.
     * 
     */
    public Optional> fileName() {
        return Optional.ofNullable(this.fileName);
    }

    /**
     * The HLS specific setting for the audio track.
     * 
     */
    @Import(name="hlsSettings")
    private @Nullable Output hlsSettings;

    /**
     * @return The HLS specific setting for the audio track.
     * 
     */
    public Optional> hlsSettings() {
        return Optional.ofNullable(this.hlsSettings);
    }

    /**
     * The RFC5646 language code for the audio track.
     * 
     */
    @Import(name="languageCode")
    private @Nullable Output languageCode;

    /**
     * @return The RFC5646 language code for the audio track.
     * 
     */
    public Optional> languageCode() {
        return Optional.ofNullable(this.languageCode);
    }

    /**
     * The MPEG-4 audio track ID for the audio track.
     * 
     */
    @Import(name="mpeg4TrackId")
    private @Nullable Output mpeg4TrackId;

    /**
     * @return The MPEG-4 audio track ID for the audio track.
     * 
     */
    public Optional> mpeg4TrackId() {
        return Optional.ofNullable(this.mpeg4TrackId);
    }

    /**
     * The discriminator for derived types.
     * Expected value is '#Microsoft.Media.AudioTrack'.
     * 
     */
    @Import(name="odataType", required=true)
    private Output odataType;

    /**
     * @return The discriminator for derived types.
     * Expected value is '#Microsoft.Media.AudioTrack'.
     * 
     */
    public Output odataType() {
        return this.odataType;
    }

    private AudioTrackArgs() {}

    private AudioTrackArgs(AudioTrackArgs $) {
        this.dashSettings = $.dashSettings;
        this.displayName = $.displayName;
        this.fileName = $.fileName;
        this.hlsSettings = $.hlsSettings;
        this.languageCode = $.languageCode;
        this.mpeg4TrackId = $.mpeg4TrackId;
        this.odataType = $.odataType;
    }

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

    public static final class Builder {
        private AudioTrackArgs $;

        public Builder() {
            $ = new AudioTrackArgs();
        }

        public Builder(AudioTrackArgs defaults) {
            $ = new AudioTrackArgs(Objects.requireNonNull(defaults));
        }

        /**
         * @param dashSettings The DASH specific setting for the audio track.
         * 
         * @return builder
         * 
         */
        public Builder dashSettings(@Nullable Output dashSettings) {
            $.dashSettings = dashSettings;
            return this;
        }

        /**
         * @param dashSettings The DASH specific setting for the audio track.
         * 
         * @return builder
         * 
         */
        public Builder dashSettings(DashSettingsArgs dashSettings) {
            return dashSettings(Output.of(dashSettings));
        }

        /**
         * @param displayName The display name of the audio track on a video player. In HLS, this maps to the NAME attribute of EXT-X-MEDIA.
         * 
         * @return builder
         * 
         */
        public Builder displayName(@Nullable Output displayName) {
            $.displayName = displayName;
            return this;
        }

        /**
         * @param displayName The display name of the audio track on a video player. In HLS, this maps to the NAME attribute of EXT-X-MEDIA.
         * 
         * @return builder
         * 
         */
        public Builder displayName(String displayName) {
            return displayName(Output.of(displayName));
        }

        /**
         * @param fileName The file name to the source file. This file is located in the storage container of the asset.
         * 
         * @return builder
         * 
         */
        public Builder fileName(@Nullable Output fileName) {
            $.fileName = fileName;
            return this;
        }

        /**
         * @param fileName The file name to the source file. This file is located in the storage container of the asset.
         * 
         * @return builder
         * 
         */
        public Builder fileName(String fileName) {
            return fileName(Output.of(fileName));
        }

        /**
         * @param hlsSettings The HLS specific setting for the audio track.
         * 
         * @return builder
         * 
         */
        public Builder hlsSettings(@Nullable Output hlsSettings) {
            $.hlsSettings = hlsSettings;
            return this;
        }

        /**
         * @param hlsSettings The HLS specific setting for the audio track.
         * 
         * @return builder
         * 
         */
        public Builder hlsSettings(HlsSettingsArgs hlsSettings) {
            return hlsSettings(Output.of(hlsSettings));
        }

        /**
         * @param languageCode The RFC5646 language code for the audio track.
         * 
         * @return builder
         * 
         */
        public Builder languageCode(@Nullable Output languageCode) {
            $.languageCode = languageCode;
            return this;
        }

        /**
         * @param languageCode The RFC5646 language code for the audio track.
         * 
         * @return builder
         * 
         */
        public Builder languageCode(String languageCode) {
            return languageCode(Output.of(languageCode));
        }

        /**
         * @param mpeg4TrackId The MPEG-4 audio track ID for the audio track.
         * 
         * @return builder
         * 
         */
        public Builder mpeg4TrackId(@Nullable Output mpeg4TrackId) {
            $.mpeg4TrackId = mpeg4TrackId;
            return this;
        }

        /**
         * @param mpeg4TrackId The MPEG-4 audio track ID for the audio track.
         * 
         * @return builder
         * 
         */
        public Builder mpeg4TrackId(Integer mpeg4TrackId) {
            return mpeg4TrackId(Output.of(mpeg4TrackId));
        }

        /**
         * @param odataType The discriminator for derived types.
         * Expected value is '#Microsoft.Media.AudioTrack'.
         * 
         * @return builder
         * 
         */
        public Builder odataType(Output odataType) {
            $.odataType = odataType;
            return this;
        }

        /**
         * @param odataType The discriminator for derived types.
         * Expected value is '#Microsoft.Media.AudioTrack'.
         * 
         * @return builder
         * 
         */
        public Builder odataType(String odataType) {
            return odataType(Output.of(odataType));
        }

        public AudioTrackArgs build() {
            $.odataType = Codegen.stringProp("odataType").output().arg($.odataType).require();
            return $;
        }
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy