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

com.pulumi.azurenative.media.inputs.SelectAudioTrackByIdArgs 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.media.inputs;

import com.pulumi.azurenative.media.enums.ChannelMapping;
import com.pulumi.core.Either;
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.Double;
import java.lang.String;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;


/**
 * Select audio tracks from the input by specifying a track identifier.
 * 
 */
public final class SelectAudioTrackByIdArgs extends com.pulumi.resources.ResourceArgs {

    public static final SelectAudioTrackByIdArgs Empty = new SelectAudioTrackByIdArgs();

    /**
     * Optional designation for single channel audio tracks.  Can be used to combine the tracks into stereo or multi-channel audio tracks.
     * 
     */
    @Import(name="channelMapping")
    private @Nullable Output> channelMapping;

    /**
     * @return Optional designation for single channel audio tracks.  Can be used to combine the tracks into stereo or multi-channel audio tracks.
     * 
     */
    public Optional>> channelMapping() {
        return Optional.ofNullable(this.channelMapping);
    }

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

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

    /**
     * Track identifier to select
     * 
     */
    @Import(name="trackId", required=true)
    private Output trackId;

    /**
     * @return Track identifier to select
     * 
     */
    public Output trackId() {
        return this.trackId;
    }

    private SelectAudioTrackByIdArgs() {}

    private SelectAudioTrackByIdArgs(SelectAudioTrackByIdArgs $) {
        this.channelMapping = $.channelMapping;
        this.odataType = $.odataType;
        this.trackId = $.trackId;
    }

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

    public static final class Builder {
        private SelectAudioTrackByIdArgs $;

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

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

        /**
         * @param channelMapping Optional designation for single channel audio tracks.  Can be used to combine the tracks into stereo or multi-channel audio tracks.
         * 
         * @return builder
         * 
         */
        public Builder channelMapping(@Nullable Output> channelMapping) {
            $.channelMapping = channelMapping;
            return this;
        }

        /**
         * @param channelMapping Optional designation for single channel audio tracks.  Can be used to combine the tracks into stereo or multi-channel audio tracks.
         * 
         * @return builder
         * 
         */
        public Builder channelMapping(Either channelMapping) {
            return channelMapping(Output.of(channelMapping));
        }

        /**
         * @param channelMapping Optional designation for single channel audio tracks.  Can be used to combine the tracks into stereo or multi-channel audio tracks.
         * 
         * @return builder
         * 
         */
        public Builder channelMapping(String channelMapping) {
            return channelMapping(Either.ofLeft(channelMapping));
        }

        /**
         * @param channelMapping Optional designation for single channel audio tracks.  Can be used to combine the tracks into stereo or multi-channel audio tracks.
         * 
         * @return builder
         * 
         */
        public Builder channelMapping(ChannelMapping channelMapping) {
            return channelMapping(Either.ofRight(channelMapping));
        }

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

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

        /**
         * @param trackId Track identifier to select
         * 
         * @return builder
         * 
         */
        public Builder trackId(Output trackId) {
            $.trackId = trackId;
            return this;
        }

        /**
         * @param trackId Track identifier to select
         * 
         * @return builder
         * 
         */
        public Builder trackId(Double trackId) {
            return trackId(Output.of(trackId));
        }

        public SelectAudioTrackByIdArgs build() {
            $.odataType = Codegen.stringProp("odataType").output().arg($.odataType).require();
            if ($.trackId == null) {
                throw new MissingRequiredPropertyException("SelectAudioTrackByIdArgs", "trackId");
            }
            return $;
        }
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy