290 lines
9.9 KiB
C++
290 lines
9.9 KiB
C++
/**
|
|
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
|
* SPDX-License-Identifier: Apache-2.0.
|
|
*/
|
|
|
|
#pragma once
|
|
#include <aws/mediaconvert/MediaConvert_EXPORTS.h>
|
|
#include <aws/mediaconvert/MediaConvertRequest.h>
|
|
#include <aws/core/utils/memory/stl/AWSString.h>
|
|
#include <aws/mediaconvert/model/PresetSettings.h>
|
|
#include <aws/core/utils/memory/stl/AWSMap.h>
|
|
#include <utility>
|
|
|
|
namespace Aws
|
|
{
|
|
namespace MediaConvert
|
|
{
|
|
namespace Model
|
|
{
|
|
|
|
/**
|
|
*/
|
|
class AWS_MEDIACONVERT_API CreatePresetRequest : public MediaConvertRequest
|
|
{
|
|
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;
|
|
|
|
|
|
/**
|
|
* Optional. A category for the preset you are creating.
|
|
*/
|
|
inline const Aws::String& GetCategory() const{ return m_category; }
|
|
|
|
/**
|
|
* Optional. A category for the preset you are creating.
|
|
*/
|
|
inline bool CategoryHasBeenSet() const { return m_categoryHasBeenSet; }
|
|
|
|
/**
|
|
* Optional. A category for the preset you are creating.
|
|
*/
|
|
inline void SetCategory(const Aws::String& value) { m_categoryHasBeenSet = true; m_category = value; }
|
|
|
|
/**
|
|
* Optional. A category for the preset you are creating.
|
|
*/
|
|
inline void SetCategory(Aws::String&& value) { m_categoryHasBeenSet = true; m_category = std::move(value); }
|
|
|
|
/**
|
|
* Optional. A category for the preset you are creating.
|
|
*/
|
|
inline void SetCategory(const char* value) { m_categoryHasBeenSet = true; m_category.assign(value); }
|
|
|
|
/**
|
|
* Optional. A category for the preset you are creating.
|
|
*/
|
|
inline CreatePresetRequest& WithCategory(const Aws::String& value) { SetCategory(value); return *this;}
|
|
|
|
/**
|
|
* Optional. A category for the preset you are creating.
|
|
*/
|
|
inline CreatePresetRequest& WithCategory(Aws::String&& value) { SetCategory(std::move(value)); return *this;}
|
|
|
|
/**
|
|
* Optional. A category for the preset you are creating.
|
|
*/
|
|
inline CreatePresetRequest& WithCategory(const char* value) { SetCategory(value); return *this;}
|
|
|
|
|
|
/**
|
|
* Optional. A description of the preset you are creating.
|
|
*/
|
|
inline const Aws::String& GetDescription() const{ return m_description; }
|
|
|
|
/**
|
|
* Optional. A description of the preset you are creating.
|
|
*/
|
|
inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
|
|
|
|
/**
|
|
* Optional. A description of the preset you are creating.
|
|
*/
|
|
inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; }
|
|
|
|
/**
|
|
* Optional. A description of the preset you are creating.
|
|
*/
|
|
inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); }
|
|
|
|
/**
|
|
* Optional. A description of the preset you are creating.
|
|
*/
|
|
inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); }
|
|
|
|
/**
|
|
* Optional. A description of the preset you are creating.
|
|
*/
|
|
inline CreatePresetRequest& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
|
|
|
|
/**
|
|
* Optional. A description of the preset you are creating.
|
|
*/
|
|
inline CreatePresetRequest& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;}
|
|
|
|
/**
|
|
* Optional. A description of the preset you are creating.
|
|
*/
|
|
inline CreatePresetRequest& WithDescription(const char* value) { SetDescription(value); return *this;}
|
|
|
|
|
|
/**
|
|
* The name of the preset you are creating.
|
|
*/
|
|
inline const Aws::String& GetName() const{ return m_name; }
|
|
|
|
/**
|
|
* The name of the preset you are creating.
|
|
*/
|
|
inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
|
|
|
|
/**
|
|
* The name of the preset you are creating.
|
|
*/
|
|
inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
|
|
|
|
/**
|
|
* The name of the preset you are creating.
|
|
*/
|
|
inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
|
|
|
|
/**
|
|
* The name of the preset you are creating.
|
|
*/
|
|
inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
|
|
|
|
/**
|
|
* The name of the preset you are creating.
|
|
*/
|
|
inline CreatePresetRequest& WithName(const Aws::String& value) { SetName(value); return *this;}
|
|
|
|
/**
|
|
* The name of the preset you are creating.
|
|
*/
|
|
inline CreatePresetRequest& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
|
|
|
|
/**
|
|
* The name of the preset you are creating.
|
|
*/
|
|
inline CreatePresetRequest& WithName(const char* value) { SetName(value); return *this;}
|
|
|
|
|
|
/**
|
|
* Settings for preset
|
|
*/
|
|
inline const PresetSettings& GetSettings() const{ return m_settings; }
|
|
|
|
/**
|
|
* Settings for preset
|
|
*/
|
|
inline bool SettingsHasBeenSet() const { return m_settingsHasBeenSet; }
|
|
|
|
/**
|
|
* Settings for preset
|
|
*/
|
|
inline void SetSettings(const PresetSettings& value) { m_settingsHasBeenSet = true; m_settings = value; }
|
|
|
|
/**
|
|
* Settings for preset
|
|
*/
|
|
inline void SetSettings(PresetSettings&& value) { m_settingsHasBeenSet = true; m_settings = std::move(value); }
|
|
|
|
/**
|
|
* Settings for preset
|
|
*/
|
|
inline CreatePresetRequest& WithSettings(const PresetSettings& value) { SetSettings(value); return *this;}
|
|
|
|
/**
|
|
* Settings for preset
|
|
*/
|
|
inline CreatePresetRequest& WithSettings(PresetSettings&& value) { SetSettings(std::move(value)); return *this;}
|
|
|
|
|
|
/**
|
|
* The tags that you want to add to the resource. You can tag resources with a
|
|
* key-value pair or with only a key.
|
|
*/
|
|
inline const Aws::Map<Aws::String, Aws::String>& GetTags() const{ return m_tags; }
|
|
|
|
/**
|
|
* The tags that you want to add to the resource. You can tag resources with a
|
|
* key-value pair or with only a key.
|
|
*/
|
|
inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
|
|
|
|
/**
|
|
* The tags that you want to add to the resource. You can tag resources with a
|
|
* key-value pair or with only a key.
|
|
*/
|
|
inline void SetTags(const Aws::Map<Aws::String, Aws::String>& value) { m_tagsHasBeenSet = true; m_tags = value; }
|
|
|
|
/**
|
|
* The tags that you want to add to the resource. You can tag resources with a
|
|
* key-value pair or with only a key.
|
|
*/
|
|
inline void SetTags(Aws::Map<Aws::String, Aws::String>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
|
|
|
|
/**
|
|
* The tags that you want to add to the resource. You can tag resources with a
|
|
* key-value pair or with only a key.
|
|
*/
|
|
inline CreatePresetRequest& WithTags(const Aws::Map<Aws::String, Aws::String>& value) { SetTags(value); return *this;}
|
|
|
|
/**
|
|
* The tags that you want to add to the resource. You can tag resources with a
|
|
* key-value pair or with only a key.
|
|
*/
|
|
inline CreatePresetRequest& WithTags(Aws::Map<Aws::String, Aws::String>&& value) { SetTags(std::move(value)); return *this;}
|
|
|
|
/**
|
|
* The tags that you want to add to the resource. You can tag resources with a
|
|
* key-value pair or with only a key.
|
|
*/
|
|
inline CreatePresetRequest& AddTags(const Aws::String& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; }
|
|
|
|
/**
|
|
* The tags that you want to add to the resource. You can tag resources with a
|
|
* key-value pair or with only a key.
|
|
*/
|
|
inline CreatePresetRequest& AddTags(Aws::String&& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; }
|
|
|
|
/**
|
|
* The tags that you want to add to the resource. You can tag resources with a
|
|
* key-value pair or with only a key.
|
|
*/
|
|
inline CreatePresetRequest& AddTags(const Aws::String& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; }
|
|
|
|
/**
|
|
* The tags that you want to add to the resource. You can tag resources with a
|
|
* key-value pair or with only a key.
|
|
*/
|
|
inline CreatePresetRequest& AddTags(Aws::String&& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), std::move(value)); return *this; }
|
|
|
|
/**
|
|
* The tags that you want to add to the resource. You can tag resources with a
|
|
* key-value pair or with only a key.
|
|
*/
|
|
inline CreatePresetRequest& AddTags(const char* key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; }
|
|
|
|
/**
|
|
* The tags that you want to add to the resource. You can tag resources with a
|
|
* key-value pair or with only a key.
|
|
*/
|
|
inline CreatePresetRequest& AddTags(Aws::String&& key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; }
|
|
|
|
/**
|
|
* The tags that you want to add to the resource. You can tag resources with a
|
|
* key-value pair or with only a key.
|
|
*/
|
|
inline CreatePresetRequest& AddTags(const char* key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; }
|
|
|
|
private:
|
|
|
|
Aws::String m_category;
|
|
bool m_categoryHasBeenSet;
|
|
|
|
Aws::String m_description;
|
|
bool m_descriptionHasBeenSet;
|
|
|
|
Aws::String m_name;
|
|
bool m_nameHasBeenSet;
|
|
|
|
PresetSettings m_settings;
|
|
bool m_settingsHasBeenSet;
|
|
|
|
Aws::Map<Aws::String, Aws::String> m_tags;
|
|
bool m_tagsHasBeenSet;
|
|
};
|
|
|
|
} // namespace Model
|
|
} // namespace MediaConvert
|
|
} // namespace Aws
|