com.pulumi.azurenative.media.outputs.AacAudioResponse 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 AacAudioResponse {
/**
* @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.AacAudio'.
*
*/
private String odataType;
/**
* @return The encoding profile to be used when encoding audio with AAC.
*
*/
private @Nullable String profile;
/**
* @return The sampling rate to use for encoding in hertz.
*
*/
private @Nullable Integer samplingRate;
private AacAudioResponse() {}
/**
* @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.AacAudio'.
*
*/
public String odataType() {
return this.odataType;
}
/**
* @return The encoding profile to be used when encoding audio with AAC.
*
*/
public Optional profile() {
return Optional.ofNullable(this.profile);
}
/**
* @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(AacAudioResponse 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 String profile;
private @Nullable Integer samplingRate;
public Builder() {}
public Builder(AacAudioResponse defaults) {
Objects.requireNonNull(defaults);
this.bitrate = defaults.bitrate;
this.channels = defaults.channels;
this.label = defaults.label;
this.odataType = defaults.odataType;
this.profile = defaults.profile;
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("AacAudioResponse", "odataType");
}
this.odataType = odataType;
return this;
}
@CustomType.Setter
public Builder profile(@Nullable String profile) {
this.profile = profile;
return this;
}
@CustomType.Setter
public Builder samplingRate(@Nullable Integer samplingRate) {
this.samplingRate = samplingRate;
return this;
}
public AacAudioResponse build() {
final var _resultValue = new AacAudioResponse();
_resultValue.bitrate = bitrate;
_resultValue.channels = channels;
_resultValue.label = label;
_resultValue.odataType = odataType;
_resultValue.profile = profile;
_resultValue.samplingRate = samplingRate;
return _resultValue;
}
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy