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