com.pulumi.azurenative.media.inputs.ImageFormatArgs 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.inputs;
import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import com.pulumi.core.internal.Codegen;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.String;
import java.util.Objects;
/**
* Describes the properties for an output image file.
*
*/
public final class ImageFormatArgs extends com.pulumi.resources.ResourceArgs {
public static final ImageFormatArgs Empty = new ImageFormatArgs();
/**
* The file naming pattern used for the creation of output files. The following macros are supported in the file name: {Basename} - An expansion macro that will use the name of the input video file. If the base name(the file suffix is not included) of the input video file is less than 32 characters long, the base name of input video files will be used. If the length of base name of the input video file exceeds 32 characters, the base name is truncated to the first 32 characters in total length. {Extension} - The appropriate extension for this format. {Label} - The label assigned to the codec/layer. {Index} - A unique index for thumbnails. Only applicable to thumbnails. {AudioStream} - string "Audio" plus audio stream number(start from 1). {Bitrate} - The audio/video bitrate in kbps. Not applicable to thumbnails. {Codec} - The type of the audio/video codec. {Resolution} - The video resolution. Any unsubstituted macros will be collapsed and removed from the filename.
*
*/
@Import(name="filenamePattern", required=true)
private Output filenamePattern;
/**
* @return The file naming pattern used for the creation of output files. The following macros are supported in the file name: {Basename} - An expansion macro that will use the name of the input video file. If the base name(the file suffix is not included) of the input video file is less than 32 characters long, the base name of input video files will be used. If the length of base name of the input video file exceeds 32 characters, the base name is truncated to the first 32 characters in total length. {Extension} - The appropriate extension for this format. {Label} - The label assigned to the codec/layer. {Index} - A unique index for thumbnails. Only applicable to thumbnails. {AudioStream} - string "Audio" plus audio stream number(start from 1). {Bitrate} - The audio/video bitrate in kbps. Not applicable to thumbnails. {Codec} - The type of the audio/video codec. {Resolution} - The video resolution. Any unsubstituted macros will be collapsed and removed from the filename.
*
*/
public Output filenamePattern() {
return this.filenamePattern;
}
/**
* The discriminator for derived types.
* Expected value is '#Microsoft.Media.ImageFormat'.
*
*/
@Import(name="odataType", required=true)
private Output odataType;
/**
* @return The discriminator for derived types.
* Expected value is '#Microsoft.Media.ImageFormat'.
*
*/
public Output odataType() {
return this.odataType;
}
private ImageFormatArgs() {}
private ImageFormatArgs(ImageFormatArgs $) {
this.filenamePattern = $.filenamePattern;
this.odataType = $.odataType;
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(ImageFormatArgs defaults) {
return new Builder(defaults);
}
public static final class Builder {
private ImageFormatArgs $;
public Builder() {
$ = new ImageFormatArgs();
}
public Builder(ImageFormatArgs defaults) {
$ = new ImageFormatArgs(Objects.requireNonNull(defaults));
}
/**
* @param filenamePattern The file naming pattern used for the creation of output files. The following macros are supported in the file name: {Basename} - An expansion macro that will use the name of the input video file. If the base name(the file suffix is not included) of the input video file is less than 32 characters long, the base name of input video files will be used. If the length of base name of the input video file exceeds 32 characters, the base name is truncated to the first 32 characters in total length. {Extension} - The appropriate extension for this format. {Label} - The label assigned to the codec/layer. {Index} - A unique index for thumbnails. Only applicable to thumbnails. {AudioStream} - string "Audio" plus audio stream number(start from 1). {Bitrate} - The audio/video bitrate in kbps. Not applicable to thumbnails. {Codec} - The type of the audio/video codec. {Resolution} - The video resolution. Any unsubstituted macros will be collapsed and removed from the filename.
*
* @return builder
*
*/
public Builder filenamePattern(Output filenamePattern) {
$.filenamePattern = filenamePattern;
return this;
}
/**
* @param filenamePattern The file naming pattern used for the creation of output files. The following macros are supported in the file name: {Basename} - An expansion macro that will use the name of the input video file. If the base name(the file suffix is not included) of the input video file is less than 32 characters long, the base name of input video files will be used. If the length of base name of the input video file exceeds 32 characters, the base name is truncated to the first 32 characters in total length. {Extension} - The appropriate extension for this format. {Label} - The label assigned to the codec/layer. {Index} - A unique index for thumbnails. Only applicable to thumbnails. {AudioStream} - string "Audio" plus audio stream number(start from 1). {Bitrate} - The audio/video bitrate in kbps. Not applicable to thumbnails. {Codec} - The type of the audio/video codec. {Resolution} - The video resolution. Any unsubstituted macros will be collapsed and removed from the filename.
*
* @return builder
*
*/
public Builder filenamePattern(String filenamePattern) {
return filenamePattern(Output.of(filenamePattern));
}
/**
* @param odataType The discriminator for derived types.
* Expected value is '#Microsoft.Media.ImageFormat'.
*
* @return builder
*
*/
public Builder odataType(Output odataType) {
$.odataType = odataType;
return this;
}
/**
* @param odataType The discriminator for derived types.
* Expected value is '#Microsoft.Media.ImageFormat'.
*
* @return builder
*
*/
public Builder odataType(String odataType) {
return odataType(Output.of(odataType));
}
public ImageFormatArgs build() {
if ($.filenamePattern == null) {
throw new MissingRequiredPropertyException("ImageFormatArgs", "filenamePattern");
}
$.odataType = Codegen.stringProp("odataType").output().arg($.odataType).require();
return $;
}
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy