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

com.pulumi.azurenative.media.inputs.SelectAudioTrackByAttributeArgs 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.AttributeFilter;
import com.pulumi.azurenative.media.enums.ChannelMapping;
import com.pulumi.azurenative.media.enums.TrackAttribute;
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;


/**
 * Select audio tracks from the input by specifying an attribute and an attribute filter.
 * 
 */
public final class SelectAudioTrackByAttributeArgs extends com.pulumi.resources.ResourceArgs {

    public static final SelectAudioTrackByAttributeArgs Empty = new SelectAudioTrackByAttributeArgs();

    /**
     * The TrackAttribute to filter the tracks by.
     * 
     */
    @Import(name="attribute", required=true)
    private Output> attribute;

    /**
     * @return The TrackAttribute to filter the tracks by.
     * 
     */
    public Output> attribute() {
        return this.attribute;
    }

    /**
     * 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 type of AttributeFilter to apply to the TrackAttribute in order to select the tracks.
     * 
     */
    @Import(name="filter", required=true)
    private Output> filter;

    /**
     * @return The type of AttributeFilter to apply to the TrackAttribute in order to select the tracks.
     * 
     */
    public Output> filter() {
        return this.filter;
    }

    /**
     * The value to filter the tracks by.  Only used when AttributeFilter.ValueEquals is specified for the Filter property.
     * 
     */
    @Import(name="filterValue")
    private @Nullable Output filterValue;

    /**
     * @return The value to filter the tracks by.  Only used when AttributeFilter.ValueEquals is specified for the Filter property.
     * 
     */
    public Optional> filterValue() {
        return Optional.ofNullable(this.filterValue);
    }

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

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

    private SelectAudioTrackByAttributeArgs() {}

    private SelectAudioTrackByAttributeArgs(SelectAudioTrackByAttributeArgs $) {
        this.attribute = $.attribute;
        this.channelMapping = $.channelMapping;
        this.filter = $.filter;
        this.filterValue = $.filterValue;
        this.odataType = $.odataType;
    }

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

    public static final class Builder {
        private SelectAudioTrackByAttributeArgs $;

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

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

        /**
         * @param attribute The TrackAttribute to filter the tracks by.
         * 
         * @return builder
         * 
         */
        public Builder attribute(Output> attribute) {
            $.attribute = attribute;
            return this;
        }

        /**
         * @param attribute The TrackAttribute to filter the tracks by.
         * 
         * @return builder
         * 
         */
        public Builder attribute(Either attribute) {
            return attribute(Output.of(attribute));
        }

        /**
         * @param attribute The TrackAttribute to filter the tracks by.
         * 
         * @return builder
         * 
         */
        public Builder attribute(String attribute) {
            return attribute(Either.ofLeft(attribute));
        }

        /**
         * @param attribute The TrackAttribute to filter the tracks by.
         * 
         * @return builder
         * 
         */
        public Builder attribute(TrackAttribute attribute) {
            return attribute(Either.ofRight(attribute));
        }

        /**
         * @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 filter The type of AttributeFilter to apply to the TrackAttribute in order to select the tracks.
         * 
         * @return builder
         * 
         */
        public Builder filter(Output> filter) {
            $.filter = filter;
            return this;
        }

        /**
         * @param filter The type of AttributeFilter to apply to the TrackAttribute in order to select the tracks.
         * 
         * @return builder
         * 
         */
        public Builder filter(Either filter) {
            return filter(Output.of(filter));
        }

        /**
         * @param filter The type of AttributeFilter to apply to the TrackAttribute in order to select the tracks.
         * 
         * @return builder
         * 
         */
        public Builder filter(String filter) {
            return filter(Either.ofLeft(filter));
        }

        /**
         * @param filter The type of AttributeFilter to apply to the TrackAttribute in order to select the tracks.
         * 
         * @return builder
         * 
         */
        public Builder filter(AttributeFilter filter) {
            return filter(Either.ofRight(filter));
        }

        /**
         * @param filterValue The value to filter the tracks by.  Only used when AttributeFilter.ValueEquals is specified for the Filter property.
         * 
         * @return builder
         * 
         */
        public Builder filterValue(@Nullable Output filterValue) {
            $.filterValue = filterValue;
            return this;
        }

        /**
         * @param filterValue The value to filter the tracks by.  Only used when AttributeFilter.ValueEquals is specified for the Filter property.
         * 
         * @return builder
         * 
         */
        public Builder filterValue(String filterValue) {
            return filterValue(Output.of(filterValue));
        }

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

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

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

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy