com.pulumi.azurenative.media.outputs.AudioResponse Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of azure-native Show documentation
Show all versions of azure-native Show documentation
A native Pulumi package for creating and managing Azure resources.
// *** 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.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 AudioResponse {
/**
* @return The bitrate, in bits per second, of the output encoded audio.
*
*/
private @Nullable Integer bitrate;
/**
* @return The number of channels in the audio.
*
*/
private @Nullable Integer channels;
/**
* @return An optional label for the codec. The label can be used to control muxing behavior.
*
*/
private @Nullable String label;
/**
* @return The discriminator for derived types.
* Expected value is '#Microsoft.Media.Audio'.
*
*/
private String odataType;
/**
* @return The sampling rate to use for encoding in hertz.
*
*/
private @Nullable Integer samplingRate;
private AudioResponse() {}
/**
* @return The bitrate, in bits per second, of the output encoded audio.
*
*/
public Optional bitrate() {
return Optional.ofNullable(this.bitrate);
}
/**
* @return The number of channels in the audio.
*
*/
public Optional channels() {
return Optional.ofNullable(this.channels);
}
/**
* @return An optional label for the codec. The label can be used to control muxing behavior.
*
*/
public Optional label() {
return Optional.ofNullable(this.label);
}
/**
* @return The discriminator for derived types.
* Expected value is '#Microsoft.Media.Audio'.
*
*/
public String odataType() {
return this.odataType;
}
/**
* @return The sampling rate to use for encoding in hertz.
*
*/
public Optional samplingRate() {
return Optional.ofNullable(this.samplingRate);
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(AudioResponse defaults) {
return new Builder(defaults);
}
@CustomType.Builder
public static final class Builder {
private @Nullable Integer bitrate;
private @Nullable Integer channels;
private @Nullable String label;
private String odataType;
private @Nullable Integer samplingRate;
public Builder() {}
public Builder(AudioResponse defaults) {
Objects.requireNonNull(defaults);
this.bitrate = defaults.bitrate;
this.channels = defaults.channels;
this.label = defaults.label;
this.odataType = defaults.odataType;
this.samplingRate = defaults.samplingRate;
}
@CustomType.Setter
public Builder bitrate(@Nullable Integer bitrate) {
this.bitrate = bitrate;
return this;
}
@CustomType.Setter
public Builder channels(@Nullable Integer channels) {
this.channels = channels;
return this;
}
@CustomType.Setter
public Builder label(@Nullable String label) {
this.label = label;
return this;
}
@CustomType.Setter
public Builder odataType(String odataType) {
if (odataType == null) {
throw new MissingRequiredPropertyException("AudioResponse", "odataType");
}
this.odataType = odataType;
return this;
}
@CustomType.Setter
public Builder samplingRate(@Nullable Integer samplingRate) {
this.samplingRate = samplingRate;
return this;
}
public AudioResponse build() {
final var _resultValue = new AudioResponse();
_resultValue.bitrate = bitrate;
_resultValue.channels = channels;
_resultValue.label = label;
_resultValue.odataType = odataType;
_resultValue.samplingRate = samplingRate;
return _resultValue;
}
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy