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

com.pulumi.azurenative.media.inputs.AudioTrackDescriptorArgs 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.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.String;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;


/**
 * A TrackSelection to select audio tracks.
 * 
 */
public final class AudioTrackDescriptorArgs extends com.pulumi.resources.ResourceArgs {

    public static final AudioTrackDescriptorArgs Empty = new AudioTrackDescriptorArgs();

    /**
     * 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.AudioTrackDescriptor'.
     * 
     */
    @Import(name="odataType", required=true)
    private Output odataType;

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

    private AudioTrackDescriptorArgs() {}

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

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

    public static final class Builder {
        private AudioTrackDescriptorArgs $;

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

        public Builder(AudioTrackDescriptorArgs defaults) {
            $ = new AudioTrackDescriptorArgs(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.AudioTrackDescriptor'.
         * 
         * @return builder
         * 
         */
        public Builder odataType(Output odataType) {
            $.odataType = odataType;
            return this;
        }

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

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

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy