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

com.pulumi.azurenative.media.outputs.InputFileResponse Maven / Gradle / Ivy

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

import com.pulumi.azurenative.media.outputs.AudioTrackDescriptorResponse;
import com.pulumi.azurenative.media.outputs.SelectAudioTrackByAttributeResponse;
import com.pulumi.azurenative.media.outputs.SelectAudioTrackByIdResponse;
import com.pulumi.azurenative.media.outputs.SelectVideoTrackByAttributeResponse;
import com.pulumi.azurenative.media.outputs.SelectVideoTrackByIdResponse;
import com.pulumi.azurenative.media.outputs.VideoTrackDescriptorResponse;
import com.pulumi.core.annotations.CustomType;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.Object;
import java.lang.String;
import java.util.List;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;

@CustomType
public final class InputFileResponse {
    /**
     * @return Name of the file that this input definition applies to.
     * 
     */
    private @Nullable String filename;
    /**
     * @return The list of TrackDescriptors which define the metadata and selection of tracks in the input.
     * 
     */
    private @Nullable List includedTracks;
    /**
     * @return The discriminator for derived types.
     * Expected value is '#Microsoft.Media.InputFile'.
     * 
     */
    private String odataType;

    private InputFileResponse() {}
    /**
     * @return Name of the file that this input definition applies to.
     * 
     */
    public Optional filename() {
        return Optional.ofNullable(this.filename);
    }
    /**
     * @return The list of TrackDescriptors which define the metadata and selection of tracks in the input.
     * 
     */
    public List includedTracks() {
        return this.includedTracks == null ? List.of() : this.includedTracks;
    }
    /**
     * @return The discriminator for derived types.
     * Expected value is '#Microsoft.Media.InputFile'.
     * 
     */
    public String odataType() {
        return this.odataType;
    }

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

    public static Builder builder(InputFileResponse defaults) {
        return new Builder(defaults);
    }
    @CustomType.Builder
    public static final class Builder {
        private @Nullable String filename;
        private @Nullable List includedTracks;
        private String odataType;
        public Builder() {}
        public Builder(InputFileResponse defaults) {
    	      Objects.requireNonNull(defaults);
    	      this.filename = defaults.filename;
    	      this.includedTracks = defaults.includedTracks;
    	      this.odataType = defaults.odataType;
        }

        @CustomType.Setter
        public Builder filename(@Nullable String filename) {

            this.filename = filename;
            return this;
        }
        @CustomType.Setter
        public Builder includedTracks(@Nullable List includedTracks) {

            this.includedTracks = includedTracks;
            return this;
        }
        public Builder includedTracks(Object... includedTracks) {
            return includedTracks(List.of(includedTracks));
        }
        @CustomType.Setter
        public Builder odataType(String odataType) {
            if (odataType == null) {
              throw new MissingRequiredPropertyException("InputFileResponse", "odataType");
            }
            this.odataType = odataType;
            return this;
        }
        public InputFileResponse build() {
            final var _resultValue = new InputFileResponse();
            _resultValue.filename = filename;
            _resultValue.includedTracks = includedTracks;
            _resultValue.odataType = odataType;
            return _resultValue;
        }
    }
}