318 lines
12 KiB
C
318 lines
12 KiB
C
|
|
/**
|
|||
|
|
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
|||
|
|
* SPDX-License-Identifier: Apache-2.0.
|
|||
|
|
*/
|
|||
|
|
|
|||
|
|
#pragma once
|
|||
|
|
#include <aws/elastictranscoder/ElasticTranscoder_EXPORTS.h>
|
|||
|
|
#include <aws/elastictranscoder/ElasticTranscoderRequest.h>
|
|||
|
|
#include <aws/core/utils/memory/stl/AWSString.h>
|
|||
|
|
#include <aws/elastictranscoder/model/VideoParameters.h>
|
|||
|
|
#include <aws/elastictranscoder/model/AudioParameters.h>
|
|||
|
|
#include <aws/elastictranscoder/model/Thumbnails.h>
|
|||
|
|
#include <utility>
|
|||
|
|
|
|||
|
|
namespace Aws
|
|||
|
|
{
|
|||
|
|
namespace ElasticTranscoder
|
|||
|
|
{
|
|||
|
|
namespace Model
|
|||
|
|
{
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>The <code>CreatePresetRequest</code> structure.</p><p><h3>See Also:</h3> <a
|
|||
|
|
* href="http://docs.aws.amazon.com/goto/WebAPI/elastictranscoder-2012-09-25/CreatePresetRequest">AWS
|
|||
|
|
* API Reference</a></p>
|
|||
|
|
*/
|
|||
|
|
class AWS_ELASTICTRANSCODER_API CreatePresetRequest : public ElasticTranscoderRequest
|
|||
|
|
{
|
|||
|
|
public:
|
|||
|
|
CreatePresetRequest();
|
|||
|
|
|
|||
|
|
// Service request name is the Operation name which will send this request out,
|
|||
|
|
// each operation should has unique request name, so that we can get operation's name from this request.
|
|||
|
|
// Note: this is not true for response, multiple operations may have the same response name,
|
|||
|
|
// so we can not get operation's name from response.
|
|||
|
|
inline virtual const char* GetServiceRequestName() const override { return "CreatePreset"; }
|
|||
|
|
|
|||
|
|
Aws::String SerializePayload() const override;
|
|||
|
|
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>The name of the preset. We recommend that the name be unique within the AWS
|
|||
|
|
* account, but uniqueness is not enforced.</p>
|
|||
|
|
*/
|
|||
|
|
inline const Aws::String& GetName() const{ return m_name; }
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>The name of the preset. We recommend that the name be unique within the AWS
|
|||
|
|
* account, but uniqueness is not enforced.</p>
|
|||
|
|
*/
|
|||
|
|
inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>The name of the preset. We recommend that the name be unique within the AWS
|
|||
|
|
* account, but uniqueness is not enforced.</p>
|
|||
|
|
*/
|
|||
|
|
inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>The name of the preset. We recommend that the name be unique within the AWS
|
|||
|
|
* account, but uniqueness is not enforced.</p>
|
|||
|
|
*/
|
|||
|
|
inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>The name of the preset. We recommend that the name be unique within the AWS
|
|||
|
|
* account, but uniqueness is not enforced.</p>
|
|||
|
|
*/
|
|||
|
|
inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>The name of the preset. We recommend that the name be unique within the AWS
|
|||
|
|
* account, but uniqueness is not enforced.</p>
|
|||
|
|
*/
|
|||
|
|
inline CreatePresetRequest& WithName(const Aws::String& value) { SetName(value); return *this;}
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>The name of the preset. We recommend that the name be unique within the AWS
|
|||
|
|
* account, but uniqueness is not enforced.</p>
|
|||
|
|
*/
|
|||
|
|
inline CreatePresetRequest& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>The name of the preset. We recommend that the name be unique within the AWS
|
|||
|
|
* account, but uniqueness is not enforced.</p>
|
|||
|
|
*/
|
|||
|
|
inline CreatePresetRequest& WithName(const char* value) { SetName(value); return *this;}
|
|||
|
|
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>A description of the preset.</p>
|
|||
|
|
*/
|
|||
|
|
inline const Aws::String& GetDescription() const{ return m_description; }
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>A description of the preset.</p>
|
|||
|
|
*/
|
|||
|
|
inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>A description of the preset.</p>
|
|||
|
|
*/
|
|||
|
|
inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; }
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>A description of the preset.</p>
|
|||
|
|
*/
|
|||
|
|
inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); }
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>A description of the preset.</p>
|
|||
|
|
*/
|
|||
|
|
inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); }
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>A description of the preset.</p>
|
|||
|
|
*/
|
|||
|
|
inline CreatePresetRequest& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>A description of the preset.</p>
|
|||
|
|
*/
|
|||
|
|
inline CreatePresetRequest& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;}
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>A description of the preset.</p>
|
|||
|
|
*/
|
|||
|
|
inline CreatePresetRequest& WithDescription(const char* value) { SetDescription(value); return *this;}
|
|||
|
|
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>The container type for the output file. Valid values include
|
|||
|
|
* <code>flac</code>, <code>flv</code>, <code>fmp4</code>, <code>gif</code>,
|
|||
|
|
* <code>mp3</code>, <code>mp4</code>, <code>mpg</code>, <code>mxf</code>,
|
|||
|
|
* <code>oga</code>, <code>ogg</code>, <code>ts</code>, and <code>webm</code>.</p>
|
|||
|
|
*/
|
|||
|
|
inline const Aws::String& GetContainer() const{ return m_container; }
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>The container type for the output file. Valid values include
|
|||
|
|
* <code>flac</code>, <code>flv</code>, <code>fmp4</code>, <code>gif</code>,
|
|||
|
|
* <code>mp3</code>, <code>mp4</code>, <code>mpg</code>, <code>mxf</code>,
|
|||
|
|
* <code>oga</code>, <code>ogg</code>, <code>ts</code>, and <code>webm</code>.</p>
|
|||
|
|
*/
|
|||
|
|
inline bool ContainerHasBeenSet() const { return m_containerHasBeenSet; }
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>The container type for the output file. Valid values include
|
|||
|
|
* <code>flac</code>, <code>flv</code>, <code>fmp4</code>, <code>gif</code>,
|
|||
|
|
* <code>mp3</code>, <code>mp4</code>, <code>mpg</code>, <code>mxf</code>,
|
|||
|
|
* <code>oga</code>, <code>ogg</code>, <code>ts</code>, and <code>webm</code>.</p>
|
|||
|
|
*/
|
|||
|
|
inline void SetContainer(const Aws::String& value) { m_containerHasBeenSet = true; m_container = value; }
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>The container type for the output file. Valid values include
|
|||
|
|
* <code>flac</code>, <code>flv</code>, <code>fmp4</code>, <code>gif</code>,
|
|||
|
|
* <code>mp3</code>, <code>mp4</code>, <code>mpg</code>, <code>mxf</code>,
|
|||
|
|
* <code>oga</code>, <code>ogg</code>, <code>ts</code>, and <code>webm</code>.</p>
|
|||
|
|
*/
|
|||
|
|
inline void SetContainer(Aws::String&& value) { m_containerHasBeenSet = true; m_container = std::move(value); }
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>The container type for the output file. Valid values include
|
|||
|
|
* <code>flac</code>, <code>flv</code>, <code>fmp4</code>, <code>gif</code>,
|
|||
|
|
* <code>mp3</code>, <code>mp4</code>, <code>mpg</code>, <code>mxf</code>,
|
|||
|
|
* <code>oga</code>, <code>ogg</code>, <code>ts</code>, and <code>webm</code>.</p>
|
|||
|
|
*/
|
|||
|
|
inline void SetContainer(const char* value) { m_containerHasBeenSet = true; m_container.assign(value); }
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>The container type for the output file. Valid values include
|
|||
|
|
* <code>flac</code>, <code>flv</code>, <code>fmp4</code>, <code>gif</code>,
|
|||
|
|
* <code>mp3</code>, <code>mp4</code>, <code>mpg</code>, <code>mxf</code>,
|
|||
|
|
* <code>oga</code>, <code>ogg</code>, <code>ts</code>, and <code>webm</code>.</p>
|
|||
|
|
*/
|
|||
|
|
inline CreatePresetRequest& WithContainer(const Aws::String& value) { SetContainer(value); return *this;}
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>The container type for the output file. Valid values include
|
|||
|
|
* <code>flac</code>, <code>flv</code>, <code>fmp4</code>, <code>gif</code>,
|
|||
|
|
* <code>mp3</code>, <code>mp4</code>, <code>mpg</code>, <code>mxf</code>,
|
|||
|
|
* <code>oga</code>, <code>ogg</code>, <code>ts</code>, and <code>webm</code>.</p>
|
|||
|
|
*/
|
|||
|
|
inline CreatePresetRequest& WithContainer(Aws::String&& value) { SetContainer(std::move(value)); return *this;}
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>The container type for the output file. Valid values include
|
|||
|
|
* <code>flac</code>, <code>flv</code>, <code>fmp4</code>, <code>gif</code>,
|
|||
|
|
* <code>mp3</code>, <code>mp4</code>, <code>mpg</code>, <code>mxf</code>,
|
|||
|
|
* <code>oga</code>, <code>ogg</code>, <code>ts</code>, and <code>webm</code>.</p>
|
|||
|
|
*/
|
|||
|
|
inline CreatePresetRequest& WithContainer(const char* value) { SetContainer(value); return *this;}
|
|||
|
|
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>A section of the request body that specifies the video parameters.</p>
|
|||
|
|
*/
|
|||
|
|
inline const VideoParameters& GetVideo() const{ return m_video; }
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>A section of the request body that specifies the video parameters.</p>
|
|||
|
|
*/
|
|||
|
|
inline bool VideoHasBeenSet() const { return m_videoHasBeenSet; }
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>A section of the request body that specifies the video parameters.</p>
|
|||
|
|
*/
|
|||
|
|
inline void SetVideo(const VideoParameters& value) { m_videoHasBeenSet = true; m_video = value; }
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>A section of the request body that specifies the video parameters.</p>
|
|||
|
|
*/
|
|||
|
|
inline void SetVideo(VideoParameters&& value) { m_videoHasBeenSet = true; m_video = std::move(value); }
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>A section of the request body that specifies the video parameters.</p>
|
|||
|
|
*/
|
|||
|
|
inline CreatePresetRequest& WithVideo(const VideoParameters& value) { SetVideo(value); return *this;}
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>A section of the request body that specifies the video parameters.</p>
|
|||
|
|
*/
|
|||
|
|
inline CreatePresetRequest& WithVideo(VideoParameters&& value) { SetVideo(std::move(value)); return *this;}
|
|||
|
|
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>A section of the request body that specifies the audio parameters.</p>
|
|||
|
|
*/
|
|||
|
|
inline const AudioParameters& GetAudio() const{ return m_audio; }
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>A section of the request body that specifies the audio parameters.</p>
|
|||
|
|
*/
|
|||
|
|
inline bool AudioHasBeenSet() const { return m_audioHasBeenSet; }
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>A section of the request body that specifies the audio parameters.</p>
|
|||
|
|
*/
|
|||
|
|
inline void SetAudio(const AudioParameters& value) { m_audioHasBeenSet = true; m_audio = value; }
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>A section of the request body that specifies the audio parameters.</p>
|
|||
|
|
*/
|
|||
|
|
inline void SetAudio(AudioParameters&& value) { m_audioHasBeenSet = true; m_audio = std::move(value); }
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>A section of the request body that specifies the audio parameters.</p>
|
|||
|
|
*/
|
|||
|
|
inline CreatePresetRequest& WithAudio(const AudioParameters& value) { SetAudio(value); return *this;}
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>A section of the request body that specifies the audio parameters.</p>
|
|||
|
|
*/
|
|||
|
|
inline CreatePresetRequest& WithAudio(AudioParameters&& value) { SetAudio(std::move(value)); return *this;}
|
|||
|
|
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>A section of the request body that specifies the thumbnail parameters, if
|
|||
|
|
* any.</p>
|
|||
|
|
*/
|
|||
|
|
inline const Thumbnails& GetThumbnails() const{ return m_thumbnails; }
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>A section of the request body that specifies the thumbnail parameters, if
|
|||
|
|
* any.</p>
|
|||
|
|
*/
|
|||
|
|
inline bool ThumbnailsHasBeenSet() const { return m_thumbnailsHasBeenSet; }
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>A section of the request body that specifies the thumbnail parameters, if
|
|||
|
|
* any.</p>
|
|||
|
|
*/
|
|||
|
|
inline void SetThumbnails(const Thumbnails& value) { m_thumbnailsHasBeenSet = true; m_thumbnails = value; }
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>A section of the request body that specifies the thumbnail parameters, if
|
|||
|
|
* any.</p>
|
|||
|
|
*/
|
|||
|
|
inline void SetThumbnails(Thumbnails&& value) { m_thumbnailsHasBeenSet = true; m_thumbnails = std::move(value); }
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>A section of the request body that specifies the thumbnail parameters, if
|
|||
|
|
* any.</p>
|
|||
|
|
*/
|
|||
|
|
inline CreatePresetRequest& WithThumbnails(const Thumbnails& value) { SetThumbnails(value); return *this;}
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>A section of the request body that specifies the thumbnail parameters, if
|
|||
|
|
* any.</p>
|
|||
|
|
*/
|
|||
|
|
inline CreatePresetRequest& WithThumbnails(Thumbnails&& value) { SetThumbnails(std::move(value)); return *this;}
|
|||
|
|
|
|||
|
|
private:
|
|||
|
|
|
|||
|
|
Aws::String m_name;
|
|||
|
|
bool m_nameHasBeenSet;
|
|||
|
|
|
|||
|
|
Aws::String m_description;
|
|||
|
|
bool m_descriptionHasBeenSet;
|
|||
|
|
|
|||
|
|
Aws::String m_container;
|
|||
|
|
bool m_containerHasBeenSet;
|
|||
|
|
|
|||
|
|
VideoParameters m_video;
|
|||
|
|
bool m_videoHasBeenSet;
|
|||
|
|
|
|||
|
|
AudioParameters m_audio;
|
|||
|
|
bool m_audioHasBeenSet;
|
|||
|
|
|
|||
|
|
Thumbnails m_thumbnails;
|
|||
|
|
bool m_thumbnailsHasBeenSet;
|
|||
|
|
};
|
|||
|
|
|
|||
|
|
} // namespace Model
|
|||
|
|
} // namespace ElasticTranscoder
|
|||
|
|
} // namespace Aws
|