com.pulumi.azurenative.media.inputs.JpgFormatArgs 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 settings for producing JPEG thumbnails.
*
*/
public final class JpgFormatArgs extends com.pulumi.resources.ResourceArgs {
public static final JpgFormatArgs Empty = new JpgFormatArgs();
/**
* 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.JpgFormat'.
*
*/
@Import(name="odataType", required=true)
private Output odataType;
/**
* @return The discriminator for derived types.
* Expected value is '#Microsoft.Media.JpgFormat'.
*
*/
public Output odataType() {
return this.odataType;
}
private JpgFormatArgs() {}
private JpgFormatArgs(JpgFormatArgs $) {
this.filenamePattern = $.filenamePattern;
this.odataType = $.odataType;
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(JpgFormatArgs defaults) {
return new Builder(defaults);
}
public static final class Builder {
private JpgFormatArgs $;
public Builder() {
$ = new JpgFormatArgs();
}
public Builder(JpgFormatArgs defaults) {
$ = new JpgFormatArgs(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.JpgFormat'.
*
* @return builder
*
*/
public Builder odataType(Output odataType) {
$.odataType = odataType;
return this;
}
/**
* @param odataType The discriminator for derived types.
* Expected value is '#Microsoft.Media.JpgFormat'.
*
* @return builder
*
*/
public Builder odataType(String odataType) {
return odataType(Output.of(odataType));
}
public JpgFormatArgs build() {
if ($.filenamePattern == null) {
throw new MissingRequiredPropertyException("JpgFormatArgs", "filenamePattern");
}
$.odataType = Codegen.stringProp("odataType").output().arg($.odataType).require();
return $;
}
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy