/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include namespace Aws { namespace Utils { namespace Json { class JsonValue; class JsonView; } // namespace Json } // namespace Utils namespace ElasticTranscoder { namespace Model { /** *

Thumbnails for videos.

See Also:

AWS * API Reference

*/ class Thumbnails { public: AWS_ELASTICTRANSCODER_API Thumbnails(); AWS_ELASTICTRANSCODER_API Thumbnails(Aws::Utils::Json::JsonView jsonValue); AWS_ELASTICTRANSCODER_API Thumbnails& operator=(Aws::Utils::Json::JsonView jsonValue); AWS_ELASTICTRANSCODER_API Aws::Utils::Json::JsonValue Jsonize() const; /** *

The format of thumbnails, if any. Valid values are jpg and * png.

You specify whether you want Elastic Transcoder to * create thumbnails when you create a job.

*/ inline const Aws::String& GetFormat() const{ return m_format; } /** *

The format of thumbnails, if any. Valid values are jpg and * png.

You specify whether you want Elastic Transcoder to * create thumbnails when you create a job.

*/ inline bool FormatHasBeenSet() const { return m_formatHasBeenSet; } /** *

The format of thumbnails, if any. Valid values are jpg and * png.

You specify whether you want Elastic Transcoder to * create thumbnails when you create a job.

*/ inline void SetFormat(const Aws::String& value) { m_formatHasBeenSet = true; m_format = value; } /** *

The format of thumbnails, if any. Valid values are jpg and * png.

You specify whether you want Elastic Transcoder to * create thumbnails when you create a job.

*/ inline void SetFormat(Aws::String&& value) { m_formatHasBeenSet = true; m_format = std::move(value); } /** *

The format of thumbnails, if any. Valid values are jpg and * png.

You specify whether you want Elastic Transcoder to * create thumbnails when you create a job.

*/ inline void SetFormat(const char* value) { m_formatHasBeenSet = true; m_format.assign(value); } /** *

The format of thumbnails, if any. Valid values are jpg and * png.

You specify whether you want Elastic Transcoder to * create thumbnails when you create a job.

*/ inline Thumbnails& WithFormat(const Aws::String& value) { SetFormat(value); return *this;} /** *

The format of thumbnails, if any. Valid values are jpg and * png.

You specify whether you want Elastic Transcoder to * create thumbnails when you create a job.

*/ inline Thumbnails& WithFormat(Aws::String&& value) { SetFormat(std::move(value)); return *this;} /** *

The format of thumbnails, if any. Valid values are jpg and * png.

You specify whether you want Elastic Transcoder to * create thumbnails when you create a job.

*/ inline Thumbnails& WithFormat(const char* value) { SetFormat(value); return *this;} /** *

The approximate number of seconds between thumbnails. Specify an integer * value.

*/ inline const Aws::String& GetInterval() const{ return m_interval; } /** *

The approximate number of seconds between thumbnails. Specify an integer * value.

*/ inline bool IntervalHasBeenSet() const { return m_intervalHasBeenSet; } /** *

The approximate number of seconds between thumbnails. Specify an integer * value.

*/ inline void SetInterval(const Aws::String& value) { m_intervalHasBeenSet = true; m_interval = value; } /** *

The approximate number of seconds between thumbnails. Specify an integer * value.

*/ inline void SetInterval(Aws::String&& value) { m_intervalHasBeenSet = true; m_interval = std::move(value); } /** *

The approximate number of seconds between thumbnails. Specify an integer * value.

*/ inline void SetInterval(const char* value) { m_intervalHasBeenSet = true; m_interval.assign(value); } /** *

The approximate number of seconds between thumbnails. Specify an integer * value.

*/ inline Thumbnails& WithInterval(const Aws::String& value) { SetInterval(value); return *this;} /** *

The approximate number of seconds between thumbnails. Specify an integer * value.

*/ inline Thumbnails& WithInterval(Aws::String&& value) { SetInterval(std::move(value)); return *this;} /** *

The approximate number of seconds between thumbnails. Specify an integer * value.

*/ inline Thumbnails& WithInterval(const char* value) { SetInterval(value); return *this;} /** *

To better control resolution and aspect ratio of thumbnails, we * recommend that you use the values MaxWidth, MaxHeight, * SizingPolicy, and PaddingPolicy instead of * Resolution and AspectRatio. The two groups of settings * are mutually exclusive. Do not use them together.

The width * and height of thumbnail files in pixels. Specify a value in the format * width x height where both values are even * integers. The values cannot exceed the width and height that you specified in * the Video:Resolution object.

*/ inline const Aws::String& GetResolution() const{ return m_resolution; } /** *

To better control resolution and aspect ratio of thumbnails, we * recommend that you use the values MaxWidth, MaxHeight, * SizingPolicy, and PaddingPolicy instead of * Resolution and AspectRatio. The two groups of settings * are mutually exclusive. Do not use them together.

The width * and height of thumbnail files in pixels. Specify a value in the format * width x height where both values are even * integers. The values cannot exceed the width and height that you specified in * the Video:Resolution object.

*/ inline bool ResolutionHasBeenSet() const { return m_resolutionHasBeenSet; } /** *

To better control resolution and aspect ratio of thumbnails, we * recommend that you use the values MaxWidth, MaxHeight, * SizingPolicy, and PaddingPolicy instead of * Resolution and AspectRatio. The two groups of settings * are mutually exclusive. Do not use them together.

The width * and height of thumbnail files in pixels. Specify a value in the format * width x height where both values are even * integers. The values cannot exceed the width and height that you specified in * the Video:Resolution object.

*/ inline void SetResolution(const Aws::String& value) { m_resolutionHasBeenSet = true; m_resolution = value; } /** *

To better control resolution and aspect ratio of thumbnails, we * recommend that you use the values MaxWidth, MaxHeight, * SizingPolicy, and PaddingPolicy instead of * Resolution and AspectRatio. The two groups of settings * are mutually exclusive. Do not use them together.

The width * and height of thumbnail files in pixels. Specify a value in the format * width x height where both values are even * integers. The values cannot exceed the width and height that you specified in * the Video:Resolution object.

*/ inline void SetResolution(Aws::String&& value) { m_resolutionHasBeenSet = true; m_resolution = std::move(value); } /** *

To better control resolution and aspect ratio of thumbnails, we * recommend that you use the values MaxWidth, MaxHeight, * SizingPolicy, and PaddingPolicy instead of * Resolution and AspectRatio. The two groups of settings * are mutually exclusive. Do not use them together.

The width * and height of thumbnail files in pixels. Specify a value in the format * width x height where both values are even * integers. The values cannot exceed the width and height that you specified in * the Video:Resolution object.

*/ inline void SetResolution(const char* value) { m_resolutionHasBeenSet = true; m_resolution.assign(value); } /** *

To better control resolution and aspect ratio of thumbnails, we * recommend that you use the values MaxWidth, MaxHeight, * SizingPolicy, and PaddingPolicy instead of * Resolution and AspectRatio. The two groups of settings * are mutually exclusive. Do not use them together.

The width * and height of thumbnail files in pixels. Specify a value in the format * width x height where both values are even * integers. The values cannot exceed the width and height that you specified in * the Video:Resolution object.

*/ inline Thumbnails& WithResolution(const Aws::String& value) { SetResolution(value); return *this;} /** *

To better control resolution and aspect ratio of thumbnails, we * recommend that you use the values MaxWidth, MaxHeight, * SizingPolicy, and PaddingPolicy instead of * Resolution and AspectRatio. The two groups of settings * are mutually exclusive. Do not use them together.

The width * and height of thumbnail files in pixels. Specify a value in the format * width x height where both values are even * integers. The values cannot exceed the width and height that you specified in * the Video:Resolution object.

*/ inline Thumbnails& WithResolution(Aws::String&& value) { SetResolution(std::move(value)); return *this;} /** *

To better control resolution and aspect ratio of thumbnails, we * recommend that you use the values MaxWidth, MaxHeight, * SizingPolicy, and PaddingPolicy instead of * Resolution and AspectRatio. The two groups of settings * are mutually exclusive. Do not use them together.

The width * and height of thumbnail files in pixels. Specify a value in the format * width x height where both values are even * integers. The values cannot exceed the width and height that you specified in * the Video:Resolution object.

*/ inline Thumbnails& WithResolution(const char* value) { SetResolution(value); return *this;} /** *

To better control resolution and aspect ratio of thumbnails, we * recommend that you use the values MaxWidth, MaxHeight, * SizingPolicy, and PaddingPolicy instead of * Resolution and AspectRatio. The two groups of settings * are mutually exclusive. Do not use them together.

The aspect * ratio of thumbnails. Valid values include:

auto, * 1:1, 4:3, 3:2, 16:9

*

If you specify auto, Elastic Transcoder tries to preserve the * aspect ratio of the video in the output file.

*/ inline const Aws::String& GetAspectRatio() const{ return m_aspectRatio; } /** *

To better control resolution and aspect ratio of thumbnails, we * recommend that you use the values MaxWidth, MaxHeight, * SizingPolicy, and PaddingPolicy instead of * Resolution and AspectRatio. The two groups of settings * are mutually exclusive. Do not use them together.

The aspect * ratio of thumbnails. Valid values include:

auto, * 1:1, 4:3, 3:2, 16:9

*

If you specify auto, Elastic Transcoder tries to preserve the * aspect ratio of the video in the output file.

*/ inline bool AspectRatioHasBeenSet() const { return m_aspectRatioHasBeenSet; } /** *

To better control resolution and aspect ratio of thumbnails, we * recommend that you use the values MaxWidth, MaxHeight, * SizingPolicy, and PaddingPolicy instead of * Resolution and AspectRatio. The two groups of settings * are mutually exclusive. Do not use them together.

The aspect * ratio of thumbnails. Valid values include:

auto, * 1:1, 4:3, 3:2, 16:9

*

If you specify auto, Elastic Transcoder tries to preserve the * aspect ratio of the video in the output file.

*/ inline void SetAspectRatio(const Aws::String& value) { m_aspectRatioHasBeenSet = true; m_aspectRatio = value; } /** *

To better control resolution and aspect ratio of thumbnails, we * recommend that you use the values MaxWidth, MaxHeight, * SizingPolicy, and PaddingPolicy instead of * Resolution and AspectRatio. The two groups of settings * are mutually exclusive. Do not use them together.

The aspect * ratio of thumbnails. Valid values include:

auto, * 1:1, 4:3, 3:2, 16:9

*

If you specify auto, Elastic Transcoder tries to preserve the * aspect ratio of the video in the output file.

*/ inline void SetAspectRatio(Aws::String&& value) { m_aspectRatioHasBeenSet = true; m_aspectRatio = std::move(value); } /** *

To better control resolution and aspect ratio of thumbnails, we * recommend that you use the values MaxWidth, MaxHeight, * SizingPolicy, and PaddingPolicy instead of * Resolution and AspectRatio. The two groups of settings * are mutually exclusive. Do not use them together.

The aspect * ratio of thumbnails. Valid values include:

auto, * 1:1, 4:3, 3:2, 16:9

*

If you specify auto, Elastic Transcoder tries to preserve the * aspect ratio of the video in the output file.

*/ inline void SetAspectRatio(const char* value) { m_aspectRatioHasBeenSet = true; m_aspectRatio.assign(value); } /** *

To better control resolution and aspect ratio of thumbnails, we * recommend that you use the values MaxWidth, MaxHeight, * SizingPolicy, and PaddingPolicy instead of * Resolution and AspectRatio. The two groups of settings * are mutually exclusive. Do not use them together.

The aspect * ratio of thumbnails. Valid values include:

auto, * 1:1, 4:3, 3:2, 16:9

*

If you specify auto, Elastic Transcoder tries to preserve the * aspect ratio of the video in the output file.

*/ inline Thumbnails& WithAspectRatio(const Aws::String& value) { SetAspectRatio(value); return *this;} /** *

To better control resolution and aspect ratio of thumbnails, we * recommend that you use the values MaxWidth, MaxHeight, * SizingPolicy, and PaddingPolicy instead of * Resolution and AspectRatio. The two groups of settings * are mutually exclusive. Do not use them together.

The aspect * ratio of thumbnails. Valid values include:

auto, * 1:1, 4:3, 3:2, 16:9

*

If you specify auto, Elastic Transcoder tries to preserve the * aspect ratio of the video in the output file.

*/ inline Thumbnails& WithAspectRatio(Aws::String&& value) { SetAspectRatio(std::move(value)); return *this;} /** *

To better control resolution and aspect ratio of thumbnails, we * recommend that you use the values MaxWidth, MaxHeight, * SizingPolicy, and PaddingPolicy instead of * Resolution and AspectRatio. The two groups of settings * are mutually exclusive. Do not use them together.

The aspect * ratio of thumbnails. Valid values include:

auto, * 1:1, 4:3, 3:2, 16:9

*

If you specify auto, Elastic Transcoder tries to preserve the * aspect ratio of the video in the output file.

*/ inline Thumbnails& WithAspectRatio(const char* value) { SetAspectRatio(value); return *this;} /** *

The maximum width of thumbnails in pixels. If you specify auto, Elastic * Transcoder uses 1920 (Full HD) as the default value. If you specify a numeric * value, enter an even integer between 32 and 4096.

*/ inline const Aws::String& GetMaxWidth() const{ return m_maxWidth; } /** *

The maximum width of thumbnails in pixels. If you specify auto, Elastic * Transcoder uses 1920 (Full HD) as the default value. If you specify a numeric * value, enter an even integer between 32 and 4096.

*/ inline bool MaxWidthHasBeenSet() const { return m_maxWidthHasBeenSet; } /** *

The maximum width of thumbnails in pixels. If you specify auto, Elastic * Transcoder uses 1920 (Full HD) as the default value. If you specify a numeric * value, enter an even integer between 32 and 4096.

*/ inline void SetMaxWidth(const Aws::String& value) { m_maxWidthHasBeenSet = true; m_maxWidth = value; } /** *

The maximum width of thumbnails in pixels. If you specify auto, Elastic * Transcoder uses 1920 (Full HD) as the default value. If you specify a numeric * value, enter an even integer between 32 and 4096.

*/ inline void SetMaxWidth(Aws::String&& value) { m_maxWidthHasBeenSet = true; m_maxWidth = std::move(value); } /** *

The maximum width of thumbnails in pixels. If you specify auto, Elastic * Transcoder uses 1920 (Full HD) as the default value. If you specify a numeric * value, enter an even integer between 32 and 4096.

*/ inline void SetMaxWidth(const char* value) { m_maxWidthHasBeenSet = true; m_maxWidth.assign(value); } /** *

The maximum width of thumbnails in pixels. If you specify auto, Elastic * Transcoder uses 1920 (Full HD) as the default value. If you specify a numeric * value, enter an even integer between 32 and 4096.

*/ inline Thumbnails& WithMaxWidth(const Aws::String& value) { SetMaxWidth(value); return *this;} /** *

The maximum width of thumbnails in pixels. If you specify auto, Elastic * Transcoder uses 1920 (Full HD) as the default value. If you specify a numeric * value, enter an even integer between 32 and 4096.

*/ inline Thumbnails& WithMaxWidth(Aws::String&& value) { SetMaxWidth(std::move(value)); return *this;} /** *

The maximum width of thumbnails in pixels. If you specify auto, Elastic * Transcoder uses 1920 (Full HD) as the default value. If you specify a numeric * value, enter an even integer between 32 and 4096.

*/ inline Thumbnails& WithMaxWidth(const char* value) { SetMaxWidth(value); return *this;} /** *

The maximum height of thumbnails in pixels. If you specify auto, Elastic * Transcoder uses 1080 (Full HD) as the default value. If you specify a numeric * value, enter an even integer between 32 and 3072.

*/ inline const Aws::String& GetMaxHeight() const{ return m_maxHeight; } /** *

The maximum height of thumbnails in pixels. If you specify auto, Elastic * Transcoder uses 1080 (Full HD) as the default value. If you specify a numeric * value, enter an even integer between 32 and 3072.

*/ inline bool MaxHeightHasBeenSet() const { return m_maxHeightHasBeenSet; } /** *

The maximum height of thumbnails in pixels. If you specify auto, Elastic * Transcoder uses 1080 (Full HD) as the default value. If you specify a numeric * value, enter an even integer between 32 and 3072.

*/ inline void SetMaxHeight(const Aws::String& value) { m_maxHeightHasBeenSet = true; m_maxHeight = value; } /** *

The maximum height of thumbnails in pixels. If you specify auto, Elastic * Transcoder uses 1080 (Full HD) as the default value. If you specify a numeric * value, enter an even integer between 32 and 3072.

*/ inline void SetMaxHeight(Aws::String&& value) { m_maxHeightHasBeenSet = true; m_maxHeight = std::move(value); } /** *

The maximum height of thumbnails in pixels. If you specify auto, Elastic * Transcoder uses 1080 (Full HD) as the default value. If you specify a numeric * value, enter an even integer between 32 and 3072.

*/ inline void SetMaxHeight(const char* value) { m_maxHeightHasBeenSet = true; m_maxHeight.assign(value); } /** *

The maximum height of thumbnails in pixels. If you specify auto, Elastic * Transcoder uses 1080 (Full HD) as the default value. If you specify a numeric * value, enter an even integer between 32 and 3072.

*/ inline Thumbnails& WithMaxHeight(const Aws::String& value) { SetMaxHeight(value); return *this;} /** *

The maximum height of thumbnails in pixels. If you specify auto, Elastic * Transcoder uses 1080 (Full HD) as the default value. If you specify a numeric * value, enter an even integer between 32 and 3072.

*/ inline Thumbnails& WithMaxHeight(Aws::String&& value) { SetMaxHeight(std::move(value)); return *this;} /** *

The maximum height of thumbnails in pixels. If you specify auto, Elastic * Transcoder uses 1080 (Full HD) as the default value. If you specify a numeric * value, enter an even integer between 32 and 3072.

*/ inline Thumbnails& WithMaxHeight(const char* value) { SetMaxHeight(value); return *this;} /** *

Specify one of the following values to control scaling of thumbnails:

*
  • Fit: Elastic Transcoder scales thumbnails so they * match the value that you specified in thumbnail MaxWidth or MaxHeight settings * without exceeding the other value.

  • Fill: * Elastic Transcoder scales thumbnails so they match the value that you specified * in thumbnail MaxWidth or MaxHeight settings and * matches or exceeds the other value. Elastic Transcoder centers the image in * thumbnails and then crops in the dimension (if any) that exceeds the maximum * value.

  • Stretch: Elastic Transcoder stretches * thumbnails to match the values that you specified for thumbnail * MaxWidth and MaxHeight settings. If the relative * proportions of the input video and thumbnails are different, the thumbnails will * be distorted.

  • Keep: Elastic Transcoder does not * scale thumbnails. If either dimension of the input video exceeds the values that * you specified for thumbnail MaxWidth and MaxHeight * settings, Elastic Transcoder crops the thumbnails.

  • * ShrinkToFit: Elastic Transcoder scales thumbnails down so that * their dimensions match the values that you specified for at least one of * thumbnail MaxWidth and MaxHeight without exceeding * either value. If you specify this option, Elastic Transcoder does not scale * thumbnails up.

  • ShrinkToFill: Elastic Transcoder * scales thumbnails down so that their dimensions match the values that you * specified for at least one of MaxWidth and MaxHeight * without dropping below either value. If you specify this option, Elastic * Transcoder does not scale thumbnails up.

*/ inline const Aws::String& GetSizingPolicy() const{ return m_sizingPolicy; } /** *

Specify one of the following values to control scaling of thumbnails:

*
  • Fit: Elastic Transcoder scales thumbnails so they * match the value that you specified in thumbnail MaxWidth or MaxHeight settings * without exceeding the other value.

  • Fill: * Elastic Transcoder scales thumbnails so they match the value that you specified * in thumbnail MaxWidth or MaxHeight settings and * matches or exceeds the other value. Elastic Transcoder centers the image in * thumbnails and then crops in the dimension (if any) that exceeds the maximum * value.

  • Stretch: Elastic Transcoder stretches * thumbnails to match the values that you specified for thumbnail * MaxWidth and MaxHeight settings. If the relative * proportions of the input video and thumbnails are different, the thumbnails will * be distorted.

  • Keep: Elastic Transcoder does not * scale thumbnails. If either dimension of the input video exceeds the values that * you specified for thumbnail MaxWidth and MaxHeight * settings, Elastic Transcoder crops the thumbnails.

  • * ShrinkToFit: Elastic Transcoder scales thumbnails down so that * their dimensions match the values that you specified for at least one of * thumbnail MaxWidth and MaxHeight without exceeding * either value. If you specify this option, Elastic Transcoder does not scale * thumbnails up.

  • ShrinkToFill: Elastic Transcoder * scales thumbnails down so that their dimensions match the values that you * specified for at least one of MaxWidth and MaxHeight * without dropping below either value. If you specify this option, Elastic * Transcoder does not scale thumbnails up.

*/ inline bool SizingPolicyHasBeenSet() const { return m_sizingPolicyHasBeenSet; } /** *

Specify one of the following values to control scaling of thumbnails:

*
  • Fit: Elastic Transcoder scales thumbnails so they * match the value that you specified in thumbnail MaxWidth or MaxHeight settings * without exceeding the other value.

  • Fill: * Elastic Transcoder scales thumbnails so they match the value that you specified * in thumbnail MaxWidth or MaxHeight settings and * matches or exceeds the other value. Elastic Transcoder centers the image in * thumbnails and then crops in the dimension (if any) that exceeds the maximum * value.

  • Stretch: Elastic Transcoder stretches * thumbnails to match the values that you specified for thumbnail * MaxWidth and MaxHeight settings. If the relative * proportions of the input video and thumbnails are different, the thumbnails will * be distorted.

  • Keep: Elastic Transcoder does not * scale thumbnails. If either dimension of the input video exceeds the values that * you specified for thumbnail MaxWidth and MaxHeight * settings, Elastic Transcoder crops the thumbnails.

  • * ShrinkToFit: Elastic Transcoder scales thumbnails down so that * their dimensions match the values that you specified for at least one of * thumbnail MaxWidth and MaxHeight without exceeding * either value. If you specify this option, Elastic Transcoder does not scale * thumbnails up.

  • ShrinkToFill: Elastic Transcoder * scales thumbnails down so that their dimensions match the values that you * specified for at least one of MaxWidth and MaxHeight * without dropping below either value. If you specify this option, Elastic * Transcoder does not scale thumbnails up.

*/ inline void SetSizingPolicy(const Aws::String& value) { m_sizingPolicyHasBeenSet = true; m_sizingPolicy = value; } /** *

Specify one of the following values to control scaling of thumbnails:

*
  • Fit: Elastic Transcoder scales thumbnails so they * match the value that you specified in thumbnail MaxWidth or MaxHeight settings * without exceeding the other value.

  • Fill: * Elastic Transcoder scales thumbnails so they match the value that you specified * in thumbnail MaxWidth or MaxHeight settings and * matches or exceeds the other value. Elastic Transcoder centers the image in * thumbnails and then crops in the dimension (if any) that exceeds the maximum * value.

  • Stretch: Elastic Transcoder stretches * thumbnails to match the values that you specified for thumbnail * MaxWidth and MaxHeight settings. If the relative * proportions of the input video and thumbnails are different, the thumbnails will * be distorted.

  • Keep: Elastic Transcoder does not * scale thumbnails. If either dimension of the input video exceeds the values that * you specified for thumbnail MaxWidth and MaxHeight * settings, Elastic Transcoder crops the thumbnails.

  • * ShrinkToFit: Elastic Transcoder scales thumbnails down so that * their dimensions match the values that you specified for at least one of * thumbnail MaxWidth and MaxHeight without exceeding * either value. If you specify this option, Elastic Transcoder does not scale * thumbnails up.

  • ShrinkToFill: Elastic Transcoder * scales thumbnails down so that their dimensions match the values that you * specified for at least one of MaxWidth and MaxHeight * without dropping below either value. If you specify this option, Elastic * Transcoder does not scale thumbnails up.

*/ inline void SetSizingPolicy(Aws::String&& value) { m_sizingPolicyHasBeenSet = true; m_sizingPolicy = std::move(value); } /** *

Specify one of the following values to control scaling of thumbnails:

*
  • Fit: Elastic Transcoder scales thumbnails so they * match the value that you specified in thumbnail MaxWidth or MaxHeight settings * without exceeding the other value.

  • Fill: * Elastic Transcoder scales thumbnails so they match the value that you specified * in thumbnail MaxWidth or MaxHeight settings and * matches or exceeds the other value. Elastic Transcoder centers the image in * thumbnails and then crops in the dimension (if any) that exceeds the maximum * value.

  • Stretch: Elastic Transcoder stretches * thumbnails to match the values that you specified for thumbnail * MaxWidth and MaxHeight settings. If the relative * proportions of the input video and thumbnails are different, the thumbnails will * be distorted.

  • Keep: Elastic Transcoder does not * scale thumbnails. If either dimension of the input video exceeds the values that * you specified for thumbnail MaxWidth and MaxHeight * settings, Elastic Transcoder crops the thumbnails.

  • * ShrinkToFit: Elastic Transcoder scales thumbnails down so that * their dimensions match the values that you specified for at least one of * thumbnail MaxWidth and MaxHeight without exceeding * either value. If you specify this option, Elastic Transcoder does not scale * thumbnails up.

  • ShrinkToFill: Elastic Transcoder * scales thumbnails down so that their dimensions match the values that you * specified for at least one of MaxWidth and MaxHeight * without dropping below either value. If you specify this option, Elastic * Transcoder does not scale thumbnails up.

*/ inline void SetSizingPolicy(const char* value) { m_sizingPolicyHasBeenSet = true; m_sizingPolicy.assign(value); } /** *

Specify one of the following values to control scaling of thumbnails:

*
  • Fit: Elastic Transcoder scales thumbnails so they * match the value that you specified in thumbnail MaxWidth or MaxHeight settings * without exceeding the other value.

  • Fill: * Elastic Transcoder scales thumbnails so they match the value that you specified * in thumbnail MaxWidth or MaxHeight settings and * matches or exceeds the other value. Elastic Transcoder centers the image in * thumbnails and then crops in the dimension (if any) that exceeds the maximum * value.

  • Stretch: Elastic Transcoder stretches * thumbnails to match the values that you specified for thumbnail * MaxWidth and MaxHeight settings. If the relative * proportions of the input video and thumbnails are different, the thumbnails will * be distorted.

  • Keep: Elastic Transcoder does not * scale thumbnails. If either dimension of the input video exceeds the values that * you specified for thumbnail MaxWidth and MaxHeight * settings, Elastic Transcoder crops the thumbnails.

  • * ShrinkToFit: Elastic Transcoder scales thumbnails down so that * their dimensions match the values that you specified for at least one of * thumbnail MaxWidth and MaxHeight without exceeding * either value. If you specify this option, Elastic Transcoder does not scale * thumbnails up.

  • ShrinkToFill: Elastic Transcoder * scales thumbnails down so that their dimensions match the values that you * specified for at least one of MaxWidth and MaxHeight * without dropping below either value. If you specify this option, Elastic * Transcoder does not scale thumbnails up.

*/ inline Thumbnails& WithSizingPolicy(const Aws::String& value) { SetSizingPolicy(value); return *this;} /** *

Specify one of the following values to control scaling of thumbnails:

*
  • Fit: Elastic Transcoder scales thumbnails so they * match the value that you specified in thumbnail MaxWidth or MaxHeight settings * without exceeding the other value.

  • Fill: * Elastic Transcoder scales thumbnails so they match the value that you specified * in thumbnail MaxWidth or MaxHeight settings and * matches or exceeds the other value. Elastic Transcoder centers the image in * thumbnails and then crops in the dimension (if any) that exceeds the maximum * value.

  • Stretch: Elastic Transcoder stretches * thumbnails to match the values that you specified for thumbnail * MaxWidth and MaxHeight settings. If the relative * proportions of the input video and thumbnails are different, the thumbnails will * be distorted.

  • Keep: Elastic Transcoder does not * scale thumbnails. If either dimension of the input video exceeds the values that * you specified for thumbnail MaxWidth and MaxHeight * settings, Elastic Transcoder crops the thumbnails.

  • * ShrinkToFit: Elastic Transcoder scales thumbnails down so that * their dimensions match the values that you specified for at least one of * thumbnail MaxWidth and MaxHeight without exceeding * either value. If you specify this option, Elastic Transcoder does not scale * thumbnails up.

  • ShrinkToFill: Elastic Transcoder * scales thumbnails down so that their dimensions match the values that you * specified for at least one of MaxWidth and MaxHeight * without dropping below either value. If you specify this option, Elastic * Transcoder does not scale thumbnails up.

*/ inline Thumbnails& WithSizingPolicy(Aws::String&& value) { SetSizingPolicy(std::move(value)); return *this;} /** *

Specify one of the following values to control scaling of thumbnails:

*
  • Fit: Elastic Transcoder scales thumbnails so they * match the value that you specified in thumbnail MaxWidth or MaxHeight settings * without exceeding the other value.

  • Fill: * Elastic Transcoder scales thumbnails so they match the value that you specified * in thumbnail MaxWidth or MaxHeight settings and * matches or exceeds the other value. Elastic Transcoder centers the image in * thumbnails and then crops in the dimension (if any) that exceeds the maximum * value.

  • Stretch: Elastic Transcoder stretches * thumbnails to match the values that you specified for thumbnail * MaxWidth and MaxHeight settings. If the relative * proportions of the input video and thumbnails are different, the thumbnails will * be distorted.

  • Keep: Elastic Transcoder does not * scale thumbnails. If either dimension of the input video exceeds the values that * you specified for thumbnail MaxWidth and MaxHeight * settings, Elastic Transcoder crops the thumbnails.

  • * ShrinkToFit: Elastic Transcoder scales thumbnails down so that * their dimensions match the values that you specified for at least one of * thumbnail MaxWidth and MaxHeight without exceeding * either value. If you specify this option, Elastic Transcoder does not scale * thumbnails up.

  • ShrinkToFill: Elastic Transcoder * scales thumbnails down so that their dimensions match the values that you * specified for at least one of MaxWidth and MaxHeight * without dropping below either value. If you specify this option, Elastic * Transcoder does not scale thumbnails up.

*/ inline Thumbnails& WithSizingPolicy(const char* value) { SetSizingPolicy(value); return *this;} /** *

When you set PaddingPolicy to Pad, Elastic * Transcoder may add black bars to the top and bottom and/or left and right sides * of thumbnails to make the total size of the thumbnails match the values that you * specified for thumbnail MaxWidth and MaxHeight * settings.

*/ inline const Aws::String& GetPaddingPolicy() const{ return m_paddingPolicy; } /** *

When you set PaddingPolicy to Pad, Elastic * Transcoder may add black bars to the top and bottom and/or left and right sides * of thumbnails to make the total size of the thumbnails match the values that you * specified for thumbnail MaxWidth and MaxHeight * settings.

*/ inline bool PaddingPolicyHasBeenSet() const { return m_paddingPolicyHasBeenSet; } /** *

When you set PaddingPolicy to Pad, Elastic * Transcoder may add black bars to the top and bottom and/or left and right sides * of thumbnails to make the total size of the thumbnails match the values that you * specified for thumbnail MaxWidth and MaxHeight * settings.

*/ inline void SetPaddingPolicy(const Aws::String& value) { m_paddingPolicyHasBeenSet = true; m_paddingPolicy = value; } /** *

When you set PaddingPolicy to Pad, Elastic * Transcoder may add black bars to the top and bottom and/or left and right sides * of thumbnails to make the total size of the thumbnails match the values that you * specified for thumbnail MaxWidth and MaxHeight * settings.

*/ inline void SetPaddingPolicy(Aws::String&& value) { m_paddingPolicyHasBeenSet = true; m_paddingPolicy = std::move(value); } /** *

When you set PaddingPolicy to Pad, Elastic * Transcoder may add black bars to the top and bottom and/or left and right sides * of thumbnails to make the total size of the thumbnails match the values that you * specified for thumbnail MaxWidth and MaxHeight * settings.

*/ inline void SetPaddingPolicy(const char* value) { m_paddingPolicyHasBeenSet = true; m_paddingPolicy.assign(value); } /** *

When you set PaddingPolicy to Pad, Elastic * Transcoder may add black bars to the top and bottom and/or left and right sides * of thumbnails to make the total size of the thumbnails match the values that you * specified for thumbnail MaxWidth and MaxHeight * settings.

*/ inline Thumbnails& WithPaddingPolicy(const Aws::String& value) { SetPaddingPolicy(value); return *this;} /** *

When you set PaddingPolicy to Pad, Elastic * Transcoder may add black bars to the top and bottom and/or left and right sides * of thumbnails to make the total size of the thumbnails match the values that you * specified for thumbnail MaxWidth and MaxHeight * settings.

*/ inline Thumbnails& WithPaddingPolicy(Aws::String&& value) { SetPaddingPolicy(std::move(value)); return *this;} /** *

When you set PaddingPolicy to Pad, Elastic * Transcoder may add black bars to the top and bottom and/or left and right sides * of thumbnails to make the total size of the thumbnails match the values that you * specified for thumbnail MaxWidth and MaxHeight * settings.

*/ inline Thumbnails& WithPaddingPolicy(const char* value) { SetPaddingPolicy(value); return *this;} private: Aws::String m_format; bool m_formatHasBeenSet = false; Aws::String m_interval; bool m_intervalHasBeenSet = false; Aws::String m_resolution; bool m_resolutionHasBeenSet = false; Aws::String m_aspectRatio; bool m_aspectRatioHasBeenSet = false; Aws::String m_maxWidth; bool m_maxWidthHasBeenSet = false; Aws::String m_maxHeight; bool m_maxHeightHasBeenSet = false; Aws::String m_sizingPolicy; bool m_sizingPolicyHasBeenSet = false; Aws::String m_paddingPolicy; bool m_paddingPolicyHasBeenSet = false; }; } // namespace Model } // namespace ElasticTranscoder } // namespace Aws