com.pulumi.azurenative.media.outputs.VideoResponse 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.String;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;
@CustomType
public final class VideoResponse {
/**
* @return The distance between two key frames. The value should be non-zero in the range [0.5, 20] seconds, specified in ISO 8601 format. The default is 2 seconds(PT2S). Note that this setting is ignored if VideoSyncMode.Passthrough is set, where the KeyFrameInterval value will follow the input source setting.
*
*/
private @Nullable String keyFrameInterval;
/**
* @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.Video'.
*
*/
private String odataType;
/**
* @return The resizing mode - how the input video will be resized to fit the desired output resolution(s). Default is AutoSize
*
*/
private @Nullable String stretchMode;
/**
* @return The Video Sync Mode
*
*/
private @Nullable String syncMode;
private VideoResponse() {}
/**
* @return The distance between two key frames. The value should be non-zero in the range [0.5, 20] seconds, specified in ISO 8601 format. The default is 2 seconds(PT2S). Note that this setting is ignored if VideoSyncMode.Passthrough is set, where the KeyFrameInterval value will follow the input source setting.
*
*/
public Optional keyFrameInterval() {
return Optional.ofNullable(this.keyFrameInterval);
}
/**
* @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.Video'.
*
*/
public String odataType() {
return this.odataType;
}
/**
* @return The resizing mode - how the input video will be resized to fit the desired output resolution(s). Default is AutoSize
*
*/
public Optional stretchMode() {
return Optional.ofNullable(this.stretchMode);
}
/**
* @return The Video Sync Mode
*
*/
public Optional syncMode() {
return Optional.ofNullable(this.syncMode);
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(VideoResponse defaults) {
return new Builder(defaults);
}
@CustomType.Builder
public static final class Builder {
private @Nullable String keyFrameInterval;
private @Nullable String label;
private String odataType;
private @Nullable String stretchMode;
private @Nullable String syncMode;
public Builder() {}
public Builder(VideoResponse defaults) {
Objects.requireNonNull(defaults);
this.keyFrameInterval = defaults.keyFrameInterval;
this.label = defaults.label;
this.odataType = defaults.odataType;
this.stretchMode = defaults.stretchMode;
this.syncMode = defaults.syncMode;
}
@CustomType.Setter
public Builder keyFrameInterval(@Nullable String keyFrameInterval) {
this.keyFrameInterval = keyFrameInterval;
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("VideoResponse", "odataType");
}
this.odataType = odataType;
return this;
}
@CustomType.Setter
public Builder stretchMode(@Nullable String stretchMode) {
this.stretchMode = stretchMode;
return this;
}
@CustomType.Setter
public Builder syncMode(@Nullable String syncMode) {
this.syncMode = syncMode;
return this;
}
public VideoResponse build() {
final var _resultValue = new VideoResponse();
_resultValue.keyFrameInterval = keyFrameInterval;
_resultValue.label = label;
_resultValue.odataType = odataType;
_resultValue.stretchMode = stretchMode;
_resultValue.syncMode = syncMode;
return _resultValue;
}
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy