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

com.pulumi.azurenative.media.outputs.AudioTrackResponse 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.DashSettingsResponse;
import com.pulumi.azurenative.media.outputs.HlsSettingsResponse;
import com.pulumi.core.annotations.CustomType;
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;

@CustomType
public final class AudioTrackResponse {
    /**
     * @return The stream bit rate for the audio track.
     * 
     */
    private Integer bitRate;
    /**
     * @return The DASH specific setting for the audio track.
     * 
     */
    private @Nullable DashSettingsResponse dashSettings;
    /**
     * @return The display name of the audio track on a video player. In HLS, this maps to the NAME attribute of EXT-X-MEDIA.
     * 
     */
    private @Nullable String displayName;
    /**
     * @return The file name to the source file. This file is located in the storage container of the asset.
     * 
     */
    private @Nullable String fileName;
    /**
     * @return The HLS specific setting for the audio track.
     * 
     */
    private @Nullable HlsSettingsResponse hlsSettings;
    /**
     * @return The RFC5646 language code for the audio track.
     * 
     */
    private @Nullable String languageCode;
    /**
     * @return The MPEG-4 audio track ID for the audio track.
     * 
     */
    private @Nullable Integer mpeg4TrackId;
    /**
     * @return The discriminator for derived types.
     * Expected value is '#Microsoft.Media.AudioTrack'.
     * 
     */
    private String odataType;

    private AudioTrackResponse() {}
    /**
     * @return The stream bit rate for the audio track.
     * 
     */
    public Integer bitRate() {
        return this.bitRate;
    }
    /**
     * @return The DASH specific setting for the audio track.
     * 
     */
    public Optional dashSettings() {
        return Optional.ofNullable(this.dashSettings);
    }
    /**
     * @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);
    }
    /**
     * @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);
    }
    /**
     * @return The HLS specific setting for the audio track.
     * 
     */
    public Optional hlsSettings() {
        return Optional.ofNullable(this.hlsSettings);
    }
    /**
     * @return The RFC5646 language code for the audio track.
     * 
     */
    public Optional languageCode() {
        return Optional.ofNullable(this.languageCode);
    }
    /**
     * @return The MPEG-4 audio track ID for the audio track.
     * 
     */
    public Optional mpeg4TrackId() {
        return Optional.ofNullable(this.mpeg4TrackId);
    }
    /**
     * @return The discriminator for derived types.
     * Expected value is '#Microsoft.Media.AudioTrack'.
     * 
     */
    public String odataType() {
        return this.odataType;
    }

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

    public static Builder builder(AudioTrackResponse defaults) {
        return new Builder(defaults);
    }
    @CustomType.Builder
    public static final class Builder {
        private Integer bitRate;
        private @Nullable DashSettingsResponse dashSettings;
        private @Nullable String displayName;
        private @Nullable String fileName;
        private @Nullable HlsSettingsResponse hlsSettings;
        private @Nullable String languageCode;
        private @Nullable Integer mpeg4TrackId;
        private String odataType;
        public Builder() {}
        public Builder(AudioTrackResponse defaults) {
    	      Objects.requireNonNull(defaults);
    	      this.bitRate = defaults.bitRate;
    	      this.dashSettings = defaults.dashSettings;
    	      this.displayName = defaults.displayName;
    	      this.fileName = defaults.fileName;
    	      this.hlsSettings = defaults.hlsSettings;
    	      this.languageCode = defaults.languageCode;
    	      this.mpeg4TrackId = defaults.mpeg4TrackId;
    	      this.odataType = defaults.odataType;
        }

        @CustomType.Setter
        public Builder bitRate(Integer bitRate) {
            if (bitRate == null) {
              throw new MissingRequiredPropertyException("AudioTrackResponse", "bitRate");
            }
            this.bitRate = bitRate;
            return this;
        }
        @CustomType.Setter
        public Builder dashSettings(@Nullable DashSettingsResponse dashSettings) {

            this.dashSettings = dashSettings;
            return this;
        }
        @CustomType.Setter
        public Builder displayName(@Nullable String displayName) {

            this.displayName = displayName;
            return this;
        }
        @CustomType.Setter
        public Builder fileName(@Nullable String fileName) {

            this.fileName = fileName;
            return this;
        }
        @CustomType.Setter
        public Builder hlsSettings(@Nullable HlsSettingsResponse hlsSettings) {

            this.hlsSettings = hlsSettings;
            return this;
        }
        @CustomType.Setter
        public Builder languageCode(@Nullable String languageCode) {

            this.languageCode = languageCode;
            return this;
        }
        @CustomType.Setter
        public Builder mpeg4TrackId(@Nullable Integer mpeg4TrackId) {

            this.mpeg4TrackId = mpeg4TrackId;
            return this;
        }
        @CustomType.Setter
        public Builder odataType(String odataType) {
            if (odataType == null) {
              throw new MissingRequiredPropertyException("AudioTrackResponse", "odataType");
            }
            this.odataType = odataType;
            return this;
        }
        public AudioTrackResponse build() {
            final var _resultValue = new AudioTrackResponse();
            _resultValue.bitRate = bitRate;
            _resultValue.dashSettings = dashSettings;
            _resultValue.displayName = displayName;
            _resultValue.fileName = fileName;
            _resultValue.hlsSettings = hlsSettings;
            _resultValue.languageCode = languageCode;
            _resultValue.mpeg4TrackId = mpeg4TrackId;
            _resultValue.odataType = odataType;
            return _resultValue;
        }
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy