Class StaticImageOutputActivateScheduleActionSettings
- java.lang.Object
-
- software.amazon.awssdk.services.medialive.model.StaticImageOutputActivateScheduleActionSettings
-
- All Implemented Interfaces:
Serializable,SdkPojo,ToCopyableBuilder<StaticImageOutputActivateScheduleActionSettings.Builder,StaticImageOutputActivateScheduleActionSettings>
@Generated("software.amazon.awssdk:codegen") public final class StaticImageOutputActivateScheduleActionSettings extends Object implements SdkPojo, Serializable, ToCopyableBuilder<StaticImageOutputActivateScheduleActionSettings.Builder,StaticImageOutputActivateScheduleActionSettings>
Settings for the action to activate a static image.- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceStaticImageOutputActivateScheduleActionSettings.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static StaticImageOutputActivateScheduleActionSettings.Builderbuilder()Integerduration()The duration in milliseconds for the image to remain on the video.booleanequals(Object obj)booleanequalsBySdkFields(Object obj)IntegerfadeIn()The time in milliseconds for the image to fade in.IntegerfadeOut()Applies only if a duration is specified.<T> Optional<T>getValueForField(String fieldName, Class<T> clazz)inthashCode()booleanhasOutputNames()For responses, this returns true if the service returned a value for the OutputNames property.Integerheight()The height of the image when inserted into the video, in pixels.InputLocationimage()The location and filename of the image file to overlay on the video.IntegerimageX()Placement of the left edge of the overlay relative to the left edge of the video frame, in pixels.IntegerimageY()Placement of the top edge of the overlay relative to the top edge of the video frame, in pixels.Integerlayer()The number of the layer, 0 to 7.Integeropacity()Opacity of image where 0 is transparent and 100 is fully opaque.List<String>outputNames()The name(s) of the output(s) the activation should apply to.Map<String,SdkField<?>>sdkFieldNameToField()List<SdkField<?>>sdkFields()static Class<? extends StaticImageOutputActivateScheduleActionSettings.Builder>serializableBuilderClass()StaticImageOutputActivateScheduleActionSettings.BuildertoBuilder()StringtoString()Returns a string representation of this object.Integerwidth()The width of the image when inserted into the video, in pixels.-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface software.amazon.awssdk.utils.builder.ToCopyableBuilder
copy
-
-
-
-
Method Detail
-
duration
public final Integer duration()
The duration in milliseconds for the image to remain on the video. If omitted or set to 0 the duration is unlimited and the image will remain until it is explicitly deactivated.- Returns:
- The duration in milliseconds for the image to remain on the video. If omitted or set to 0 the duration is unlimited and the image will remain until it is explicitly deactivated.
-
fadeIn
public final Integer fadeIn()
The time in milliseconds for the image to fade in. The fade-in starts at the start time of the overlay. Default is 0 (no fade-in).- Returns:
- The time in milliseconds for the image to fade in. The fade-in starts at the start time of the overlay. Default is 0 (no fade-in).
-
fadeOut
public final Integer fadeOut()
Applies only if a duration is specified. The time in milliseconds for the image to fade out. The fade-out starts when the duration time is hit, so it effectively extends the duration. Default is 0 (no fade-out).- Returns:
- Applies only if a duration is specified. The time in milliseconds for the image to fade out. The fade-out starts when the duration time is hit, so it effectively extends the duration. Default is 0 (no fade-out).
-
height
public final Integer height()
The height of the image when inserted into the video, in pixels. The overlay will be scaled up or down to the specified height. Leave blank to use the native height of the overlay.- Returns:
- The height of the image when inserted into the video, in pixels. The overlay will be scaled up or down to the specified height. Leave blank to use the native height of the overlay.
-
image
public final InputLocation image()
The location and filename of the image file to overlay on the video. The file must be a 32-bit BMP, PNG, or TGA file, and must not be larger (in pixels) than the input video.- Returns:
- The location and filename of the image file to overlay on the video. The file must be a 32-bit BMP, PNG, or TGA file, and must not be larger (in pixels) than the input video.
-
imageX
public final Integer imageX()
Placement of the left edge of the overlay relative to the left edge of the video frame, in pixels. 0 (the default) is the left edge of the frame. If the placement causes the overlay to extend beyond the right edge of the underlying video, then the overlay is cropped on the right.- Returns:
- Placement of the left edge of the overlay relative to the left edge of the video frame, in pixels. 0 (the default) is the left edge of the frame. If the placement causes the overlay to extend beyond the right edge of the underlying video, then the overlay is cropped on the right.
-
imageY
public final Integer imageY()
Placement of the top edge of the overlay relative to the top edge of the video frame, in pixels. 0 (the default) is the top edge of the frame. If the placement causes the overlay to extend beyond the bottom edge of the underlying video, then the overlay is cropped on the bottom.- Returns:
- Placement of the top edge of the overlay relative to the top edge of the video frame, in pixels. 0 (the default) is the top edge of the frame. If the placement causes the overlay to extend beyond the bottom edge of the underlying video, then the overlay is cropped on the bottom.
-
layer
public final Integer layer()
The number of the layer, 0 to 7. There are 8 layers that can be overlaid on the video, each layer with a different image. The layers are in Z order, which means that overlays with higher values of layer are inserted on top of overlays with lower values of layer. Default is 0.- Returns:
- The number of the layer, 0 to 7. There are 8 layers that can be overlaid on the video, each layer with a different image. The layers are in Z order, which means that overlays with higher values of layer are inserted on top of overlays with lower values of layer. Default is 0.
-
opacity
public final Integer opacity()
Opacity of image where 0 is transparent and 100 is fully opaque. Default is 100.- Returns:
- Opacity of image where 0 is transparent and 100 is fully opaque. Default is 100.
-
hasOutputNames
public final boolean hasOutputNames()
For responses, this returns true if the service returned a value for the OutputNames property. This DOES NOT check that the value is non-empty (for which, you should check theisEmpty()method on the property). This is useful because the SDK will never return a null collection or map, but you may need to differentiate between the service returning nothing (or null) and the service returning an empty collection or map. For requests, this returns true if a value for the property was specified in the request builder, and false if a value was not specified.
-
outputNames
public final List<String> outputNames()
The name(s) of the output(s) the activation should apply to.Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
This method will never return null. If you would like to know whether the service returned this field (so that you can differentiate between null and empty), you can use the
hasOutputNames()method.- Returns:
- The name(s) of the output(s) the activation should apply to.
-
width
public final Integer width()
The width of the image when inserted into the video, in pixels. The overlay will be scaled up or down to the specified width. Leave blank to use the native width of the overlay.- Returns:
- The width of the image when inserted into the video, in pixels. The overlay will be scaled up or down to the specified width. Leave blank to use the native width of the overlay.
-
toBuilder
public StaticImageOutputActivateScheduleActionSettings.Builder toBuilder()
- Specified by:
toBuilderin interfaceToCopyableBuilder<StaticImageOutputActivateScheduleActionSettings.Builder,StaticImageOutputActivateScheduleActionSettings>
-
builder
public static StaticImageOutputActivateScheduleActionSettings.Builder builder()
-
serializableBuilderClass
public static Class<? extends StaticImageOutputActivateScheduleActionSettings.Builder> serializableBuilderClass()
-
equalsBySdkFields
public final boolean equalsBySdkFields(Object obj)
- Specified by:
equalsBySdkFieldsin interfaceSdkPojo
-
toString
public final String toString()
Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be redacted from this string using a placeholder value.
-
sdkFieldNameToField
public final Map<String,SdkField<?>> sdkFieldNameToField()
- Specified by:
sdkFieldNameToFieldin interfaceSdkPojo
-
-