379 lines
15 KiB
C
379 lines
15 KiB
C
|
|
/**
|
|||
|
|
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
|||
|
|
* SPDX-License-Identifier: Apache-2.0.
|
|||
|
|
*/
|
|||
|
|
|
|||
|
|
#pragma once
|
|||
|
|
#include <aws/medialive/MediaLive_EXPORTS.h>
|
|||
|
|
#include <aws/medialive/model/InputLocation.h>
|
|||
|
|
#include <utility>
|
|||
|
|
|
|||
|
|
namespace Aws
|
|||
|
|
{
|
|||
|
|
namespace Utils
|
|||
|
|
{
|
|||
|
|
namespace Json
|
|||
|
|
{
|
|||
|
|
class JsonValue;
|
|||
|
|
class JsonView;
|
|||
|
|
} // namespace Json
|
|||
|
|
} // namespace Utils
|
|||
|
|
namespace MediaLive
|
|||
|
|
{
|
|||
|
|
namespace Model
|
|||
|
|
{
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* Settings for the action to activate a static image.<p><h3>See Also:</h3> <a
|
|||
|
|
* href="http://docs.aws.amazon.com/goto/WebAPI/medialive-2017-10-14/StaticImageActivateScheduleActionSettings">AWS
|
|||
|
|
* API Reference</a></p>
|
|||
|
|
*/
|
|||
|
|
class AWS_MEDIALIVE_API StaticImageActivateScheduleActionSettings
|
|||
|
|
{
|
|||
|
|
public:
|
|||
|
|
StaticImageActivateScheduleActionSettings();
|
|||
|
|
StaticImageActivateScheduleActionSettings(Aws::Utils::Json::JsonView jsonValue);
|
|||
|
|
StaticImageActivateScheduleActionSettings& operator=(Aws::Utils::Json::JsonView jsonValue);
|
|||
|
|
Aws::Utils::Json::JsonValue Jsonize() const;
|
|||
|
|
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* 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.
|
|||
|
|
*/
|
|||
|
|
inline int GetDuration() const{ return m_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.
|
|||
|
|
*/
|
|||
|
|
inline bool DurationHasBeenSet() const { return m_durationHasBeenSet; }
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* 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.
|
|||
|
|
*/
|
|||
|
|
inline void SetDuration(int value) { m_durationHasBeenSet = true; m_duration = value; }
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* 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.
|
|||
|
|
*/
|
|||
|
|
inline StaticImageActivateScheduleActionSettings& WithDuration(int value) { SetDuration(value); return *this;}
|
|||
|
|
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* 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).
|
|||
|
|
*/
|
|||
|
|
inline int GetFadeIn() const{ return m_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).
|
|||
|
|
*/
|
|||
|
|
inline bool FadeInHasBeenSet() const { return m_fadeInHasBeenSet; }
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* 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).
|
|||
|
|
*/
|
|||
|
|
inline void SetFadeIn(int value) { m_fadeInHasBeenSet = true; m_fadeIn = value; }
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* 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).
|
|||
|
|
*/
|
|||
|
|
inline StaticImageActivateScheduleActionSettings& WithFadeIn(int value) { SetFadeIn(value); return *this;}
|
|||
|
|
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* 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).
|
|||
|
|
*/
|
|||
|
|
inline int GetFadeOut() const{ return m_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).
|
|||
|
|
*/
|
|||
|
|
inline bool FadeOutHasBeenSet() const { return m_fadeOutHasBeenSet; }
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* 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).
|
|||
|
|
*/
|
|||
|
|
inline void SetFadeOut(int value) { m_fadeOutHasBeenSet = true; m_fadeOut = value; }
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* 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).
|
|||
|
|
*/
|
|||
|
|
inline StaticImageActivateScheduleActionSettings& WithFadeOut(int value) { SetFadeOut(value); return *this;}
|
|||
|
|
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* 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.
|
|||
|
|
*/
|
|||
|
|
inline int GetHeight() const{ return m_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.
|
|||
|
|
*/
|
|||
|
|
inline bool HeightHasBeenSet() const { return m_heightHasBeenSet; }
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* 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.
|
|||
|
|
*/
|
|||
|
|
inline void SetHeight(int value) { m_heightHasBeenSet = true; m_height = value; }
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* 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.
|
|||
|
|
*/
|
|||
|
|
inline StaticImageActivateScheduleActionSettings& WithHeight(int value) { SetHeight(value); return *this;}
|
|||
|
|
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* 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.
|
|||
|
|
*/
|
|||
|
|
inline const InputLocation& GetImage() const{ return m_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.
|
|||
|
|
*/
|
|||
|
|
inline bool ImageHasBeenSet() const { return m_imageHasBeenSet; }
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* 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.
|
|||
|
|
*/
|
|||
|
|
inline void SetImage(const InputLocation& value) { m_imageHasBeenSet = true; m_image = value; }
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* 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.
|
|||
|
|
*/
|
|||
|
|
inline void SetImage(InputLocation&& value) { m_imageHasBeenSet = true; m_image = std::move(value); }
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* 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.
|
|||
|
|
*/
|
|||
|
|
inline StaticImageActivateScheduleActionSettings& WithImage(const InputLocation& value) { SetImage(value); return *this;}
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* 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.
|
|||
|
|
*/
|
|||
|
|
inline StaticImageActivateScheduleActionSettings& WithImage(InputLocation&& value) { SetImage(std::move(value)); return *this;}
|
|||
|
|
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* 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.
|
|||
|
|
*/
|
|||
|
|
inline int GetImageX() const{ return m_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.
|
|||
|
|
*/
|
|||
|
|
inline bool ImageXHasBeenSet() const { return m_imageXHasBeenSet; }
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* 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.
|
|||
|
|
*/
|
|||
|
|
inline void SetImageX(int value) { m_imageXHasBeenSet = true; m_imageX = value; }
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* 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.
|
|||
|
|
*/
|
|||
|
|
inline StaticImageActivateScheduleActionSettings& WithImageX(int value) { SetImageX(value); return *this;}
|
|||
|
|
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* 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.
|
|||
|
|
*/
|
|||
|
|
inline int GetImageY() const{ return m_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.
|
|||
|
|
*/
|
|||
|
|
inline bool ImageYHasBeenSet() const { return m_imageYHasBeenSet; }
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* 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.
|
|||
|
|
*/
|
|||
|
|
inline void SetImageY(int value) { m_imageYHasBeenSet = true; m_imageY = value; }
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* 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.
|
|||
|
|
*/
|
|||
|
|
inline StaticImageActivateScheduleActionSettings& WithImageY(int value) { SetImageY(value); return *this;}
|
|||
|
|
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* 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.
|
|||
|
|
*/
|
|||
|
|
inline int GetLayer() const{ return m_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.
|
|||
|
|
*/
|
|||
|
|
inline bool LayerHasBeenSet() const { return m_layerHasBeenSet; }
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* 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.
|
|||
|
|
*/
|
|||
|
|
inline void SetLayer(int value) { m_layerHasBeenSet = true; m_layer = value; }
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* 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.
|
|||
|
|
*/
|
|||
|
|
inline StaticImageActivateScheduleActionSettings& WithLayer(int value) { SetLayer(value); return *this;}
|
|||
|
|
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* Opacity of image where 0 is transparent and 100 is fully opaque. Default is 100.
|
|||
|
|
*/
|
|||
|
|
inline int GetOpacity() const{ return m_opacity; }
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* Opacity of image where 0 is transparent and 100 is fully opaque. Default is 100.
|
|||
|
|
*/
|
|||
|
|
inline bool OpacityHasBeenSet() const { return m_opacityHasBeenSet; }
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* Opacity of image where 0 is transparent and 100 is fully opaque. Default is 100.
|
|||
|
|
*/
|
|||
|
|
inline void SetOpacity(int value) { m_opacityHasBeenSet = true; m_opacity = value; }
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* Opacity of image where 0 is transparent and 100 is fully opaque. Default is 100.
|
|||
|
|
*/
|
|||
|
|
inline StaticImageActivateScheduleActionSettings& WithOpacity(int value) { SetOpacity(value); return *this;}
|
|||
|
|
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* 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.
|
|||
|
|
*/
|
|||
|
|
inline int GetWidth() const{ return m_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.
|
|||
|
|
*/
|
|||
|
|
inline bool WidthHasBeenSet() const { return m_widthHasBeenSet; }
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* 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.
|
|||
|
|
*/
|
|||
|
|
inline void SetWidth(int value) { m_widthHasBeenSet = true; m_width = value; }
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* 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.
|
|||
|
|
*/
|
|||
|
|
inline StaticImageActivateScheduleActionSettings& WithWidth(int value) { SetWidth(value); return *this;}
|
|||
|
|
|
|||
|
|
private:
|
|||
|
|
|
|||
|
|
int m_duration;
|
|||
|
|
bool m_durationHasBeenSet;
|
|||
|
|
|
|||
|
|
int m_fadeIn;
|
|||
|
|
bool m_fadeInHasBeenSet;
|
|||
|
|
|
|||
|
|
int m_fadeOut;
|
|||
|
|
bool m_fadeOutHasBeenSet;
|
|||
|
|
|
|||
|
|
int m_height;
|
|||
|
|
bool m_heightHasBeenSet;
|
|||
|
|
|
|||
|
|
InputLocation m_image;
|
|||
|
|
bool m_imageHasBeenSet;
|
|||
|
|
|
|||
|
|
int m_imageX;
|
|||
|
|
bool m_imageXHasBeenSet;
|
|||
|
|
|
|||
|
|
int m_imageY;
|
|||
|
|
bool m_imageYHasBeenSet;
|
|||
|
|
|
|||
|
|
int m_layer;
|
|||
|
|
bool m_layerHasBeenSet;
|
|||
|
|
|
|||
|
|
int m_opacity;
|
|||
|
|
bool m_opacityHasBeenSet;
|
|||
|
|
|
|||
|
|
int m_width;
|
|||
|
|
bool m_widthHasBeenSet;
|
|||
|
|
};
|
|||
|
|
|
|||
|
|
} // namespace Model
|
|||
|
|
} // namespace MediaLive
|
|||
|
|
} // namespace Aws
|