feat(hos_client_create, hos_client_destory): 多次调用destory不会导致重复释放

This commit is contained in:
彭宣正
2020-12-14 17:24:58 +08:00
parent 505d529c32
commit 10b370e486
55976 changed files with 8544395 additions and 2 deletions

View File

@@ -0,0 +1,149 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#include <aws/elastictranscoder/model/Artwork.h>
#include <aws/core/utils/json/JsonSerializer.h>
#include <utility>
using namespace Aws::Utils::Json;
using namespace Aws::Utils;
namespace Aws
{
namespace ElasticTranscoder
{
namespace Model
{
Artwork::Artwork() :
m_inputKeyHasBeenSet(false),
m_maxWidthHasBeenSet(false),
m_maxHeightHasBeenSet(false),
m_sizingPolicyHasBeenSet(false),
m_paddingPolicyHasBeenSet(false),
m_albumArtFormatHasBeenSet(false),
m_encryptionHasBeenSet(false)
{
}
Artwork::Artwork(JsonView jsonValue) :
m_inputKeyHasBeenSet(false),
m_maxWidthHasBeenSet(false),
m_maxHeightHasBeenSet(false),
m_sizingPolicyHasBeenSet(false),
m_paddingPolicyHasBeenSet(false),
m_albumArtFormatHasBeenSet(false),
m_encryptionHasBeenSet(false)
{
*this = jsonValue;
}
Artwork& Artwork::operator =(JsonView jsonValue)
{
if(jsonValue.ValueExists("InputKey"))
{
m_inputKey = jsonValue.GetString("InputKey");
m_inputKeyHasBeenSet = true;
}
if(jsonValue.ValueExists("MaxWidth"))
{
m_maxWidth = jsonValue.GetString("MaxWidth");
m_maxWidthHasBeenSet = true;
}
if(jsonValue.ValueExists("MaxHeight"))
{
m_maxHeight = jsonValue.GetString("MaxHeight");
m_maxHeightHasBeenSet = true;
}
if(jsonValue.ValueExists("SizingPolicy"))
{
m_sizingPolicy = jsonValue.GetString("SizingPolicy");
m_sizingPolicyHasBeenSet = true;
}
if(jsonValue.ValueExists("PaddingPolicy"))
{
m_paddingPolicy = jsonValue.GetString("PaddingPolicy");
m_paddingPolicyHasBeenSet = true;
}
if(jsonValue.ValueExists("AlbumArtFormat"))
{
m_albumArtFormat = jsonValue.GetString("AlbumArtFormat");
m_albumArtFormatHasBeenSet = true;
}
if(jsonValue.ValueExists("Encryption"))
{
m_encryption = jsonValue.GetObject("Encryption");
m_encryptionHasBeenSet = true;
}
return *this;
}
JsonValue Artwork::Jsonize() const
{
JsonValue payload;
if(m_inputKeyHasBeenSet)
{
payload.WithString("InputKey", m_inputKey);
}
if(m_maxWidthHasBeenSet)
{
payload.WithString("MaxWidth", m_maxWidth);
}
if(m_maxHeightHasBeenSet)
{
payload.WithString("MaxHeight", m_maxHeight);
}
if(m_sizingPolicyHasBeenSet)
{
payload.WithString("SizingPolicy", m_sizingPolicy);
}
if(m_paddingPolicyHasBeenSet)
{
payload.WithString("PaddingPolicy", m_paddingPolicy);
}
if(m_albumArtFormatHasBeenSet)
{
payload.WithString("AlbumArtFormat", m_albumArtFormat);
}
if(m_encryptionHasBeenSet)
{
payload.WithObject("Encryption", m_encryption.Jsonize());
}
return payload;
}
} // namespace Model
} // namespace ElasticTranscoder
} // namespace Aws

View File

@@ -0,0 +1,104 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#include <aws/elastictranscoder/model/AudioCodecOptions.h>
#include <aws/core/utils/json/JsonSerializer.h>
#include <utility>
using namespace Aws::Utils::Json;
using namespace Aws::Utils;
namespace Aws
{
namespace ElasticTranscoder
{
namespace Model
{
AudioCodecOptions::AudioCodecOptions() :
m_profileHasBeenSet(false),
m_bitDepthHasBeenSet(false),
m_bitOrderHasBeenSet(false),
m_signedHasBeenSet(false)
{
}
AudioCodecOptions::AudioCodecOptions(JsonView jsonValue) :
m_profileHasBeenSet(false),
m_bitDepthHasBeenSet(false),
m_bitOrderHasBeenSet(false),
m_signedHasBeenSet(false)
{
*this = jsonValue;
}
AudioCodecOptions& AudioCodecOptions::operator =(JsonView jsonValue)
{
if(jsonValue.ValueExists("Profile"))
{
m_profile = jsonValue.GetString("Profile");
m_profileHasBeenSet = true;
}
if(jsonValue.ValueExists("BitDepth"))
{
m_bitDepth = jsonValue.GetString("BitDepth");
m_bitDepthHasBeenSet = true;
}
if(jsonValue.ValueExists("BitOrder"))
{
m_bitOrder = jsonValue.GetString("BitOrder");
m_bitOrderHasBeenSet = true;
}
if(jsonValue.ValueExists("Signed"))
{
m_signed = jsonValue.GetString("Signed");
m_signedHasBeenSet = true;
}
return *this;
}
JsonValue AudioCodecOptions::Jsonize() const
{
JsonValue payload;
if(m_profileHasBeenSet)
{
payload.WithString("Profile", m_profile);
}
if(m_bitDepthHasBeenSet)
{
payload.WithString("BitDepth", m_bitDepth);
}
if(m_bitOrderHasBeenSet)
{
payload.WithString("BitOrder", m_bitOrder);
}
if(m_signedHasBeenSet)
{
payload.WithString("Signed", m_signed);
}
return payload;
}
} // namespace Model
} // namespace ElasticTranscoder
} // namespace Aws

View File

@@ -0,0 +1,134 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#include <aws/elastictranscoder/model/AudioParameters.h>
#include <aws/core/utils/json/JsonSerializer.h>
#include <utility>
using namespace Aws::Utils::Json;
using namespace Aws::Utils;
namespace Aws
{
namespace ElasticTranscoder
{
namespace Model
{
AudioParameters::AudioParameters() :
m_codecHasBeenSet(false),
m_sampleRateHasBeenSet(false),
m_bitRateHasBeenSet(false),
m_channelsHasBeenSet(false),
m_audioPackingModeHasBeenSet(false),
m_codecOptionsHasBeenSet(false)
{
}
AudioParameters::AudioParameters(JsonView jsonValue) :
m_codecHasBeenSet(false),
m_sampleRateHasBeenSet(false),
m_bitRateHasBeenSet(false),
m_channelsHasBeenSet(false),
m_audioPackingModeHasBeenSet(false),
m_codecOptionsHasBeenSet(false)
{
*this = jsonValue;
}
AudioParameters& AudioParameters::operator =(JsonView jsonValue)
{
if(jsonValue.ValueExists("Codec"))
{
m_codec = jsonValue.GetString("Codec");
m_codecHasBeenSet = true;
}
if(jsonValue.ValueExists("SampleRate"))
{
m_sampleRate = jsonValue.GetString("SampleRate");
m_sampleRateHasBeenSet = true;
}
if(jsonValue.ValueExists("BitRate"))
{
m_bitRate = jsonValue.GetString("BitRate");
m_bitRateHasBeenSet = true;
}
if(jsonValue.ValueExists("Channels"))
{
m_channels = jsonValue.GetString("Channels");
m_channelsHasBeenSet = true;
}
if(jsonValue.ValueExists("AudioPackingMode"))
{
m_audioPackingMode = jsonValue.GetString("AudioPackingMode");
m_audioPackingModeHasBeenSet = true;
}
if(jsonValue.ValueExists("CodecOptions"))
{
m_codecOptions = jsonValue.GetObject("CodecOptions");
m_codecOptionsHasBeenSet = true;
}
return *this;
}
JsonValue AudioParameters::Jsonize() const
{
JsonValue payload;
if(m_codecHasBeenSet)
{
payload.WithString("Codec", m_codec);
}
if(m_sampleRateHasBeenSet)
{
payload.WithString("SampleRate", m_sampleRate);
}
if(m_bitRateHasBeenSet)
{
payload.WithString("BitRate", m_bitRate);
}
if(m_channelsHasBeenSet)
{
payload.WithString("Channels", m_channels);
}
if(m_audioPackingModeHasBeenSet)
{
payload.WithString("AudioPackingMode", m_audioPackingMode);
}
if(m_codecOptionsHasBeenSet)
{
payload.WithObject("CodecOptions", m_codecOptions.Jsonize());
}
return payload;
}
} // namespace Model
} // namespace ElasticTranscoder
} // namespace Aws

View File

@@ -0,0 +1,27 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#include <aws/elastictranscoder/model/CancelJobRequest.h>
#include <aws/core/utils/json/JsonSerializer.h>
#include <utility>
using namespace Aws::ElasticTranscoder::Model;
using namespace Aws::Utils::Json;
using namespace Aws::Utils;
CancelJobRequest::CancelJobRequest() :
m_idHasBeenSet(false)
{
}
Aws::String CancelJobRequest::SerializePayload() const
{
return {};
}

View File

@@ -0,0 +1,34 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#include <aws/elastictranscoder/model/CancelJobResult.h>
#include <aws/core/utils/json/JsonSerializer.h>
#include <aws/core/AmazonWebServiceResult.h>
#include <aws/core/utils/StringUtils.h>
#include <aws/core/utils/UnreferencedParam.h>
#include <utility>
using namespace Aws::ElasticTranscoder::Model;
using namespace Aws::Utils::Json;
using namespace Aws::Utils;
using namespace Aws;
CancelJobResult::CancelJobResult()
{
}
CancelJobResult::CancelJobResult(const Aws::AmazonWebServiceResult<JsonValue>& result)
{
*this = result;
}
CancelJobResult& CancelJobResult::operator =(const Aws::AmazonWebServiceResult<JsonValue>& result)
{
AWS_UNREFERENCED_PARAM(result);
return *this;
}

View File

@@ -0,0 +1,89 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#include <aws/elastictranscoder/model/CaptionFormat.h>
#include <aws/core/utils/json/JsonSerializer.h>
#include <utility>
using namespace Aws::Utils::Json;
using namespace Aws::Utils;
namespace Aws
{
namespace ElasticTranscoder
{
namespace Model
{
CaptionFormat::CaptionFormat() :
m_formatHasBeenSet(false),
m_patternHasBeenSet(false),
m_encryptionHasBeenSet(false)
{
}
CaptionFormat::CaptionFormat(JsonView jsonValue) :
m_formatHasBeenSet(false),
m_patternHasBeenSet(false),
m_encryptionHasBeenSet(false)
{
*this = jsonValue;
}
CaptionFormat& CaptionFormat::operator =(JsonView jsonValue)
{
if(jsonValue.ValueExists("Format"))
{
m_format = jsonValue.GetString("Format");
m_formatHasBeenSet = true;
}
if(jsonValue.ValueExists("Pattern"))
{
m_pattern = jsonValue.GetString("Pattern");
m_patternHasBeenSet = true;
}
if(jsonValue.ValueExists("Encryption"))
{
m_encryption = jsonValue.GetObject("Encryption");
m_encryptionHasBeenSet = true;
}
return *this;
}
JsonValue CaptionFormat::Jsonize() const
{
JsonValue payload;
if(m_formatHasBeenSet)
{
payload.WithString("Format", m_format);
}
if(m_patternHasBeenSet)
{
payload.WithString("Pattern", m_pattern);
}
if(m_encryptionHasBeenSet)
{
payload.WithObject("Encryption", m_encryption.Jsonize());
}
return payload;
}
} // namespace Model
} // namespace ElasticTranscoder
} // namespace Aws

View File

@@ -0,0 +1,119 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#include <aws/elastictranscoder/model/CaptionSource.h>
#include <aws/core/utils/json/JsonSerializer.h>
#include <utility>
using namespace Aws::Utils::Json;
using namespace Aws::Utils;
namespace Aws
{
namespace ElasticTranscoder
{
namespace Model
{
CaptionSource::CaptionSource() :
m_keyHasBeenSet(false),
m_languageHasBeenSet(false),
m_timeOffsetHasBeenSet(false),
m_labelHasBeenSet(false),
m_encryptionHasBeenSet(false)
{
}
CaptionSource::CaptionSource(JsonView jsonValue) :
m_keyHasBeenSet(false),
m_languageHasBeenSet(false),
m_timeOffsetHasBeenSet(false),
m_labelHasBeenSet(false),
m_encryptionHasBeenSet(false)
{
*this = jsonValue;
}
CaptionSource& CaptionSource::operator =(JsonView jsonValue)
{
if(jsonValue.ValueExists("Key"))
{
m_key = jsonValue.GetString("Key");
m_keyHasBeenSet = true;
}
if(jsonValue.ValueExists("Language"))
{
m_language = jsonValue.GetString("Language");
m_languageHasBeenSet = true;
}
if(jsonValue.ValueExists("TimeOffset"))
{
m_timeOffset = jsonValue.GetString("TimeOffset");
m_timeOffsetHasBeenSet = true;
}
if(jsonValue.ValueExists("Label"))
{
m_label = jsonValue.GetString("Label");
m_labelHasBeenSet = true;
}
if(jsonValue.ValueExists("Encryption"))
{
m_encryption = jsonValue.GetObject("Encryption");
m_encryptionHasBeenSet = true;
}
return *this;
}
JsonValue CaptionSource::Jsonize() const
{
JsonValue payload;
if(m_keyHasBeenSet)
{
payload.WithString("Key", m_key);
}
if(m_languageHasBeenSet)
{
payload.WithString("Language", m_language);
}
if(m_timeOffsetHasBeenSet)
{
payload.WithString("TimeOffset", m_timeOffset);
}
if(m_labelHasBeenSet)
{
payload.WithString("Label", m_label);
}
if(m_encryptionHasBeenSet)
{
payload.WithObject("Encryption", m_encryption.Jsonize());
}
return payload;
}
} // namespace Model
} // namespace ElasticTranscoder
} // namespace Aws

View File

@@ -0,0 +1,67 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#include <aws/elastictranscoder/model/Captions.h>
#include <aws/core/utils/json/JsonSerializer.h>
#include <utility>
using namespace Aws::Utils::Json;
using namespace Aws::Utils;
namespace Aws
{
namespace ElasticTranscoder
{
namespace Model
{
Captions::Captions() :
m_captionFormatsHasBeenSet(false)
{
}
Captions::Captions(JsonView jsonValue) :
m_captionFormatsHasBeenSet(false)
{
*this = jsonValue;
}
Captions& Captions::operator =(JsonView jsonValue)
{
if(jsonValue.ValueExists("CaptionFormats"))
{
Array<JsonView> captionFormatsJsonList = jsonValue.GetArray("CaptionFormats");
for(unsigned captionFormatsIndex = 0; captionFormatsIndex < captionFormatsJsonList.GetLength(); ++captionFormatsIndex)
{
m_captionFormats.push_back(captionFormatsJsonList[captionFormatsIndex].AsObject());
}
m_captionFormatsHasBeenSet = true;
}
return *this;
}
JsonValue Captions::Jsonize() const
{
JsonValue payload;
if(m_captionFormatsHasBeenSet)
{
Array<JsonValue> captionFormatsJsonList(m_captionFormats.size());
for(unsigned captionFormatsIndex = 0; captionFormatsIndex < captionFormatsJsonList.GetLength(); ++captionFormatsIndex)
{
captionFormatsJsonList[captionFormatsIndex].AsObject(m_captionFormats[captionFormatsIndex].Jsonize());
}
payload.WithArray("CaptionFormats", std::move(captionFormatsJsonList));
}
return payload;
}
} // namespace Model
} // namespace ElasticTranscoder
} // namespace Aws

View File

@@ -0,0 +1,59 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#include <aws/elastictranscoder/model/Clip.h>
#include <aws/core/utils/json/JsonSerializer.h>
#include <utility>
using namespace Aws::Utils::Json;
using namespace Aws::Utils;
namespace Aws
{
namespace ElasticTranscoder
{
namespace Model
{
Clip::Clip() :
m_timeSpanHasBeenSet(false)
{
}
Clip::Clip(JsonView jsonValue) :
m_timeSpanHasBeenSet(false)
{
*this = jsonValue;
}
Clip& Clip::operator =(JsonView jsonValue)
{
if(jsonValue.ValueExists("TimeSpan"))
{
m_timeSpan = jsonValue.GetObject("TimeSpan");
m_timeSpanHasBeenSet = true;
}
return *this;
}
JsonValue Clip::Jsonize() const
{
JsonValue payload;
if(m_timeSpanHasBeenSet)
{
payload.WithObject("TimeSpan", m_timeSpan.Jsonize());
}
return payload;
}
} // namespace Model
} // namespace ElasticTranscoder
} // namespace Aws

View File

@@ -0,0 +1,202 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#include <aws/elastictranscoder/model/CreateJobOutput.h>
#include <aws/core/utils/json/JsonSerializer.h>
#include <utility>
using namespace Aws::Utils::Json;
using namespace Aws::Utils;
namespace Aws
{
namespace ElasticTranscoder
{
namespace Model
{
CreateJobOutput::CreateJobOutput() :
m_keyHasBeenSet(false),
m_thumbnailPatternHasBeenSet(false),
m_thumbnailEncryptionHasBeenSet(false),
m_rotateHasBeenSet(false),
m_presetIdHasBeenSet(false),
m_segmentDurationHasBeenSet(false),
m_watermarksHasBeenSet(false),
m_albumArtHasBeenSet(false),
m_captionsHasBeenSet(false),
m_encryptionHasBeenSet(false)
{
}
CreateJobOutput::CreateJobOutput(JsonView jsonValue) :
m_keyHasBeenSet(false),
m_thumbnailPatternHasBeenSet(false),
m_thumbnailEncryptionHasBeenSet(false),
m_rotateHasBeenSet(false),
m_presetIdHasBeenSet(false),
m_segmentDurationHasBeenSet(false),
m_watermarksHasBeenSet(false),
m_albumArtHasBeenSet(false),
m_captionsHasBeenSet(false),
m_encryptionHasBeenSet(false)
{
*this = jsonValue;
}
CreateJobOutput& CreateJobOutput::operator =(JsonView jsonValue)
{
if(jsonValue.ValueExists("Key"))
{
m_key = jsonValue.GetString("Key");
m_keyHasBeenSet = true;
}
if(jsonValue.ValueExists("ThumbnailPattern"))
{
m_thumbnailPattern = jsonValue.GetString("ThumbnailPattern");
m_thumbnailPatternHasBeenSet = true;
}
if(jsonValue.ValueExists("ThumbnailEncryption"))
{
m_thumbnailEncryption = jsonValue.GetObject("ThumbnailEncryption");
m_thumbnailEncryptionHasBeenSet = true;
}
if(jsonValue.ValueExists("Rotate"))
{
m_rotate = jsonValue.GetString("Rotate");
m_rotateHasBeenSet = true;
}
if(jsonValue.ValueExists("PresetId"))
{
m_presetId = jsonValue.GetString("PresetId");
m_presetIdHasBeenSet = true;
}
if(jsonValue.ValueExists("SegmentDuration"))
{
m_segmentDuration = jsonValue.GetString("SegmentDuration");
m_segmentDurationHasBeenSet = true;
}
if(jsonValue.ValueExists("Watermarks"))
{
Array<JsonView> watermarksJsonList = jsonValue.GetArray("Watermarks");
for(unsigned watermarksIndex = 0; watermarksIndex < watermarksJsonList.GetLength(); ++watermarksIndex)
{
m_watermarks.push_back(watermarksJsonList[watermarksIndex].AsObject());
}
m_watermarksHasBeenSet = true;
}
if(jsonValue.ValueExists("AlbumArt"))
{
m_albumArt = jsonValue.GetObject("AlbumArt");
m_albumArtHasBeenSet = true;
}
if(jsonValue.ValueExists("Captions"))
{
m_captions = jsonValue.GetObject("Captions");
m_captionsHasBeenSet = true;
}
if(jsonValue.ValueExists("Encryption"))
{
m_encryption = jsonValue.GetObject("Encryption");
m_encryptionHasBeenSet = true;
}
return *this;
}
JsonValue CreateJobOutput::Jsonize() const
{
JsonValue payload;
if(m_keyHasBeenSet)
{
payload.WithString("Key", m_key);
}
if(m_thumbnailPatternHasBeenSet)
{
payload.WithString("ThumbnailPattern", m_thumbnailPattern);
}
if(m_thumbnailEncryptionHasBeenSet)
{
payload.WithObject("ThumbnailEncryption", m_thumbnailEncryption.Jsonize());
}
if(m_rotateHasBeenSet)
{
payload.WithString("Rotate", m_rotate);
}
if(m_presetIdHasBeenSet)
{
payload.WithString("PresetId", m_presetId);
}
if(m_segmentDurationHasBeenSet)
{
payload.WithString("SegmentDuration", m_segmentDuration);
}
if(m_watermarksHasBeenSet)
{
Array<JsonValue> watermarksJsonList(m_watermarks.size());
for(unsigned watermarksIndex = 0; watermarksIndex < watermarksJsonList.GetLength(); ++watermarksIndex)
{
watermarksJsonList[watermarksIndex].AsObject(m_watermarks[watermarksIndex].Jsonize());
}
payload.WithArray("Watermarks", std::move(watermarksJsonList));
}
if(m_albumArtHasBeenSet)
{
payload.WithObject("AlbumArt", m_albumArt.Jsonize());
}
if(m_captionsHasBeenSet)
{
payload.WithObject("Captions", m_captions.Jsonize());
}
if(m_encryptionHasBeenSet)
{
payload.WithObject("Encryption", m_encryption.Jsonize());
}
return payload;
}
} // namespace Model
} // namespace ElasticTranscoder
} // namespace Aws

View File

@@ -0,0 +1,127 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#include <aws/elastictranscoder/model/CreateJobPlaylist.h>
#include <aws/core/utils/json/JsonSerializer.h>
#include <utility>
using namespace Aws::Utils::Json;
using namespace Aws::Utils;
namespace Aws
{
namespace ElasticTranscoder
{
namespace Model
{
CreateJobPlaylist::CreateJobPlaylist() :
m_nameHasBeenSet(false),
m_formatHasBeenSet(false),
m_outputKeysHasBeenSet(false),
m_hlsContentProtectionHasBeenSet(false),
m_playReadyDrmHasBeenSet(false)
{
}
CreateJobPlaylist::CreateJobPlaylist(JsonView jsonValue) :
m_nameHasBeenSet(false),
m_formatHasBeenSet(false),
m_outputKeysHasBeenSet(false),
m_hlsContentProtectionHasBeenSet(false),
m_playReadyDrmHasBeenSet(false)
{
*this = jsonValue;
}
CreateJobPlaylist& CreateJobPlaylist::operator =(JsonView jsonValue)
{
if(jsonValue.ValueExists("Name"))
{
m_name = jsonValue.GetString("Name");
m_nameHasBeenSet = true;
}
if(jsonValue.ValueExists("Format"))
{
m_format = jsonValue.GetString("Format");
m_formatHasBeenSet = true;
}
if(jsonValue.ValueExists("OutputKeys"))
{
Array<JsonView> outputKeysJsonList = jsonValue.GetArray("OutputKeys");
for(unsigned outputKeysIndex = 0; outputKeysIndex < outputKeysJsonList.GetLength(); ++outputKeysIndex)
{
m_outputKeys.push_back(outputKeysJsonList[outputKeysIndex].AsString());
}
m_outputKeysHasBeenSet = true;
}
if(jsonValue.ValueExists("HlsContentProtection"))
{
m_hlsContentProtection = jsonValue.GetObject("HlsContentProtection");
m_hlsContentProtectionHasBeenSet = true;
}
if(jsonValue.ValueExists("PlayReadyDrm"))
{
m_playReadyDrm = jsonValue.GetObject("PlayReadyDrm");
m_playReadyDrmHasBeenSet = true;
}
return *this;
}
JsonValue CreateJobPlaylist::Jsonize() const
{
JsonValue payload;
if(m_nameHasBeenSet)
{
payload.WithString("Name", m_name);
}
if(m_formatHasBeenSet)
{
payload.WithString("Format", m_format);
}
if(m_outputKeysHasBeenSet)
{
Array<JsonValue> outputKeysJsonList(m_outputKeys.size());
for(unsigned outputKeysIndex = 0; outputKeysIndex < outputKeysJsonList.GetLength(); ++outputKeysIndex)
{
outputKeysJsonList[outputKeysIndex].AsString(m_outputKeys[outputKeysIndex]);
}
payload.WithArray("OutputKeys", std::move(outputKeysJsonList));
}
if(m_hlsContentProtectionHasBeenSet)
{
payload.WithObject("HlsContentProtection", m_hlsContentProtection.Jsonize());
}
if(m_playReadyDrmHasBeenSet)
{
payload.WithObject("PlayReadyDrm", m_playReadyDrm.Jsonize());
}
return payload;
}
} // namespace Model
} // namespace ElasticTranscoder
} // namespace Aws

View File

@@ -0,0 +1,104 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#include <aws/elastictranscoder/model/CreateJobRequest.h>
#include <aws/core/utils/json/JsonSerializer.h>
#include <utility>
using namespace Aws::ElasticTranscoder::Model;
using namespace Aws::Utils::Json;
using namespace Aws::Utils;
CreateJobRequest::CreateJobRequest() :
m_pipelineIdHasBeenSet(false),
m_inputHasBeenSet(false),
m_inputsHasBeenSet(false),
m_outputHasBeenSet(false),
m_outputsHasBeenSet(false),
m_outputKeyPrefixHasBeenSet(false),
m_playlistsHasBeenSet(false),
m_userMetadataHasBeenSet(false)
{
}
Aws::String CreateJobRequest::SerializePayload() const
{
JsonValue payload;
if(m_pipelineIdHasBeenSet)
{
payload.WithString("PipelineId", m_pipelineId);
}
if(m_inputHasBeenSet)
{
payload.WithObject("Input", m_input.Jsonize());
}
if(m_inputsHasBeenSet)
{
Array<JsonValue> inputsJsonList(m_inputs.size());
for(unsigned inputsIndex = 0; inputsIndex < inputsJsonList.GetLength(); ++inputsIndex)
{
inputsJsonList[inputsIndex].AsObject(m_inputs[inputsIndex].Jsonize());
}
payload.WithArray("Inputs", std::move(inputsJsonList));
}
if(m_outputHasBeenSet)
{
payload.WithObject("Output", m_output.Jsonize());
}
if(m_outputsHasBeenSet)
{
Array<JsonValue> outputsJsonList(m_outputs.size());
for(unsigned outputsIndex = 0; outputsIndex < outputsJsonList.GetLength(); ++outputsIndex)
{
outputsJsonList[outputsIndex].AsObject(m_outputs[outputsIndex].Jsonize());
}
payload.WithArray("Outputs", std::move(outputsJsonList));
}
if(m_outputKeyPrefixHasBeenSet)
{
payload.WithString("OutputKeyPrefix", m_outputKeyPrefix);
}
if(m_playlistsHasBeenSet)
{
Array<JsonValue> playlistsJsonList(m_playlists.size());
for(unsigned playlistsIndex = 0; playlistsIndex < playlistsJsonList.GetLength(); ++playlistsIndex)
{
playlistsJsonList[playlistsIndex].AsObject(m_playlists[playlistsIndex].Jsonize());
}
payload.WithArray("Playlists", std::move(playlistsJsonList));
}
if(m_userMetadataHasBeenSet)
{
JsonValue userMetadataJsonMap;
for(auto& userMetadataItem : m_userMetadata)
{
userMetadataJsonMap.WithString(userMetadataItem.first, userMetadataItem.second);
}
payload.WithObject("UserMetadata", std::move(userMetadataJsonMap));
}
return payload.View().WriteReadable();
}

View File

@@ -0,0 +1,40 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#include <aws/elastictranscoder/model/CreateJobResult.h>
#include <aws/core/utils/json/JsonSerializer.h>
#include <aws/core/AmazonWebServiceResult.h>
#include <aws/core/utils/StringUtils.h>
#include <aws/core/utils/UnreferencedParam.h>
#include <utility>
using namespace Aws::ElasticTranscoder::Model;
using namespace Aws::Utils::Json;
using namespace Aws::Utils;
using namespace Aws;
CreateJobResult::CreateJobResult()
{
}
CreateJobResult::CreateJobResult(const Aws::AmazonWebServiceResult<JsonValue>& result)
{
*this = result;
}
CreateJobResult& CreateJobResult::operator =(const Aws::AmazonWebServiceResult<JsonValue>& result)
{
JsonView jsonValue = result.GetPayload().View();
if(jsonValue.ValueExists("Job"))
{
m_job = jsonValue.GetObject("Job");
}
return *this;
}

View File

@@ -0,0 +1,84 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#include <aws/elastictranscoder/model/CreatePipelineRequest.h>
#include <aws/core/utils/json/JsonSerializer.h>
#include <utility>
using namespace Aws::ElasticTranscoder::Model;
using namespace Aws::Utils::Json;
using namespace Aws::Utils;
CreatePipelineRequest::CreatePipelineRequest() :
m_nameHasBeenSet(false),
m_inputBucketHasBeenSet(false),
m_outputBucketHasBeenSet(false),
m_roleHasBeenSet(false),
m_awsKmsKeyArnHasBeenSet(false),
m_notificationsHasBeenSet(false),
m_contentConfigHasBeenSet(false),
m_thumbnailConfigHasBeenSet(false)
{
}
Aws::String CreatePipelineRequest::SerializePayload() const
{
JsonValue payload;
if(m_nameHasBeenSet)
{
payload.WithString("Name", m_name);
}
if(m_inputBucketHasBeenSet)
{
payload.WithString("InputBucket", m_inputBucket);
}
if(m_outputBucketHasBeenSet)
{
payload.WithString("OutputBucket", m_outputBucket);
}
if(m_roleHasBeenSet)
{
payload.WithString("Role", m_role);
}
if(m_awsKmsKeyArnHasBeenSet)
{
payload.WithString("AwsKmsKeyArn", m_awsKmsKeyArn);
}
if(m_notificationsHasBeenSet)
{
payload.WithObject("Notifications", m_notifications.Jsonize());
}
if(m_contentConfigHasBeenSet)
{
payload.WithObject("ContentConfig", m_contentConfig.Jsonize());
}
if(m_thumbnailConfigHasBeenSet)
{
payload.WithObject("ThumbnailConfig", m_thumbnailConfig.Jsonize());
}
return payload.View().WriteReadable();
}

View File

@@ -0,0 +1,49 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#include <aws/elastictranscoder/model/CreatePipelineResult.h>
#include <aws/core/utils/json/JsonSerializer.h>
#include <aws/core/AmazonWebServiceResult.h>
#include <aws/core/utils/StringUtils.h>
#include <aws/core/utils/UnreferencedParam.h>
#include <utility>
using namespace Aws::ElasticTranscoder::Model;
using namespace Aws::Utils::Json;
using namespace Aws::Utils;
using namespace Aws;
CreatePipelineResult::CreatePipelineResult()
{
}
CreatePipelineResult::CreatePipelineResult(const Aws::AmazonWebServiceResult<JsonValue>& result)
{
*this = result;
}
CreatePipelineResult& CreatePipelineResult::operator =(const Aws::AmazonWebServiceResult<JsonValue>& result)
{
JsonView jsonValue = result.GetPayload().View();
if(jsonValue.ValueExists("Pipeline"))
{
m_pipeline = jsonValue.GetObject("Pipeline");
}
if(jsonValue.ValueExists("Warnings"))
{
Array<JsonView> warningsJsonList = jsonValue.GetArray("Warnings");
for(unsigned warningsIndex = 0; warningsIndex < warningsJsonList.GetLength(); ++warningsIndex)
{
m_warnings.push_back(warningsJsonList[warningsIndex].AsObject());
}
}
return *this;
}

View File

@@ -0,0 +1,70 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#include <aws/elastictranscoder/model/CreatePresetRequest.h>
#include <aws/core/utils/json/JsonSerializer.h>
#include <utility>
using namespace Aws::ElasticTranscoder::Model;
using namespace Aws::Utils::Json;
using namespace Aws::Utils;
CreatePresetRequest::CreatePresetRequest() :
m_nameHasBeenSet(false),
m_descriptionHasBeenSet(false),
m_containerHasBeenSet(false),
m_videoHasBeenSet(false),
m_audioHasBeenSet(false),
m_thumbnailsHasBeenSet(false)
{
}
Aws::String CreatePresetRequest::SerializePayload() const
{
JsonValue payload;
if(m_nameHasBeenSet)
{
payload.WithString("Name", m_name);
}
if(m_descriptionHasBeenSet)
{
payload.WithString("Description", m_description);
}
if(m_containerHasBeenSet)
{
payload.WithString("Container", m_container);
}
if(m_videoHasBeenSet)
{
payload.WithObject("Video", m_video.Jsonize());
}
if(m_audioHasBeenSet)
{
payload.WithObject("Audio", m_audio.Jsonize());
}
if(m_thumbnailsHasBeenSet)
{
payload.WithObject("Thumbnails", m_thumbnails.Jsonize());
}
return payload.View().WriteReadable();
}

View File

@@ -0,0 +1,46 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#include <aws/elastictranscoder/model/CreatePresetResult.h>
#include <aws/core/utils/json/JsonSerializer.h>
#include <aws/core/AmazonWebServiceResult.h>
#include <aws/core/utils/StringUtils.h>
#include <aws/core/utils/UnreferencedParam.h>
#include <utility>
using namespace Aws::ElasticTranscoder::Model;
using namespace Aws::Utils::Json;
using namespace Aws::Utils;
using namespace Aws;
CreatePresetResult::CreatePresetResult()
{
}
CreatePresetResult::CreatePresetResult(const Aws::AmazonWebServiceResult<JsonValue>& result)
{
*this = result;
}
CreatePresetResult& CreatePresetResult::operator =(const Aws::AmazonWebServiceResult<JsonValue>& result)
{
JsonView jsonValue = result.GetPayload().View();
if(jsonValue.ValueExists("Preset"))
{
m_preset = jsonValue.GetObject("Preset");
}
if(jsonValue.ValueExists("Warning"))
{
m_warning = jsonValue.GetString("Warning");
}
return *this;
}

View File

@@ -0,0 +1,27 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#include <aws/elastictranscoder/model/DeletePipelineRequest.h>
#include <aws/core/utils/json/JsonSerializer.h>
#include <utility>
using namespace Aws::ElasticTranscoder::Model;
using namespace Aws::Utils::Json;
using namespace Aws::Utils;
DeletePipelineRequest::DeletePipelineRequest() :
m_idHasBeenSet(false)
{
}
Aws::String DeletePipelineRequest::SerializePayload() const
{
return {};
}

View File

@@ -0,0 +1,34 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#include <aws/elastictranscoder/model/DeletePipelineResult.h>
#include <aws/core/utils/json/JsonSerializer.h>
#include <aws/core/AmazonWebServiceResult.h>
#include <aws/core/utils/StringUtils.h>
#include <aws/core/utils/UnreferencedParam.h>
#include <utility>
using namespace Aws::ElasticTranscoder::Model;
using namespace Aws::Utils::Json;
using namespace Aws::Utils;
using namespace Aws;
DeletePipelineResult::DeletePipelineResult()
{
}
DeletePipelineResult::DeletePipelineResult(const Aws::AmazonWebServiceResult<JsonValue>& result)
{
*this = result;
}
DeletePipelineResult& DeletePipelineResult::operator =(const Aws::AmazonWebServiceResult<JsonValue>& result)
{
AWS_UNREFERENCED_PARAM(result);
return *this;
}

View File

@@ -0,0 +1,27 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#include <aws/elastictranscoder/model/DeletePresetRequest.h>
#include <aws/core/utils/json/JsonSerializer.h>
#include <utility>
using namespace Aws::ElasticTranscoder::Model;
using namespace Aws::Utils::Json;
using namespace Aws::Utils;
DeletePresetRequest::DeletePresetRequest() :
m_idHasBeenSet(false)
{
}
Aws::String DeletePresetRequest::SerializePayload() const
{
return {};
}

View File

@@ -0,0 +1,34 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#include <aws/elastictranscoder/model/DeletePresetResult.h>
#include <aws/core/utils/json/JsonSerializer.h>
#include <aws/core/AmazonWebServiceResult.h>
#include <aws/core/utils/StringUtils.h>
#include <aws/core/utils/UnreferencedParam.h>
#include <utility>
using namespace Aws::ElasticTranscoder::Model;
using namespace Aws::Utils::Json;
using namespace Aws::Utils;
using namespace Aws;
DeletePresetResult::DeletePresetResult()
{
}
DeletePresetResult::DeletePresetResult(const Aws::AmazonWebServiceResult<JsonValue>& result)
{
*this = result;
}
DeletePresetResult& DeletePresetResult::operator =(const Aws::AmazonWebServiceResult<JsonValue>& result)
{
AWS_UNREFERENCED_PARAM(result);
return *this;
}

View File

@@ -0,0 +1,127 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#include <aws/elastictranscoder/model/DetectedProperties.h>
#include <aws/core/utils/json/JsonSerializer.h>
#include <utility>
using namespace Aws::Utils::Json;
using namespace Aws::Utils;
namespace Aws
{
namespace ElasticTranscoder
{
namespace Model
{
DetectedProperties::DetectedProperties() :
m_width(0),
m_widthHasBeenSet(false),
m_height(0),
m_heightHasBeenSet(false),
m_frameRateHasBeenSet(false),
m_fileSize(0),
m_fileSizeHasBeenSet(false),
m_durationMillis(0),
m_durationMillisHasBeenSet(false)
{
}
DetectedProperties::DetectedProperties(JsonView jsonValue) :
m_width(0),
m_widthHasBeenSet(false),
m_height(0),
m_heightHasBeenSet(false),
m_frameRateHasBeenSet(false),
m_fileSize(0),
m_fileSizeHasBeenSet(false),
m_durationMillis(0),
m_durationMillisHasBeenSet(false)
{
*this = jsonValue;
}
DetectedProperties& DetectedProperties::operator =(JsonView jsonValue)
{
if(jsonValue.ValueExists("Width"))
{
m_width = jsonValue.GetInteger("Width");
m_widthHasBeenSet = true;
}
if(jsonValue.ValueExists("Height"))
{
m_height = jsonValue.GetInteger("Height");
m_heightHasBeenSet = true;
}
if(jsonValue.ValueExists("FrameRate"))
{
m_frameRate = jsonValue.GetString("FrameRate");
m_frameRateHasBeenSet = true;
}
if(jsonValue.ValueExists("FileSize"))
{
m_fileSize = jsonValue.GetInt64("FileSize");
m_fileSizeHasBeenSet = true;
}
if(jsonValue.ValueExists("DurationMillis"))
{
m_durationMillis = jsonValue.GetInt64("DurationMillis");
m_durationMillisHasBeenSet = true;
}
return *this;
}
JsonValue DetectedProperties::Jsonize() const
{
JsonValue payload;
if(m_widthHasBeenSet)
{
payload.WithInteger("Width", m_width);
}
if(m_heightHasBeenSet)
{
payload.WithInteger("Height", m_height);
}
if(m_frameRateHasBeenSet)
{
payload.WithString("FrameRate", m_frameRate);
}
if(m_fileSizeHasBeenSet)
{
payload.WithInt64("FileSize", m_fileSize);
}
if(m_durationMillisHasBeenSet)
{
payload.WithInt64("DurationMillis", m_durationMillis);
}
return payload;
}
} // namespace Model
} // namespace ElasticTranscoder
} // namespace Aws

View File

@@ -0,0 +1,104 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#include <aws/elastictranscoder/model/Encryption.h>
#include <aws/core/utils/json/JsonSerializer.h>
#include <utility>
using namespace Aws::Utils::Json;
using namespace Aws::Utils;
namespace Aws
{
namespace ElasticTranscoder
{
namespace Model
{
Encryption::Encryption() :
m_modeHasBeenSet(false),
m_keyHasBeenSet(false),
m_keyMd5HasBeenSet(false),
m_initializationVectorHasBeenSet(false)
{
}
Encryption::Encryption(JsonView jsonValue) :
m_modeHasBeenSet(false),
m_keyHasBeenSet(false),
m_keyMd5HasBeenSet(false),
m_initializationVectorHasBeenSet(false)
{
*this = jsonValue;
}
Encryption& Encryption::operator =(JsonView jsonValue)
{
if(jsonValue.ValueExists("Mode"))
{
m_mode = jsonValue.GetString("Mode");
m_modeHasBeenSet = true;
}
if(jsonValue.ValueExists("Key"))
{
m_key = jsonValue.GetString("Key");
m_keyHasBeenSet = true;
}
if(jsonValue.ValueExists("KeyMd5"))
{
m_keyMd5 = jsonValue.GetString("KeyMd5");
m_keyMd5HasBeenSet = true;
}
if(jsonValue.ValueExists("InitializationVector"))
{
m_initializationVector = jsonValue.GetString("InitializationVector");
m_initializationVectorHasBeenSet = true;
}
return *this;
}
JsonValue Encryption::Jsonize() const
{
JsonValue payload;
if(m_modeHasBeenSet)
{
payload.WithString("Mode", m_mode);
}
if(m_keyHasBeenSet)
{
payload.WithString("Key", m_key);
}
if(m_keyMd5HasBeenSet)
{
payload.WithString("KeyMd5", m_keyMd5);
}
if(m_initializationVectorHasBeenSet)
{
payload.WithString("InitializationVector", m_initializationVector);
}
return payload;
}
} // namespace Model
} // namespace ElasticTranscoder
} // namespace Aws

View File

@@ -0,0 +1,134 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#include <aws/elastictranscoder/model/HlsContentProtection.h>
#include <aws/core/utils/json/JsonSerializer.h>
#include <utility>
using namespace Aws::Utils::Json;
using namespace Aws::Utils;
namespace Aws
{
namespace ElasticTranscoder
{
namespace Model
{
HlsContentProtection::HlsContentProtection() :
m_methodHasBeenSet(false),
m_keyHasBeenSet(false),
m_keyMd5HasBeenSet(false),
m_initializationVectorHasBeenSet(false),
m_licenseAcquisitionUrlHasBeenSet(false),
m_keyStoragePolicyHasBeenSet(false)
{
}
HlsContentProtection::HlsContentProtection(JsonView jsonValue) :
m_methodHasBeenSet(false),
m_keyHasBeenSet(false),
m_keyMd5HasBeenSet(false),
m_initializationVectorHasBeenSet(false),
m_licenseAcquisitionUrlHasBeenSet(false),
m_keyStoragePolicyHasBeenSet(false)
{
*this = jsonValue;
}
HlsContentProtection& HlsContentProtection::operator =(JsonView jsonValue)
{
if(jsonValue.ValueExists("Method"))
{
m_method = jsonValue.GetString("Method");
m_methodHasBeenSet = true;
}
if(jsonValue.ValueExists("Key"))
{
m_key = jsonValue.GetString("Key");
m_keyHasBeenSet = true;
}
if(jsonValue.ValueExists("KeyMd5"))
{
m_keyMd5 = jsonValue.GetString("KeyMd5");
m_keyMd5HasBeenSet = true;
}
if(jsonValue.ValueExists("InitializationVector"))
{
m_initializationVector = jsonValue.GetString("InitializationVector");
m_initializationVectorHasBeenSet = true;
}
if(jsonValue.ValueExists("LicenseAcquisitionUrl"))
{
m_licenseAcquisitionUrl = jsonValue.GetString("LicenseAcquisitionUrl");
m_licenseAcquisitionUrlHasBeenSet = true;
}
if(jsonValue.ValueExists("KeyStoragePolicy"))
{
m_keyStoragePolicy = jsonValue.GetString("KeyStoragePolicy");
m_keyStoragePolicyHasBeenSet = true;
}
return *this;
}
JsonValue HlsContentProtection::Jsonize() const
{
JsonValue payload;
if(m_methodHasBeenSet)
{
payload.WithString("Method", m_method);
}
if(m_keyHasBeenSet)
{
payload.WithString("Key", m_key);
}
if(m_keyMd5HasBeenSet)
{
payload.WithString("KeyMd5", m_keyMd5);
}
if(m_initializationVectorHasBeenSet)
{
payload.WithString("InitializationVector", m_initializationVector);
}
if(m_licenseAcquisitionUrlHasBeenSet)
{
payload.WithString("LicenseAcquisitionUrl", m_licenseAcquisitionUrl);
}
if(m_keyStoragePolicyHasBeenSet)
{
payload.WithString("KeyStoragePolicy", m_keyStoragePolicy);
}
return payload;
}
} // namespace Model
} // namespace ElasticTranscoder
} // namespace Aws

View File

@@ -0,0 +1,82 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#include <aws/elastictranscoder/model/InputCaptions.h>
#include <aws/core/utils/json/JsonSerializer.h>
#include <utility>
using namespace Aws::Utils::Json;
using namespace Aws::Utils;
namespace Aws
{
namespace ElasticTranscoder
{
namespace Model
{
InputCaptions::InputCaptions() :
m_mergePolicyHasBeenSet(false),
m_captionSourcesHasBeenSet(false)
{
}
InputCaptions::InputCaptions(JsonView jsonValue) :
m_mergePolicyHasBeenSet(false),
m_captionSourcesHasBeenSet(false)
{
*this = jsonValue;
}
InputCaptions& InputCaptions::operator =(JsonView jsonValue)
{
if(jsonValue.ValueExists("MergePolicy"))
{
m_mergePolicy = jsonValue.GetString("MergePolicy");
m_mergePolicyHasBeenSet = true;
}
if(jsonValue.ValueExists("CaptionSources"))
{
Array<JsonView> captionSourcesJsonList = jsonValue.GetArray("CaptionSources");
for(unsigned captionSourcesIndex = 0; captionSourcesIndex < captionSourcesJsonList.GetLength(); ++captionSourcesIndex)
{
m_captionSources.push_back(captionSourcesJsonList[captionSourcesIndex].AsObject());
}
m_captionSourcesHasBeenSet = true;
}
return *this;
}
JsonValue InputCaptions::Jsonize() const
{
JsonValue payload;
if(m_mergePolicyHasBeenSet)
{
payload.WithString("MergePolicy", m_mergePolicy);
}
if(m_captionSourcesHasBeenSet)
{
Array<JsonValue> captionSourcesJsonList(m_captionSources.size());
for(unsigned captionSourcesIndex = 0; captionSourcesIndex < captionSourcesJsonList.GetLength(); ++captionSourcesIndex)
{
captionSourcesJsonList[captionSourcesIndex].AsObject(m_captionSources[captionSourcesIndex].Jsonize());
}
payload.WithArray("CaptionSources", std::move(captionSourcesJsonList));
}
return payload;
}
} // namespace Model
} // namespace ElasticTranscoder
} // namespace Aws

View File

@@ -0,0 +1,256 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#include <aws/elastictranscoder/model/Job.h>
#include <aws/core/utils/json/JsonSerializer.h>
#include <utility>
using namespace Aws::Utils::Json;
using namespace Aws::Utils;
namespace Aws
{
namespace ElasticTranscoder
{
namespace Model
{
Job::Job() :
m_idHasBeenSet(false),
m_arnHasBeenSet(false),
m_pipelineIdHasBeenSet(false),
m_inputHasBeenSet(false),
m_inputsHasBeenSet(false),
m_outputHasBeenSet(false),
m_outputsHasBeenSet(false),
m_outputKeyPrefixHasBeenSet(false),
m_playlistsHasBeenSet(false),
m_statusHasBeenSet(false),
m_userMetadataHasBeenSet(false),
m_timingHasBeenSet(false)
{
}
Job::Job(JsonView jsonValue) :
m_idHasBeenSet(false),
m_arnHasBeenSet(false),
m_pipelineIdHasBeenSet(false),
m_inputHasBeenSet(false),
m_inputsHasBeenSet(false),
m_outputHasBeenSet(false),
m_outputsHasBeenSet(false),
m_outputKeyPrefixHasBeenSet(false),
m_playlistsHasBeenSet(false),
m_statusHasBeenSet(false),
m_userMetadataHasBeenSet(false),
m_timingHasBeenSet(false)
{
*this = jsonValue;
}
Job& Job::operator =(JsonView jsonValue)
{
if(jsonValue.ValueExists("Id"))
{
m_id = jsonValue.GetString("Id");
m_idHasBeenSet = true;
}
if(jsonValue.ValueExists("Arn"))
{
m_arn = jsonValue.GetString("Arn");
m_arnHasBeenSet = true;
}
if(jsonValue.ValueExists("PipelineId"))
{
m_pipelineId = jsonValue.GetString("PipelineId");
m_pipelineIdHasBeenSet = true;
}
if(jsonValue.ValueExists("Input"))
{
m_input = jsonValue.GetObject("Input");
m_inputHasBeenSet = true;
}
if(jsonValue.ValueExists("Inputs"))
{
Array<JsonView> inputsJsonList = jsonValue.GetArray("Inputs");
for(unsigned inputsIndex = 0; inputsIndex < inputsJsonList.GetLength(); ++inputsIndex)
{
m_inputs.push_back(inputsJsonList[inputsIndex].AsObject());
}
m_inputsHasBeenSet = true;
}
if(jsonValue.ValueExists("Output"))
{
m_output = jsonValue.GetObject("Output");
m_outputHasBeenSet = true;
}
if(jsonValue.ValueExists("Outputs"))
{
Array<JsonView> outputsJsonList = jsonValue.GetArray("Outputs");
for(unsigned outputsIndex = 0; outputsIndex < outputsJsonList.GetLength(); ++outputsIndex)
{
m_outputs.push_back(outputsJsonList[outputsIndex].AsObject());
}
m_outputsHasBeenSet = true;
}
if(jsonValue.ValueExists("OutputKeyPrefix"))
{
m_outputKeyPrefix = jsonValue.GetString("OutputKeyPrefix");
m_outputKeyPrefixHasBeenSet = true;
}
if(jsonValue.ValueExists("Playlists"))
{
Array<JsonView> playlistsJsonList = jsonValue.GetArray("Playlists");
for(unsigned playlistsIndex = 0; playlistsIndex < playlistsJsonList.GetLength(); ++playlistsIndex)
{
m_playlists.push_back(playlistsJsonList[playlistsIndex].AsObject());
}
m_playlistsHasBeenSet = true;
}
if(jsonValue.ValueExists("Status"))
{
m_status = jsonValue.GetString("Status");
m_statusHasBeenSet = true;
}
if(jsonValue.ValueExists("UserMetadata"))
{
Aws::Map<Aws::String, JsonView> userMetadataJsonMap = jsonValue.GetObject("UserMetadata").GetAllObjects();
for(auto& userMetadataItem : userMetadataJsonMap)
{
m_userMetadata[userMetadataItem.first] = userMetadataItem.second.AsString();
}
m_userMetadataHasBeenSet = true;
}
if(jsonValue.ValueExists("Timing"))
{
m_timing = jsonValue.GetObject("Timing");
m_timingHasBeenSet = true;
}
return *this;
}
JsonValue Job::Jsonize() const
{
JsonValue payload;
if(m_idHasBeenSet)
{
payload.WithString("Id", m_id);
}
if(m_arnHasBeenSet)
{
payload.WithString("Arn", m_arn);
}
if(m_pipelineIdHasBeenSet)
{
payload.WithString("PipelineId", m_pipelineId);
}
if(m_inputHasBeenSet)
{
payload.WithObject("Input", m_input.Jsonize());
}
if(m_inputsHasBeenSet)
{
Array<JsonValue> inputsJsonList(m_inputs.size());
for(unsigned inputsIndex = 0; inputsIndex < inputsJsonList.GetLength(); ++inputsIndex)
{
inputsJsonList[inputsIndex].AsObject(m_inputs[inputsIndex].Jsonize());
}
payload.WithArray("Inputs", std::move(inputsJsonList));
}
if(m_outputHasBeenSet)
{
payload.WithObject("Output", m_output.Jsonize());
}
if(m_outputsHasBeenSet)
{
Array<JsonValue> outputsJsonList(m_outputs.size());
for(unsigned outputsIndex = 0; outputsIndex < outputsJsonList.GetLength(); ++outputsIndex)
{
outputsJsonList[outputsIndex].AsObject(m_outputs[outputsIndex].Jsonize());
}
payload.WithArray("Outputs", std::move(outputsJsonList));
}
if(m_outputKeyPrefixHasBeenSet)
{
payload.WithString("OutputKeyPrefix", m_outputKeyPrefix);
}
if(m_playlistsHasBeenSet)
{
Array<JsonValue> playlistsJsonList(m_playlists.size());
for(unsigned playlistsIndex = 0; playlistsIndex < playlistsJsonList.GetLength(); ++playlistsIndex)
{
playlistsJsonList[playlistsIndex].AsObject(m_playlists[playlistsIndex].Jsonize());
}
payload.WithArray("Playlists", std::move(playlistsJsonList));
}
if(m_statusHasBeenSet)
{
payload.WithString("Status", m_status);
}
if(m_userMetadataHasBeenSet)
{
JsonValue userMetadataJsonMap;
for(auto& userMetadataItem : m_userMetadata)
{
userMetadataJsonMap.WithString(userMetadataItem.first, userMetadataItem.second);
}
payload.WithObject("UserMetadata", std::move(userMetadataJsonMap));
}
if(m_timingHasBeenSet)
{
payload.WithObject("Timing", m_timing.Jsonize());
}
return payload;
}
} // namespace Model
} // namespace ElasticTranscoder
} // namespace Aws

View File

@@ -0,0 +1,82 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#include <aws/elastictranscoder/model/JobAlbumArt.h>
#include <aws/core/utils/json/JsonSerializer.h>
#include <utility>
using namespace Aws::Utils::Json;
using namespace Aws::Utils;
namespace Aws
{
namespace ElasticTranscoder
{
namespace Model
{
JobAlbumArt::JobAlbumArt() :
m_mergePolicyHasBeenSet(false),
m_artworkHasBeenSet(false)
{
}
JobAlbumArt::JobAlbumArt(JsonView jsonValue) :
m_mergePolicyHasBeenSet(false),
m_artworkHasBeenSet(false)
{
*this = jsonValue;
}
JobAlbumArt& JobAlbumArt::operator =(JsonView jsonValue)
{
if(jsonValue.ValueExists("MergePolicy"))
{
m_mergePolicy = jsonValue.GetString("MergePolicy");
m_mergePolicyHasBeenSet = true;
}
if(jsonValue.ValueExists("Artwork"))
{
Array<JsonView> artworkJsonList = jsonValue.GetArray("Artwork");
for(unsigned artworkIndex = 0; artworkIndex < artworkJsonList.GetLength(); ++artworkIndex)
{
m_artwork.push_back(artworkJsonList[artworkIndex].AsObject());
}
m_artworkHasBeenSet = true;
}
return *this;
}
JsonValue JobAlbumArt::Jsonize() const
{
JsonValue payload;
if(m_mergePolicyHasBeenSet)
{
payload.WithString("MergePolicy", m_mergePolicy);
}
if(m_artworkHasBeenSet)
{
Array<JsonValue> artworkJsonList(m_artwork.size());
for(unsigned artworkIndex = 0; artworkIndex < artworkJsonList.GetLength(); ++artworkIndex)
{
artworkJsonList[artworkIndex].AsObject(m_artwork[artworkIndex].Jsonize());
}
payload.WithArray("Artwork", std::move(artworkJsonList));
}
return payload;
}
} // namespace Model
} // namespace ElasticTranscoder
} // namespace Aws

View File

@@ -0,0 +1,194 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#include <aws/elastictranscoder/model/JobInput.h>
#include <aws/core/utils/json/JsonSerializer.h>
#include <utility>
using namespace Aws::Utils::Json;
using namespace Aws::Utils;
namespace Aws
{
namespace ElasticTranscoder
{
namespace Model
{
JobInput::JobInput() :
m_keyHasBeenSet(false),
m_frameRateHasBeenSet(false),
m_resolutionHasBeenSet(false),
m_aspectRatioHasBeenSet(false),
m_interlacedHasBeenSet(false),
m_containerHasBeenSet(false),
m_encryptionHasBeenSet(false),
m_timeSpanHasBeenSet(false),
m_inputCaptionsHasBeenSet(false),
m_detectedPropertiesHasBeenSet(false)
{
}
JobInput::JobInput(JsonView jsonValue) :
m_keyHasBeenSet(false),
m_frameRateHasBeenSet(false),
m_resolutionHasBeenSet(false),
m_aspectRatioHasBeenSet(false),
m_interlacedHasBeenSet(false),
m_containerHasBeenSet(false),
m_encryptionHasBeenSet(false),
m_timeSpanHasBeenSet(false),
m_inputCaptionsHasBeenSet(false),
m_detectedPropertiesHasBeenSet(false)
{
*this = jsonValue;
}
JobInput& JobInput::operator =(JsonView jsonValue)
{
if(jsonValue.ValueExists("Key"))
{
m_key = jsonValue.GetString("Key");
m_keyHasBeenSet = true;
}
if(jsonValue.ValueExists("FrameRate"))
{
m_frameRate = jsonValue.GetString("FrameRate");
m_frameRateHasBeenSet = true;
}
if(jsonValue.ValueExists("Resolution"))
{
m_resolution = jsonValue.GetString("Resolution");
m_resolutionHasBeenSet = true;
}
if(jsonValue.ValueExists("AspectRatio"))
{
m_aspectRatio = jsonValue.GetString("AspectRatio");
m_aspectRatioHasBeenSet = true;
}
if(jsonValue.ValueExists("Interlaced"))
{
m_interlaced = jsonValue.GetString("Interlaced");
m_interlacedHasBeenSet = true;
}
if(jsonValue.ValueExists("Container"))
{
m_container = jsonValue.GetString("Container");
m_containerHasBeenSet = true;
}
if(jsonValue.ValueExists("Encryption"))
{
m_encryption = jsonValue.GetObject("Encryption");
m_encryptionHasBeenSet = true;
}
if(jsonValue.ValueExists("TimeSpan"))
{
m_timeSpan = jsonValue.GetObject("TimeSpan");
m_timeSpanHasBeenSet = true;
}
if(jsonValue.ValueExists("InputCaptions"))
{
m_inputCaptions = jsonValue.GetObject("InputCaptions");
m_inputCaptionsHasBeenSet = true;
}
if(jsonValue.ValueExists("DetectedProperties"))
{
m_detectedProperties = jsonValue.GetObject("DetectedProperties");
m_detectedPropertiesHasBeenSet = true;
}
return *this;
}
JsonValue JobInput::Jsonize() const
{
JsonValue payload;
if(m_keyHasBeenSet)
{
payload.WithString("Key", m_key);
}
if(m_frameRateHasBeenSet)
{
payload.WithString("FrameRate", m_frameRate);
}
if(m_resolutionHasBeenSet)
{
payload.WithString("Resolution", m_resolution);
}
if(m_aspectRatioHasBeenSet)
{
payload.WithString("AspectRatio", m_aspectRatio);
}
if(m_interlacedHasBeenSet)
{
payload.WithString("Interlaced", m_interlaced);
}
if(m_containerHasBeenSet)
{
payload.WithString("Container", m_container);
}
if(m_encryptionHasBeenSet)
{
payload.WithObject("Encryption", m_encryption.Jsonize());
}
if(m_timeSpanHasBeenSet)
{
payload.WithObject("TimeSpan", m_timeSpan.Jsonize());
}
if(m_inputCaptionsHasBeenSet)
{
payload.WithObject("InputCaptions", m_inputCaptions.Jsonize());
}
if(m_detectedPropertiesHasBeenSet)
{
payload.WithObject("DetectedProperties", m_detectedProperties.Jsonize());
}
return payload;
}
} // namespace Model
} // namespace ElasticTranscoder
} // namespace Aws

View File

@@ -0,0 +1,362 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#include <aws/elastictranscoder/model/JobOutput.h>
#include <aws/core/utils/json/JsonSerializer.h>
#include <utility>
using namespace Aws::Utils::Json;
using namespace Aws::Utils;
namespace Aws
{
namespace ElasticTranscoder
{
namespace Model
{
JobOutput::JobOutput() :
m_idHasBeenSet(false),
m_keyHasBeenSet(false),
m_thumbnailPatternHasBeenSet(false),
m_thumbnailEncryptionHasBeenSet(false),
m_rotateHasBeenSet(false),
m_presetIdHasBeenSet(false),
m_segmentDurationHasBeenSet(false),
m_statusHasBeenSet(false),
m_statusDetailHasBeenSet(false),
m_duration(0),
m_durationHasBeenSet(false),
m_width(0),
m_widthHasBeenSet(false),
m_height(0),
m_heightHasBeenSet(false),
m_frameRateHasBeenSet(false),
m_fileSize(0),
m_fileSizeHasBeenSet(false),
m_durationMillis(0),
m_durationMillisHasBeenSet(false),
m_watermarksHasBeenSet(false),
m_albumArtHasBeenSet(false),
m_captionsHasBeenSet(false),
m_encryptionHasBeenSet(false),
m_appliedColorSpaceConversionHasBeenSet(false)
{
}
JobOutput::JobOutput(JsonView jsonValue) :
m_idHasBeenSet(false),
m_keyHasBeenSet(false),
m_thumbnailPatternHasBeenSet(false),
m_thumbnailEncryptionHasBeenSet(false),
m_rotateHasBeenSet(false),
m_presetIdHasBeenSet(false),
m_segmentDurationHasBeenSet(false),
m_statusHasBeenSet(false),
m_statusDetailHasBeenSet(false),
m_duration(0),
m_durationHasBeenSet(false),
m_width(0),
m_widthHasBeenSet(false),
m_height(0),
m_heightHasBeenSet(false),
m_frameRateHasBeenSet(false),
m_fileSize(0),
m_fileSizeHasBeenSet(false),
m_durationMillis(0),
m_durationMillisHasBeenSet(false),
m_watermarksHasBeenSet(false),
m_albumArtHasBeenSet(false),
m_captionsHasBeenSet(false),
m_encryptionHasBeenSet(false),
m_appliedColorSpaceConversionHasBeenSet(false)
{
*this = jsonValue;
}
JobOutput& JobOutput::operator =(JsonView jsonValue)
{
if(jsonValue.ValueExists("Id"))
{
m_id = jsonValue.GetString("Id");
m_idHasBeenSet = true;
}
if(jsonValue.ValueExists("Key"))
{
m_key = jsonValue.GetString("Key");
m_keyHasBeenSet = true;
}
if(jsonValue.ValueExists("ThumbnailPattern"))
{
m_thumbnailPattern = jsonValue.GetString("ThumbnailPattern");
m_thumbnailPatternHasBeenSet = true;
}
if(jsonValue.ValueExists("ThumbnailEncryption"))
{
m_thumbnailEncryption = jsonValue.GetObject("ThumbnailEncryption");
m_thumbnailEncryptionHasBeenSet = true;
}
if(jsonValue.ValueExists("Rotate"))
{
m_rotate = jsonValue.GetString("Rotate");
m_rotateHasBeenSet = true;
}
if(jsonValue.ValueExists("PresetId"))
{
m_presetId = jsonValue.GetString("PresetId");
m_presetIdHasBeenSet = true;
}
if(jsonValue.ValueExists("SegmentDuration"))
{
m_segmentDuration = jsonValue.GetString("SegmentDuration");
m_segmentDurationHasBeenSet = true;
}
if(jsonValue.ValueExists("Status"))
{
m_status = jsonValue.GetString("Status");
m_statusHasBeenSet = true;
}
if(jsonValue.ValueExists("StatusDetail"))
{
m_statusDetail = jsonValue.GetString("StatusDetail");
m_statusDetailHasBeenSet = true;
}
if(jsonValue.ValueExists("Duration"))
{
m_duration = jsonValue.GetInt64("Duration");
m_durationHasBeenSet = true;
}
if(jsonValue.ValueExists("Width"))
{
m_width = jsonValue.GetInteger("Width");
m_widthHasBeenSet = true;
}
if(jsonValue.ValueExists("Height"))
{
m_height = jsonValue.GetInteger("Height");
m_heightHasBeenSet = true;
}
if(jsonValue.ValueExists("FrameRate"))
{
m_frameRate = jsonValue.GetString("FrameRate");
m_frameRateHasBeenSet = true;
}
if(jsonValue.ValueExists("FileSize"))
{
m_fileSize = jsonValue.GetInt64("FileSize");
m_fileSizeHasBeenSet = true;
}
if(jsonValue.ValueExists("DurationMillis"))
{
m_durationMillis = jsonValue.GetInt64("DurationMillis");
m_durationMillisHasBeenSet = true;
}
if(jsonValue.ValueExists("Watermarks"))
{
Array<JsonView> watermarksJsonList = jsonValue.GetArray("Watermarks");
for(unsigned watermarksIndex = 0; watermarksIndex < watermarksJsonList.GetLength(); ++watermarksIndex)
{
m_watermarks.push_back(watermarksJsonList[watermarksIndex].AsObject());
}
m_watermarksHasBeenSet = true;
}
if(jsonValue.ValueExists("AlbumArt"))
{
m_albumArt = jsonValue.GetObject("AlbumArt");
m_albumArtHasBeenSet = true;
}
if(jsonValue.ValueExists("Captions"))
{
m_captions = jsonValue.GetObject("Captions");
m_captionsHasBeenSet = true;
}
if(jsonValue.ValueExists("Encryption"))
{
m_encryption = jsonValue.GetObject("Encryption");
m_encryptionHasBeenSet = true;
}
if(jsonValue.ValueExists("AppliedColorSpaceConversion"))
{
m_appliedColorSpaceConversion = jsonValue.GetString("AppliedColorSpaceConversion");
m_appliedColorSpaceConversionHasBeenSet = true;
}
return *this;
}
JsonValue JobOutput::Jsonize() const
{
JsonValue payload;
if(m_idHasBeenSet)
{
payload.WithString("Id", m_id);
}
if(m_keyHasBeenSet)
{
payload.WithString("Key", m_key);
}
if(m_thumbnailPatternHasBeenSet)
{
payload.WithString("ThumbnailPattern", m_thumbnailPattern);
}
if(m_thumbnailEncryptionHasBeenSet)
{
payload.WithObject("ThumbnailEncryption", m_thumbnailEncryption.Jsonize());
}
if(m_rotateHasBeenSet)
{
payload.WithString("Rotate", m_rotate);
}
if(m_presetIdHasBeenSet)
{
payload.WithString("PresetId", m_presetId);
}
if(m_segmentDurationHasBeenSet)
{
payload.WithString("SegmentDuration", m_segmentDuration);
}
if(m_statusHasBeenSet)
{
payload.WithString("Status", m_status);
}
if(m_statusDetailHasBeenSet)
{
payload.WithString("StatusDetail", m_statusDetail);
}
if(m_durationHasBeenSet)
{
payload.WithInt64("Duration", m_duration);
}
if(m_widthHasBeenSet)
{
payload.WithInteger("Width", m_width);
}
if(m_heightHasBeenSet)
{
payload.WithInteger("Height", m_height);
}
if(m_frameRateHasBeenSet)
{
payload.WithString("FrameRate", m_frameRate);
}
if(m_fileSizeHasBeenSet)
{
payload.WithInt64("FileSize", m_fileSize);
}
if(m_durationMillisHasBeenSet)
{
payload.WithInt64("DurationMillis", m_durationMillis);
}
if(m_watermarksHasBeenSet)
{
Array<JsonValue> watermarksJsonList(m_watermarks.size());
for(unsigned watermarksIndex = 0; watermarksIndex < watermarksJsonList.GetLength(); ++watermarksIndex)
{
watermarksJsonList[watermarksIndex].AsObject(m_watermarks[watermarksIndex].Jsonize());
}
payload.WithArray("Watermarks", std::move(watermarksJsonList));
}
if(m_albumArtHasBeenSet)
{
payload.WithObject("AlbumArt", m_albumArt.Jsonize());
}
if(m_captionsHasBeenSet)
{
payload.WithObject("Captions", m_captions.Jsonize());
}
if(m_encryptionHasBeenSet)
{
payload.WithObject("Encryption", m_encryption.Jsonize());
}
if(m_appliedColorSpaceConversionHasBeenSet)
{
payload.WithString("AppliedColorSpaceConversion", m_appliedColorSpaceConversion);
}
return payload;
}
} // namespace Model
} // namespace ElasticTranscoder
} // namespace Aws

View File

@@ -0,0 +1,89 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#include <aws/elastictranscoder/model/JobWatermark.h>
#include <aws/core/utils/json/JsonSerializer.h>
#include <utility>
using namespace Aws::Utils::Json;
using namespace Aws::Utils;
namespace Aws
{
namespace ElasticTranscoder
{
namespace Model
{
JobWatermark::JobWatermark() :
m_presetWatermarkIdHasBeenSet(false),
m_inputKeyHasBeenSet(false),
m_encryptionHasBeenSet(false)
{
}
JobWatermark::JobWatermark(JsonView jsonValue) :
m_presetWatermarkIdHasBeenSet(false),
m_inputKeyHasBeenSet(false),
m_encryptionHasBeenSet(false)
{
*this = jsonValue;
}
JobWatermark& JobWatermark::operator =(JsonView jsonValue)
{
if(jsonValue.ValueExists("PresetWatermarkId"))
{
m_presetWatermarkId = jsonValue.GetString("PresetWatermarkId");
m_presetWatermarkIdHasBeenSet = true;
}
if(jsonValue.ValueExists("InputKey"))
{
m_inputKey = jsonValue.GetString("InputKey");
m_inputKeyHasBeenSet = true;
}
if(jsonValue.ValueExists("Encryption"))
{
m_encryption = jsonValue.GetObject("Encryption");
m_encryptionHasBeenSet = true;
}
return *this;
}
JsonValue JobWatermark::Jsonize() const
{
JsonValue payload;
if(m_presetWatermarkIdHasBeenSet)
{
payload.WithString("PresetWatermarkId", m_presetWatermarkId);
}
if(m_inputKeyHasBeenSet)
{
payload.WithString("InputKey", m_inputKey);
}
if(m_encryptionHasBeenSet)
{
payload.WithObject("Encryption", m_encryption.Jsonize());
}
return payload;
}
} // namespace Model
} // namespace ElasticTranscoder
} // namespace Aws

View File

@@ -0,0 +1,50 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#include <aws/elastictranscoder/model/ListJobsByPipelineRequest.h>
#include <aws/core/utils/json/JsonSerializer.h>
#include <aws/core/http/URI.h>
#include <aws/core/utils/memory/stl/AWSStringStream.h>
#include <utility>
using namespace Aws::ElasticTranscoder::Model;
using namespace Aws::Utils::Json;
using namespace Aws::Utils;
using namespace Aws::Http;
ListJobsByPipelineRequest::ListJobsByPipelineRequest() :
m_pipelineIdHasBeenSet(false),
m_ascendingHasBeenSet(false),
m_pageTokenHasBeenSet(false)
{
}
Aws::String ListJobsByPipelineRequest::SerializePayload() const
{
return {};
}
void ListJobsByPipelineRequest::AddQueryStringParameters(URI& uri) const
{
Aws::StringStream ss;
if(m_ascendingHasBeenSet)
{
ss << m_ascending;
uri.AddQueryStringParameter("Ascending", ss.str());
ss.str("");
}
if(m_pageTokenHasBeenSet)
{
ss << m_pageToken;
uri.AddQueryStringParameter("PageToken", ss.str());
ss.str("");
}
}

View File

@@ -0,0 +1,49 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#include <aws/elastictranscoder/model/ListJobsByPipelineResult.h>
#include <aws/core/utils/json/JsonSerializer.h>
#include <aws/core/AmazonWebServiceResult.h>
#include <aws/core/utils/StringUtils.h>
#include <aws/core/utils/UnreferencedParam.h>
#include <utility>
using namespace Aws::ElasticTranscoder::Model;
using namespace Aws::Utils::Json;
using namespace Aws::Utils;
using namespace Aws;
ListJobsByPipelineResult::ListJobsByPipelineResult()
{
}
ListJobsByPipelineResult::ListJobsByPipelineResult(const Aws::AmazonWebServiceResult<JsonValue>& result)
{
*this = result;
}
ListJobsByPipelineResult& ListJobsByPipelineResult::operator =(const Aws::AmazonWebServiceResult<JsonValue>& result)
{
JsonView jsonValue = result.GetPayload().View();
if(jsonValue.ValueExists("Jobs"))
{
Array<JsonView> jobsJsonList = jsonValue.GetArray("Jobs");
for(unsigned jobsIndex = 0; jobsIndex < jobsJsonList.GetLength(); ++jobsIndex)
{
m_jobs.push_back(jobsJsonList[jobsIndex].AsObject());
}
}
if(jsonValue.ValueExists("NextPageToken"))
{
m_nextPageToken = jsonValue.GetString("NextPageToken");
}
return *this;
}

View File

@@ -0,0 +1,50 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#include <aws/elastictranscoder/model/ListJobsByStatusRequest.h>
#include <aws/core/utils/json/JsonSerializer.h>
#include <aws/core/http/URI.h>
#include <aws/core/utils/memory/stl/AWSStringStream.h>
#include <utility>
using namespace Aws::ElasticTranscoder::Model;
using namespace Aws::Utils::Json;
using namespace Aws::Utils;
using namespace Aws::Http;
ListJobsByStatusRequest::ListJobsByStatusRequest() :
m_statusHasBeenSet(false),
m_ascendingHasBeenSet(false),
m_pageTokenHasBeenSet(false)
{
}
Aws::String ListJobsByStatusRequest::SerializePayload() const
{
return {};
}
void ListJobsByStatusRequest::AddQueryStringParameters(URI& uri) const
{
Aws::StringStream ss;
if(m_ascendingHasBeenSet)
{
ss << m_ascending;
uri.AddQueryStringParameter("Ascending", ss.str());
ss.str("");
}
if(m_pageTokenHasBeenSet)
{
ss << m_pageToken;
uri.AddQueryStringParameter("PageToken", ss.str());
ss.str("");
}
}

View File

@@ -0,0 +1,49 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#include <aws/elastictranscoder/model/ListJobsByStatusResult.h>
#include <aws/core/utils/json/JsonSerializer.h>
#include <aws/core/AmazonWebServiceResult.h>
#include <aws/core/utils/StringUtils.h>
#include <aws/core/utils/UnreferencedParam.h>
#include <utility>
using namespace Aws::ElasticTranscoder::Model;
using namespace Aws::Utils::Json;
using namespace Aws::Utils;
using namespace Aws;
ListJobsByStatusResult::ListJobsByStatusResult()
{
}
ListJobsByStatusResult::ListJobsByStatusResult(const Aws::AmazonWebServiceResult<JsonValue>& result)
{
*this = result;
}
ListJobsByStatusResult& ListJobsByStatusResult::operator =(const Aws::AmazonWebServiceResult<JsonValue>& result)
{
JsonView jsonValue = result.GetPayload().View();
if(jsonValue.ValueExists("Jobs"))
{
Array<JsonView> jobsJsonList = jsonValue.GetArray("Jobs");
for(unsigned jobsIndex = 0; jobsIndex < jobsJsonList.GetLength(); ++jobsIndex)
{
m_jobs.push_back(jobsJsonList[jobsIndex].AsObject());
}
}
if(jsonValue.ValueExists("NextPageToken"))
{
m_nextPageToken = jsonValue.GetString("NextPageToken");
}
return *this;
}

View File

@@ -0,0 +1,49 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#include <aws/elastictranscoder/model/ListPipelinesRequest.h>
#include <aws/core/utils/json/JsonSerializer.h>
#include <aws/core/http/URI.h>
#include <aws/core/utils/memory/stl/AWSStringStream.h>
#include <utility>
using namespace Aws::ElasticTranscoder::Model;
using namespace Aws::Utils::Json;
using namespace Aws::Utils;
using namespace Aws::Http;
ListPipelinesRequest::ListPipelinesRequest() :
m_ascendingHasBeenSet(false),
m_pageTokenHasBeenSet(false)
{
}
Aws::String ListPipelinesRequest::SerializePayload() const
{
return {};
}
void ListPipelinesRequest::AddQueryStringParameters(URI& uri) const
{
Aws::StringStream ss;
if(m_ascendingHasBeenSet)
{
ss << m_ascending;
uri.AddQueryStringParameter("Ascending", ss.str());
ss.str("");
}
if(m_pageTokenHasBeenSet)
{
ss << m_pageToken;
uri.AddQueryStringParameter("PageToken", ss.str());
ss.str("");
}
}

View File

@@ -0,0 +1,49 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#include <aws/elastictranscoder/model/ListPipelinesResult.h>
#include <aws/core/utils/json/JsonSerializer.h>
#include <aws/core/AmazonWebServiceResult.h>
#include <aws/core/utils/StringUtils.h>
#include <aws/core/utils/UnreferencedParam.h>
#include <utility>
using namespace Aws::ElasticTranscoder::Model;
using namespace Aws::Utils::Json;
using namespace Aws::Utils;
using namespace Aws;
ListPipelinesResult::ListPipelinesResult()
{
}
ListPipelinesResult::ListPipelinesResult(const Aws::AmazonWebServiceResult<JsonValue>& result)
{
*this = result;
}
ListPipelinesResult& ListPipelinesResult::operator =(const Aws::AmazonWebServiceResult<JsonValue>& result)
{
JsonView jsonValue = result.GetPayload().View();
if(jsonValue.ValueExists("Pipelines"))
{
Array<JsonView> pipelinesJsonList = jsonValue.GetArray("Pipelines");
for(unsigned pipelinesIndex = 0; pipelinesIndex < pipelinesJsonList.GetLength(); ++pipelinesIndex)
{
m_pipelines.push_back(pipelinesJsonList[pipelinesIndex].AsObject());
}
}
if(jsonValue.ValueExists("NextPageToken"))
{
m_nextPageToken = jsonValue.GetString("NextPageToken");
}
return *this;
}

View File

@@ -0,0 +1,49 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#include <aws/elastictranscoder/model/ListPresetsRequest.h>
#include <aws/core/utils/json/JsonSerializer.h>
#include <aws/core/http/URI.h>
#include <aws/core/utils/memory/stl/AWSStringStream.h>
#include <utility>
using namespace Aws::ElasticTranscoder::Model;
using namespace Aws::Utils::Json;
using namespace Aws::Utils;
using namespace Aws::Http;
ListPresetsRequest::ListPresetsRequest() :
m_ascendingHasBeenSet(false),
m_pageTokenHasBeenSet(false)
{
}
Aws::String ListPresetsRequest::SerializePayload() const
{
return {};
}
void ListPresetsRequest::AddQueryStringParameters(URI& uri) const
{
Aws::StringStream ss;
if(m_ascendingHasBeenSet)
{
ss << m_ascending;
uri.AddQueryStringParameter("Ascending", ss.str());
ss.str("");
}
if(m_pageTokenHasBeenSet)
{
ss << m_pageToken;
uri.AddQueryStringParameter("PageToken", ss.str());
ss.str("");
}
}

View File

@@ -0,0 +1,49 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#include <aws/elastictranscoder/model/ListPresetsResult.h>
#include <aws/core/utils/json/JsonSerializer.h>
#include <aws/core/AmazonWebServiceResult.h>
#include <aws/core/utils/StringUtils.h>
#include <aws/core/utils/UnreferencedParam.h>
#include <utility>
using namespace Aws::ElasticTranscoder::Model;
using namespace Aws::Utils::Json;
using namespace Aws::Utils;
using namespace Aws;
ListPresetsResult::ListPresetsResult()
{
}
ListPresetsResult::ListPresetsResult(const Aws::AmazonWebServiceResult<JsonValue>& result)
{
*this = result;
}
ListPresetsResult& ListPresetsResult::operator =(const Aws::AmazonWebServiceResult<JsonValue>& result)
{
JsonView jsonValue = result.GetPayload().View();
if(jsonValue.ValueExists("Presets"))
{
Array<JsonView> presetsJsonList = jsonValue.GetArray("Presets");
for(unsigned presetsIndex = 0; presetsIndex < presetsJsonList.GetLength(); ++presetsIndex)
{
m_presets.push_back(presetsJsonList[presetsIndex].AsObject());
}
}
if(jsonValue.ValueExists("NextPageToken"))
{
m_nextPageToken = jsonValue.GetString("NextPageToken");
}
return *this;
}

View File

@@ -0,0 +1,104 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#include <aws/elastictranscoder/model/Notifications.h>
#include <aws/core/utils/json/JsonSerializer.h>
#include <utility>
using namespace Aws::Utils::Json;
using namespace Aws::Utils;
namespace Aws
{
namespace ElasticTranscoder
{
namespace Model
{
Notifications::Notifications() :
m_progressingHasBeenSet(false),
m_completedHasBeenSet(false),
m_warningHasBeenSet(false),
m_errorHasBeenSet(false)
{
}
Notifications::Notifications(JsonView jsonValue) :
m_progressingHasBeenSet(false),
m_completedHasBeenSet(false),
m_warningHasBeenSet(false),
m_errorHasBeenSet(false)
{
*this = jsonValue;
}
Notifications& Notifications::operator =(JsonView jsonValue)
{
if(jsonValue.ValueExists("Progressing"))
{
m_progressing = jsonValue.GetString("Progressing");
m_progressingHasBeenSet = true;
}
if(jsonValue.ValueExists("Completed"))
{
m_completed = jsonValue.GetString("Completed");
m_completedHasBeenSet = true;
}
if(jsonValue.ValueExists("Warning"))
{
m_warning = jsonValue.GetString("Warning");
m_warningHasBeenSet = true;
}
if(jsonValue.ValueExists("Error"))
{
m_error = jsonValue.GetString("Error");
m_errorHasBeenSet = true;
}
return *this;
}
JsonValue Notifications::Jsonize() const
{
JsonValue payload;
if(m_progressingHasBeenSet)
{
payload.WithString("Progressing", m_progressing);
}
if(m_completedHasBeenSet)
{
payload.WithString("Completed", m_completed);
}
if(m_warningHasBeenSet)
{
payload.WithString("Warning", m_warning);
}
if(m_errorHasBeenSet)
{
payload.WithString("Error", m_error);
}
return payload;
}
} // namespace Model
} // namespace ElasticTranscoder
} // namespace Aws

View File

@@ -0,0 +1,97 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#include <aws/elastictranscoder/model/Permission.h>
#include <aws/core/utils/json/JsonSerializer.h>
#include <utility>
using namespace Aws::Utils::Json;
using namespace Aws::Utils;
namespace Aws
{
namespace ElasticTranscoder
{
namespace Model
{
Permission::Permission() :
m_granteeTypeHasBeenSet(false),
m_granteeHasBeenSet(false),
m_accessHasBeenSet(false)
{
}
Permission::Permission(JsonView jsonValue) :
m_granteeTypeHasBeenSet(false),
m_granteeHasBeenSet(false),
m_accessHasBeenSet(false)
{
*this = jsonValue;
}
Permission& Permission::operator =(JsonView jsonValue)
{
if(jsonValue.ValueExists("GranteeType"))
{
m_granteeType = jsonValue.GetString("GranteeType");
m_granteeTypeHasBeenSet = true;
}
if(jsonValue.ValueExists("Grantee"))
{
m_grantee = jsonValue.GetString("Grantee");
m_granteeHasBeenSet = true;
}
if(jsonValue.ValueExists("Access"))
{
Array<JsonView> accessJsonList = jsonValue.GetArray("Access");
for(unsigned accessIndex = 0; accessIndex < accessJsonList.GetLength(); ++accessIndex)
{
m_access.push_back(accessJsonList[accessIndex].AsString());
}
m_accessHasBeenSet = true;
}
return *this;
}
JsonValue Permission::Jsonize() const
{
JsonValue payload;
if(m_granteeTypeHasBeenSet)
{
payload.WithString("GranteeType", m_granteeType);
}
if(m_granteeHasBeenSet)
{
payload.WithString("Grantee", m_grantee);
}
if(m_accessHasBeenSet)
{
Array<JsonValue> accessJsonList(m_access.size());
for(unsigned accessIndex = 0; accessIndex < accessJsonList.GetLength(); ++accessIndex)
{
accessJsonList[accessIndex].AsString(m_access[accessIndex]);
}
payload.WithArray("Access", std::move(accessJsonList));
}
return payload;
}
} // namespace Model
} // namespace ElasticTranscoder
} // namespace Aws

View File

@@ -0,0 +1,209 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#include <aws/elastictranscoder/model/Pipeline.h>
#include <aws/core/utils/json/JsonSerializer.h>
#include <utility>
using namespace Aws::Utils::Json;
using namespace Aws::Utils;
namespace Aws
{
namespace ElasticTranscoder
{
namespace Model
{
Pipeline::Pipeline() :
m_idHasBeenSet(false),
m_arnHasBeenSet(false),
m_nameHasBeenSet(false),
m_statusHasBeenSet(false),
m_inputBucketHasBeenSet(false),
m_outputBucketHasBeenSet(false),
m_roleHasBeenSet(false),
m_awsKmsKeyArnHasBeenSet(false),
m_notificationsHasBeenSet(false),
m_contentConfigHasBeenSet(false),
m_thumbnailConfigHasBeenSet(false)
{
}
Pipeline::Pipeline(JsonView jsonValue) :
m_idHasBeenSet(false),
m_arnHasBeenSet(false),
m_nameHasBeenSet(false),
m_statusHasBeenSet(false),
m_inputBucketHasBeenSet(false),
m_outputBucketHasBeenSet(false),
m_roleHasBeenSet(false),
m_awsKmsKeyArnHasBeenSet(false),
m_notificationsHasBeenSet(false),
m_contentConfigHasBeenSet(false),
m_thumbnailConfigHasBeenSet(false)
{
*this = jsonValue;
}
Pipeline& Pipeline::operator =(JsonView jsonValue)
{
if(jsonValue.ValueExists("Id"))
{
m_id = jsonValue.GetString("Id");
m_idHasBeenSet = true;
}
if(jsonValue.ValueExists("Arn"))
{
m_arn = jsonValue.GetString("Arn");
m_arnHasBeenSet = true;
}
if(jsonValue.ValueExists("Name"))
{
m_name = jsonValue.GetString("Name");
m_nameHasBeenSet = true;
}
if(jsonValue.ValueExists("Status"))
{
m_status = jsonValue.GetString("Status");
m_statusHasBeenSet = true;
}
if(jsonValue.ValueExists("InputBucket"))
{
m_inputBucket = jsonValue.GetString("InputBucket");
m_inputBucketHasBeenSet = true;
}
if(jsonValue.ValueExists("OutputBucket"))
{
m_outputBucket = jsonValue.GetString("OutputBucket");
m_outputBucketHasBeenSet = true;
}
if(jsonValue.ValueExists("Role"))
{
m_role = jsonValue.GetString("Role");
m_roleHasBeenSet = true;
}
if(jsonValue.ValueExists("AwsKmsKeyArn"))
{
m_awsKmsKeyArn = jsonValue.GetString("AwsKmsKeyArn");
m_awsKmsKeyArnHasBeenSet = true;
}
if(jsonValue.ValueExists("Notifications"))
{
m_notifications = jsonValue.GetObject("Notifications");
m_notificationsHasBeenSet = true;
}
if(jsonValue.ValueExists("ContentConfig"))
{
m_contentConfig = jsonValue.GetObject("ContentConfig");
m_contentConfigHasBeenSet = true;
}
if(jsonValue.ValueExists("ThumbnailConfig"))
{
m_thumbnailConfig = jsonValue.GetObject("ThumbnailConfig");
m_thumbnailConfigHasBeenSet = true;
}
return *this;
}
JsonValue Pipeline::Jsonize() const
{
JsonValue payload;
if(m_idHasBeenSet)
{
payload.WithString("Id", m_id);
}
if(m_arnHasBeenSet)
{
payload.WithString("Arn", m_arn);
}
if(m_nameHasBeenSet)
{
payload.WithString("Name", m_name);
}
if(m_statusHasBeenSet)
{
payload.WithString("Status", m_status);
}
if(m_inputBucketHasBeenSet)
{
payload.WithString("InputBucket", m_inputBucket);
}
if(m_outputBucketHasBeenSet)
{
payload.WithString("OutputBucket", m_outputBucket);
}
if(m_roleHasBeenSet)
{
payload.WithString("Role", m_role);
}
if(m_awsKmsKeyArnHasBeenSet)
{
payload.WithString("AwsKmsKeyArn", m_awsKmsKeyArn);
}
if(m_notificationsHasBeenSet)
{
payload.WithObject("Notifications", m_notifications.Jsonize());
}
if(m_contentConfigHasBeenSet)
{
payload.WithObject("ContentConfig", m_contentConfig.Jsonize());
}
if(m_thumbnailConfigHasBeenSet)
{
payload.WithObject("ThumbnailConfig", m_thumbnailConfig.Jsonize());
}
return payload;
}
} // namespace Model
} // namespace ElasticTranscoder
} // namespace Aws

View File

@@ -0,0 +1,97 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#include <aws/elastictranscoder/model/PipelineOutputConfig.h>
#include <aws/core/utils/json/JsonSerializer.h>
#include <utility>
using namespace Aws::Utils::Json;
using namespace Aws::Utils;
namespace Aws
{
namespace ElasticTranscoder
{
namespace Model
{
PipelineOutputConfig::PipelineOutputConfig() :
m_bucketHasBeenSet(false),
m_storageClassHasBeenSet(false),
m_permissionsHasBeenSet(false)
{
}
PipelineOutputConfig::PipelineOutputConfig(JsonView jsonValue) :
m_bucketHasBeenSet(false),
m_storageClassHasBeenSet(false),
m_permissionsHasBeenSet(false)
{
*this = jsonValue;
}
PipelineOutputConfig& PipelineOutputConfig::operator =(JsonView jsonValue)
{
if(jsonValue.ValueExists("Bucket"))
{
m_bucket = jsonValue.GetString("Bucket");
m_bucketHasBeenSet = true;
}
if(jsonValue.ValueExists("StorageClass"))
{
m_storageClass = jsonValue.GetString("StorageClass");
m_storageClassHasBeenSet = true;
}
if(jsonValue.ValueExists("Permissions"))
{
Array<JsonView> permissionsJsonList = jsonValue.GetArray("Permissions");
for(unsigned permissionsIndex = 0; permissionsIndex < permissionsJsonList.GetLength(); ++permissionsIndex)
{
m_permissions.push_back(permissionsJsonList[permissionsIndex].AsObject());
}
m_permissionsHasBeenSet = true;
}
return *this;
}
JsonValue PipelineOutputConfig::Jsonize() const
{
JsonValue payload;
if(m_bucketHasBeenSet)
{
payload.WithString("Bucket", m_bucket);
}
if(m_storageClassHasBeenSet)
{
payload.WithString("StorageClass", m_storageClass);
}
if(m_permissionsHasBeenSet)
{
Array<JsonValue> permissionsJsonList(m_permissions.size());
for(unsigned permissionsIndex = 0; permissionsIndex < permissionsJsonList.GetLength(); ++permissionsIndex)
{
permissionsJsonList[permissionsIndex].AsObject(m_permissions[permissionsIndex].Jsonize());
}
payload.WithArray("Permissions", std::move(permissionsJsonList));
}
return payload;
}
} // namespace Model
} // namespace ElasticTranscoder
} // namespace Aws

View File

@@ -0,0 +1,134 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#include <aws/elastictranscoder/model/PlayReadyDrm.h>
#include <aws/core/utils/json/JsonSerializer.h>
#include <utility>
using namespace Aws::Utils::Json;
using namespace Aws::Utils;
namespace Aws
{
namespace ElasticTranscoder
{
namespace Model
{
PlayReadyDrm::PlayReadyDrm() :
m_formatHasBeenSet(false),
m_keyHasBeenSet(false),
m_keyMd5HasBeenSet(false),
m_keyIdHasBeenSet(false),
m_initializationVectorHasBeenSet(false),
m_licenseAcquisitionUrlHasBeenSet(false)
{
}
PlayReadyDrm::PlayReadyDrm(JsonView jsonValue) :
m_formatHasBeenSet(false),
m_keyHasBeenSet(false),
m_keyMd5HasBeenSet(false),
m_keyIdHasBeenSet(false),
m_initializationVectorHasBeenSet(false),
m_licenseAcquisitionUrlHasBeenSet(false)
{
*this = jsonValue;
}
PlayReadyDrm& PlayReadyDrm::operator =(JsonView jsonValue)
{
if(jsonValue.ValueExists("Format"))
{
m_format = jsonValue.GetString("Format");
m_formatHasBeenSet = true;
}
if(jsonValue.ValueExists("Key"))
{
m_key = jsonValue.GetString("Key");
m_keyHasBeenSet = true;
}
if(jsonValue.ValueExists("KeyMd5"))
{
m_keyMd5 = jsonValue.GetString("KeyMd5");
m_keyMd5HasBeenSet = true;
}
if(jsonValue.ValueExists("KeyId"))
{
m_keyId = jsonValue.GetString("KeyId");
m_keyIdHasBeenSet = true;
}
if(jsonValue.ValueExists("InitializationVector"))
{
m_initializationVector = jsonValue.GetString("InitializationVector");
m_initializationVectorHasBeenSet = true;
}
if(jsonValue.ValueExists("LicenseAcquisitionUrl"))
{
m_licenseAcquisitionUrl = jsonValue.GetString("LicenseAcquisitionUrl");
m_licenseAcquisitionUrlHasBeenSet = true;
}
return *this;
}
JsonValue PlayReadyDrm::Jsonize() const
{
JsonValue payload;
if(m_formatHasBeenSet)
{
payload.WithString("Format", m_format);
}
if(m_keyHasBeenSet)
{
payload.WithString("Key", m_key);
}
if(m_keyMd5HasBeenSet)
{
payload.WithString("KeyMd5", m_keyMd5);
}
if(m_keyIdHasBeenSet)
{
payload.WithString("KeyId", m_keyId);
}
if(m_initializationVectorHasBeenSet)
{
payload.WithString("InitializationVector", m_initializationVector);
}
if(m_licenseAcquisitionUrlHasBeenSet)
{
payload.WithString("LicenseAcquisitionUrl", m_licenseAcquisitionUrl);
}
return payload;
}
} // namespace Model
} // namespace ElasticTranscoder
} // namespace Aws

View File

@@ -0,0 +1,157 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#include <aws/elastictranscoder/model/Playlist.h>
#include <aws/core/utils/json/JsonSerializer.h>
#include <utility>
using namespace Aws::Utils::Json;
using namespace Aws::Utils;
namespace Aws
{
namespace ElasticTranscoder
{
namespace Model
{
Playlist::Playlist() :
m_nameHasBeenSet(false),
m_formatHasBeenSet(false),
m_outputKeysHasBeenSet(false),
m_hlsContentProtectionHasBeenSet(false),
m_playReadyDrmHasBeenSet(false),
m_statusHasBeenSet(false),
m_statusDetailHasBeenSet(false)
{
}
Playlist::Playlist(JsonView jsonValue) :
m_nameHasBeenSet(false),
m_formatHasBeenSet(false),
m_outputKeysHasBeenSet(false),
m_hlsContentProtectionHasBeenSet(false),
m_playReadyDrmHasBeenSet(false),
m_statusHasBeenSet(false),
m_statusDetailHasBeenSet(false)
{
*this = jsonValue;
}
Playlist& Playlist::operator =(JsonView jsonValue)
{
if(jsonValue.ValueExists("Name"))
{
m_name = jsonValue.GetString("Name");
m_nameHasBeenSet = true;
}
if(jsonValue.ValueExists("Format"))
{
m_format = jsonValue.GetString("Format");
m_formatHasBeenSet = true;
}
if(jsonValue.ValueExists("OutputKeys"))
{
Array<JsonView> outputKeysJsonList = jsonValue.GetArray("OutputKeys");
for(unsigned outputKeysIndex = 0; outputKeysIndex < outputKeysJsonList.GetLength(); ++outputKeysIndex)
{
m_outputKeys.push_back(outputKeysJsonList[outputKeysIndex].AsString());
}
m_outputKeysHasBeenSet = true;
}
if(jsonValue.ValueExists("HlsContentProtection"))
{
m_hlsContentProtection = jsonValue.GetObject("HlsContentProtection");
m_hlsContentProtectionHasBeenSet = true;
}
if(jsonValue.ValueExists("PlayReadyDrm"))
{
m_playReadyDrm = jsonValue.GetObject("PlayReadyDrm");
m_playReadyDrmHasBeenSet = true;
}
if(jsonValue.ValueExists("Status"))
{
m_status = jsonValue.GetString("Status");
m_statusHasBeenSet = true;
}
if(jsonValue.ValueExists("StatusDetail"))
{
m_statusDetail = jsonValue.GetString("StatusDetail");
m_statusDetailHasBeenSet = true;
}
return *this;
}
JsonValue Playlist::Jsonize() const
{
JsonValue payload;
if(m_nameHasBeenSet)
{
payload.WithString("Name", m_name);
}
if(m_formatHasBeenSet)
{
payload.WithString("Format", m_format);
}
if(m_outputKeysHasBeenSet)
{
Array<JsonValue> outputKeysJsonList(m_outputKeys.size());
for(unsigned outputKeysIndex = 0; outputKeysIndex < outputKeysJsonList.GetLength(); ++outputKeysIndex)
{
outputKeysJsonList[outputKeysIndex].AsString(m_outputKeys[outputKeysIndex]);
}
payload.WithArray("OutputKeys", std::move(outputKeysJsonList));
}
if(m_hlsContentProtectionHasBeenSet)
{
payload.WithObject("HlsContentProtection", m_hlsContentProtection.Jsonize());
}
if(m_playReadyDrmHasBeenSet)
{
payload.WithObject("PlayReadyDrm", m_playReadyDrm.Jsonize());
}
if(m_statusHasBeenSet)
{
payload.WithString("Status", m_status);
}
if(m_statusDetailHasBeenSet)
{
payload.WithString("StatusDetail", m_statusDetail);
}
return payload;
}
} // namespace Model
} // namespace ElasticTranscoder
} // namespace Aws

View File

@@ -0,0 +1,179 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#include <aws/elastictranscoder/model/Preset.h>
#include <aws/core/utils/json/JsonSerializer.h>
#include <utility>
using namespace Aws::Utils::Json;
using namespace Aws::Utils;
namespace Aws
{
namespace ElasticTranscoder
{
namespace Model
{
Preset::Preset() :
m_idHasBeenSet(false),
m_arnHasBeenSet(false),
m_nameHasBeenSet(false),
m_descriptionHasBeenSet(false),
m_containerHasBeenSet(false),
m_audioHasBeenSet(false),
m_videoHasBeenSet(false),
m_thumbnailsHasBeenSet(false),
m_typeHasBeenSet(false)
{
}
Preset::Preset(JsonView jsonValue) :
m_idHasBeenSet(false),
m_arnHasBeenSet(false),
m_nameHasBeenSet(false),
m_descriptionHasBeenSet(false),
m_containerHasBeenSet(false),
m_audioHasBeenSet(false),
m_videoHasBeenSet(false),
m_thumbnailsHasBeenSet(false),
m_typeHasBeenSet(false)
{
*this = jsonValue;
}
Preset& Preset::operator =(JsonView jsonValue)
{
if(jsonValue.ValueExists("Id"))
{
m_id = jsonValue.GetString("Id");
m_idHasBeenSet = true;
}
if(jsonValue.ValueExists("Arn"))
{
m_arn = jsonValue.GetString("Arn");
m_arnHasBeenSet = true;
}
if(jsonValue.ValueExists("Name"))
{
m_name = jsonValue.GetString("Name");
m_nameHasBeenSet = true;
}
if(jsonValue.ValueExists("Description"))
{
m_description = jsonValue.GetString("Description");
m_descriptionHasBeenSet = true;
}
if(jsonValue.ValueExists("Container"))
{
m_container = jsonValue.GetString("Container");
m_containerHasBeenSet = true;
}
if(jsonValue.ValueExists("Audio"))
{
m_audio = jsonValue.GetObject("Audio");
m_audioHasBeenSet = true;
}
if(jsonValue.ValueExists("Video"))
{
m_video = jsonValue.GetObject("Video");
m_videoHasBeenSet = true;
}
if(jsonValue.ValueExists("Thumbnails"))
{
m_thumbnails = jsonValue.GetObject("Thumbnails");
m_thumbnailsHasBeenSet = true;
}
if(jsonValue.ValueExists("Type"))
{
m_type = jsonValue.GetString("Type");
m_typeHasBeenSet = true;
}
return *this;
}
JsonValue Preset::Jsonize() const
{
JsonValue payload;
if(m_idHasBeenSet)
{
payload.WithString("Id", m_id);
}
if(m_arnHasBeenSet)
{
payload.WithString("Arn", m_arn);
}
if(m_nameHasBeenSet)
{
payload.WithString("Name", m_name);
}
if(m_descriptionHasBeenSet)
{
payload.WithString("Description", m_description);
}
if(m_containerHasBeenSet)
{
payload.WithString("Container", m_container);
}
if(m_audioHasBeenSet)
{
payload.WithObject("Audio", m_audio.Jsonize());
}
if(m_videoHasBeenSet)
{
payload.WithObject("Video", m_video.Jsonize());
}
if(m_thumbnailsHasBeenSet)
{
payload.WithObject("Thumbnails", m_thumbnails.Jsonize());
}
if(m_typeHasBeenSet)
{
payload.WithString("Type", m_type);
}
return payload;
}
} // namespace Model
} // namespace ElasticTranscoder
} // namespace Aws

View File

@@ -0,0 +1,194 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#include <aws/elastictranscoder/model/PresetWatermark.h>
#include <aws/core/utils/json/JsonSerializer.h>
#include <utility>
using namespace Aws::Utils::Json;
using namespace Aws::Utils;
namespace Aws
{
namespace ElasticTranscoder
{
namespace Model
{
PresetWatermark::PresetWatermark() :
m_idHasBeenSet(false),
m_maxWidthHasBeenSet(false),
m_maxHeightHasBeenSet(false),
m_sizingPolicyHasBeenSet(false),
m_horizontalAlignHasBeenSet(false),
m_horizontalOffsetHasBeenSet(false),
m_verticalAlignHasBeenSet(false),
m_verticalOffsetHasBeenSet(false),
m_opacityHasBeenSet(false),
m_targetHasBeenSet(false)
{
}
PresetWatermark::PresetWatermark(JsonView jsonValue) :
m_idHasBeenSet(false),
m_maxWidthHasBeenSet(false),
m_maxHeightHasBeenSet(false),
m_sizingPolicyHasBeenSet(false),
m_horizontalAlignHasBeenSet(false),
m_horizontalOffsetHasBeenSet(false),
m_verticalAlignHasBeenSet(false),
m_verticalOffsetHasBeenSet(false),
m_opacityHasBeenSet(false),
m_targetHasBeenSet(false)
{
*this = jsonValue;
}
PresetWatermark& PresetWatermark::operator =(JsonView jsonValue)
{
if(jsonValue.ValueExists("Id"))
{
m_id = jsonValue.GetString("Id");
m_idHasBeenSet = true;
}
if(jsonValue.ValueExists("MaxWidth"))
{
m_maxWidth = jsonValue.GetString("MaxWidth");
m_maxWidthHasBeenSet = true;
}
if(jsonValue.ValueExists("MaxHeight"))
{
m_maxHeight = jsonValue.GetString("MaxHeight");
m_maxHeightHasBeenSet = true;
}
if(jsonValue.ValueExists("SizingPolicy"))
{
m_sizingPolicy = jsonValue.GetString("SizingPolicy");
m_sizingPolicyHasBeenSet = true;
}
if(jsonValue.ValueExists("HorizontalAlign"))
{
m_horizontalAlign = jsonValue.GetString("HorizontalAlign");
m_horizontalAlignHasBeenSet = true;
}
if(jsonValue.ValueExists("HorizontalOffset"))
{
m_horizontalOffset = jsonValue.GetString("HorizontalOffset");
m_horizontalOffsetHasBeenSet = true;
}
if(jsonValue.ValueExists("VerticalAlign"))
{
m_verticalAlign = jsonValue.GetString("VerticalAlign");
m_verticalAlignHasBeenSet = true;
}
if(jsonValue.ValueExists("VerticalOffset"))
{
m_verticalOffset = jsonValue.GetString("VerticalOffset");
m_verticalOffsetHasBeenSet = true;
}
if(jsonValue.ValueExists("Opacity"))
{
m_opacity = jsonValue.GetString("Opacity");
m_opacityHasBeenSet = true;
}
if(jsonValue.ValueExists("Target"))
{
m_target = jsonValue.GetString("Target");
m_targetHasBeenSet = true;
}
return *this;
}
JsonValue PresetWatermark::Jsonize() const
{
JsonValue payload;
if(m_idHasBeenSet)
{
payload.WithString("Id", m_id);
}
if(m_maxWidthHasBeenSet)
{
payload.WithString("MaxWidth", m_maxWidth);
}
if(m_maxHeightHasBeenSet)
{
payload.WithString("MaxHeight", m_maxHeight);
}
if(m_sizingPolicyHasBeenSet)
{
payload.WithString("SizingPolicy", m_sizingPolicy);
}
if(m_horizontalAlignHasBeenSet)
{
payload.WithString("HorizontalAlign", m_horizontalAlign);
}
if(m_horizontalOffsetHasBeenSet)
{
payload.WithString("HorizontalOffset", m_horizontalOffset);
}
if(m_verticalAlignHasBeenSet)
{
payload.WithString("VerticalAlign", m_verticalAlign);
}
if(m_verticalOffsetHasBeenSet)
{
payload.WithString("VerticalOffset", m_verticalOffset);
}
if(m_opacityHasBeenSet)
{
payload.WithString("Opacity", m_opacity);
}
if(m_targetHasBeenSet)
{
payload.WithString("Target", m_target);
}
return payload;
}
} // namespace Model
} // namespace ElasticTranscoder
} // namespace Aws

View File

@@ -0,0 +1,27 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#include <aws/elastictranscoder/model/ReadJobRequest.h>
#include <aws/core/utils/json/JsonSerializer.h>
#include <utility>
using namespace Aws::ElasticTranscoder::Model;
using namespace Aws::Utils::Json;
using namespace Aws::Utils;
ReadJobRequest::ReadJobRequest() :
m_idHasBeenSet(false)
{
}
Aws::String ReadJobRequest::SerializePayload() const
{
return {};
}

View File

@@ -0,0 +1,40 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#include <aws/elastictranscoder/model/ReadJobResult.h>
#include <aws/core/utils/json/JsonSerializer.h>
#include <aws/core/AmazonWebServiceResult.h>
#include <aws/core/utils/StringUtils.h>
#include <aws/core/utils/UnreferencedParam.h>
#include <utility>
using namespace Aws::ElasticTranscoder::Model;
using namespace Aws::Utils::Json;
using namespace Aws::Utils;
using namespace Aws;
ReadJobResult::ReadJobResult()
{
}
ReadJobResult::ReadJobResult(const Aws::AmazonWebServiceResult<JsonValue>& result)
{
*this = result;
}
ReadJobResult& ReadJobResult::operator =(const Aws::AmazonWebServiceResult<JsonValue>& result)
{
JsonView jsonValue = result.GetPayload().View();
if(jsonValue.ValueExists("Job"))
{
m_job = jsonValue.GetObject("Job");
}
return *this;
}

View File

@@ -0,0 +1,27 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#include <aws/elastictranscoder/model/ReadPipelineRequest.h>
#include <aws/core/utils/json/JsonSerializer.h>
#include <utility>
using namespace Aws::ElasticTranscoder::Model;
using namespace Aws::Utils::Json;
using namespace Aws::Utils;
ReadPipelineRequest::ReadPipelineRequest() :
m_idHasBeenSet(false)
{
}
Aws::String ReadPipelineRequest::SerializePayload() const
{
return {};
}

View File

@@ -0,0 +1,49 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#include <aws/elastictranscoder/model/ReadPipelineResult.h>
#include <aws/core/utils/json/JsonSerializer.h>
#include <aws/core/AmazonWebServiceResult.h>
#include <aws/core/utils/StringUtils.h>
#include <aws/core/utils/UnreferencedParam.h>
#include <utility>
using namespace Aws::ElasticTranscoder::Model;
using namespace Aws::Utils::Json;
using namespace Aws::Utils;
using namespace Aws;
ReadPipelineResult::ReadPipelineResult()
{
}
ReadPipelineResult::ReadPipelineResult(const Aws::AmazonWebServiceResult<JsonValue>& result)
{
*this = result;
}
ReadPipelineResult& ReadPipelineResult::operator =(const Aws::AmazonWebServiceResult<JsonValue>& result)
{
JsonView jsonValue = result.GetPayload().View();
if(jsonValue.ValueExists("Pipeline"))
{
m_pipeline = jsonValue.GetObject("Pipeline");
}
if(jsonValue.ValueExists("Warnings"))
{
Array<JsonView> warningsJsonList = jsonValue.GetArray("Warnings");
for(unsigned warningsIndex = 0; warningsIndex < warningsJsonList.GetLength(); ++warningsIndex)
{
m_warnings.push_back(warningsJsonList[warningsIndex].AsObject());
}
}
return *this;
}

View File

@@ -0,0 +1,27 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#include <aws/elastictranscoder/model/ReadPresetRequest.h>
#include <aws/core/utils/json/JsonSerializer.h>
#include <utility>
using namespace Aws::ElasticTranscoder::Model;
using namespace Aws::Utils::Json;
using namespace Aws::Utils;
ReadPresetRequest::ReadPresetRequest() :
m_idHasBeenSet(false)
{
}
Aws::String ReadPresetRequest::SerializePayload() const
{
return {};
}

View File

@@ -0,0 +1,40 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#include <aws/elastictranscoder/model/ReadPresetResult.h>
#include <aws/core/utils/json/JsonSerializer.h>
#include <aws/core/AmazonWebServiceResult.h>
#include <aws/core/utils/StringUtils.h>
#include <aws/core/utils/UnreferencedParam.h>
#include <utility>
using namespace Aws::ElasticTranscoder::Model;
using namespace Aws::Utils::Json;
using namespace Aws::Utils;
using namespace Aws;
ReadPresetResult::ReadPresetResult()
{
}
ReadPresetResult::ReadPresetResult(const Aws::AmazonWebServiceResult<JsonValue>& result)
{
*this = result;
}
ReadPresetResult& ReadPresetResult::operator =(const Aws::AmazonWebServiceResult<JsonValue>& result)
{
JsonView jsonValue = result.GetPayload().View();
if(jsonValue.ValueExists("Preset"))
{
m_preset = jsonValue.GetObject("Preset");
}
return *this;
}

View File

@@ -0,0 +1,164 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#include <aws/elastictranscoder/model/Thumbnails.h>
#include <aws/core/utils/json/JsonSerializer.h>
#include <utility>
using namespace Aws::Utils::Json;
using namespace Aws::Utils;
namespace Aws
{
namespace ElasticTranscoder
{
namespace Model
{
Thumbnails::Thumbnails() :
m_formatHasBeenSet(false),
m_intervalHasBeenSet(false),
m_resolutionHasBeenSet(false),
m_aspectRatioHasBeenSet(false),
m_maxWidthHasBeenSet(false),
m_maxHeightHasBeenSet(false),
m_sizingPolicyHasBeenSet(false),
m_paddingPolicyHasBeenSet(false)
{
}
Thumbnails::Thumbnails(JsonView jsonValue) :
m_formatHasBeenSet(false),
m_intervalHasBeenSet(false),
m_resolutionHasBeenSet(false),
m_aspectRatioHasBeenSet(false),
m_maxWidthHasBeenSet(false),
m_maxHeightHasBeenSet(false),
m_sizingPolicyHasBeenSet(false),
m_paddingPolicyHasBeenSet(false)
{
*this = jsonValue;
}
Thumbnails& Thumbnails::operator =(JsonView jsonValue)
{
if(jsonValue.ValueExists("Format"))
{
m_format = jsonValue.GetString("Format");
m_formatHasBeenSet = true;
}
if(jsonValue.ValueExists("Interval"))
{
m_interval = jsonValue.GetString("Interval");
m_intervalHasBeenSet = true;
}
if(jsonValue.ValueExists("Resolution"))
{
m_resolution = jsonValue.GetString("Resolution");
m_resolutionHasBeenSet = true;
}
if(jsonValue.ValueExists("AspectRatio"))
{
m_aspectRatio = jsonValue.GetString("AspectRatio");
m_aspectRatioHasBeenSet = true;
}
if(jsonValue.ValueExists("MaxWidth"))
{
m_maxWidth = jsonValue.GetString("MaxWidth");
m_maxWidthHasBeenSet = true;
}
if(jsonValue.ValueExists("MaxHeight"))
{
m_maxHeight = jsonValue.GetString("MaxHeight");
m_maxHeightHasBeenSet = true;
}
if(jsonValue.ValueExists("SizingPolicy"))
{
m_sizingPolicy = jsonValue.GetString("SizingPolicy");
m_sizingPolicyHasBeenSet = true;
}
if(jsonValue.ValueExists("PaddingPolicy"))
{
m_paddingPolicy = jsonValue.GetString("PaddingPolicy");
m_paddingPolicyHasBeenSet = true;
}
return *this;
}
JsonValue Thumbnails::Jsonize() const
{
JsonValue payload;
if(m_formatHasBeenSet)
{
payload.WithString("Format", m_format);
}
if(m_intervalHasBeenSet)
{
payload.WithString("Interval", m_interval);
}
if(m_resolutionHasBeenSet)
{
payload.WithString("Resolution", m_resolution);
}
if(m_aspectRatioHasBeenSet)
{
payload.WithString("AspectRatio", m_aspectRatio);
}
if(m_maxWidthHasBeenSet)
{
payload.WithString("MaxWidth", m_maxWidth);
}
if(m_maxHeightHasBeenSet)
{
payload.WithString("MaxHeight", m_maxHeight);
}
if(m_sizingPolicyHasBeenSet)
{
payload.WithString("SizingPolicy", m_sizingPolicy);
}
if(m_paddingPolicyHasBeenSet)
{
payload.WithString("PaddingPolicy", m_paddingPolicy);
}
return payload;
}
} // namespace Model
} // namespace ElasticTranscoder
} // namespace Aws

View File

@@ -0,0 +1,74 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#include <aws/elastictranscoder/model/TimeSpan.h>
#include <aws/core/utils/json/JsonSerializer.h>
#include <utility>
using namespace Aws::Utils::Json;
using namespace Aws::Utils;
namespace Aws
{
namespace ElasticTranscoder
{
namespace Model
{
TimeSpan::TimeSpan() :
m_startTimeHasBeenSet(false),
m_durationHasBeenSet(false)
{
}
TimeSpan::TimeSpan(JsonView jsonValue) :
m_startTimeHasBeenSet(false),
m_durationHasBeenSet(false)
{
*this = jsonValue;
}
TimeSpan& TimeSpan::operator =(JsonView jsonValue)
{
if(jsonValue.ValueExists("StartTime"))
{
m_startTime = jsonValue.GetString("StartTime");
m_startTimeHasBeenSet = true;
}
if(jsonValue.ValueExists("Duration"))
{
m_duration = jsonValue.GetString("Duration");
m_durationHasBeenSet = true;
}
return *this;
}
JsonValue TimeSpan::Jsonize() const
{
JsonValue payload;
if(m_startTimeHasBeenSet)
{
payload.WithString("StartTime", m_startTime);
}
if(m_durationHasBeenSet)
{
payload.WithString("Duration", m_duration);
}
return payload;
}
} // namespace Model
} // namespace ElasticTranscoder
} // namespace Aws

View File

@@ -0,0 +1,95 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#include <aws/elastictranscoder/model/Timing.h>
#include <aws/core/utils/json/JsonSerializer.h>
#include <utility>
using namespace Aws::Utils::Json;
using namespace Aws::Utils;
namespace Aws
{
namespace ElasticTranscoder
{
namespace Model
{
Timing::Timing() :
m_submitTimeMillis(0),
m_submitTimeMillisHasBeenSet(false),
m_startTimeMillis(0),
m_startTimeMillisHasBeenSet(false),
m_finishTimeMillis(0),
m_finishTimeMillisHasBeenSet(false)
{
}
Timing::Timing(JsonView jsonValue) :
m_submitTimeMillis(0),
m_submitTimeMillisHasBeenSet(false),
m_startTimeMillis(0),
m_startTimeMillisHasBeenSet(false),
m_finishTimeMillis(0),
m_finishTimeMillisHasBeenSet(false)
{
*this = jsonValue;
}
Timing& Timing::operator =(JsonView jsonValue)
{
if(jsonValue.ValueExists("SubmitTimeMillis"))
{
m_submitTimeMillis = jsonValue.GetInt64("SubmitTimeMillis");
m_submitTimeMillisHasBeenSet = true;
}
if(jsonValue.ValueExists("StartTimeMillis"))
{
m_startTimeMillis = jsonValue.GetInt64("StartTimeMillis");
m_startTimeMillisHasBeenSet = true;
}
if(jsonValue.ValueExists("FinishTimeMillis"))
{
m_finishTimeMillis = jsonValue.GetInt64("FinishTimeMillis");
m_finishTimeMillisHasBeenSet = true;
}
return *this;
}
JsonValue Timing::Jsonize() const
{
JsonValue payload;
if(m_submitTimeMillisHasBeenSet)
{
payload.WithInt64("SubmitTimeMillis", m_submitTimeMillis);
}
if(m_startTimeMillisHasBeenSet)
{
payload.WithInt64("StartTimeMillis", m_startTimeMillis);
}
if(m_finishTimeMillisHasBeenSet)
{
payload.WithInt64("FinishTimeMillis", m_finishTimeMillis);
}
return payload;
}
} // namespace Model
} // namespace ElasticTranscoder
} // namespace Aws

View File

@@ -0,0 +1,36 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#include <aws/elastictranscoder/model/UpdatePipelineNotificationsRequest.h>
#include <aws/core/utils/json/JsonSerializer.h>
#include <utility>
using namespace Aws::ElasticTranscoder::Model;
using namespace Aws::Utils::Json;
using namespace Aws::Utils;
UpdatePipelineNotificationsRequest::UpdatePipelineNotificationsRequest() :
m_idHasBeenSet(false),
m_notificationsHasBeenSet(false)
{
}
Aws::String UpdatePipelineNotificationsRequest::SerializePayload() const
{
JsonValue payload;
if(m_notificationsHasBeenSet)
{
payload.WithObject("Notifications", m_notifications.Jsonize());
}
return payload.View().WriteReadable();
}

View File

@@ -0,0 +1,40 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#include <aws/elastictranscoder/model/UpdatePipelineNotificationsResult.h>
#include <aws/core/utils/json/JsonSerializer.h>
#include <aws/core/AmazonWebServiceResult.h>
#include <aws/core/utils/StringUtils.h>
#include <aws/core/utils/UnreferencedParam.h>
#include <utility>
using namespace Aws::ElasticTranscoder::Model;
using namespace Aws::Utils::Json;
using namespace Aws::Utils;
using namespace Aws;
UpdatePipelineNotificationsResult::UpdatePipelineNotificationsResult()
{
}
UpdatePipelineNotificationsResult::UpdatePipelineNotificationsResult(const Aws::AmazonWebServiceResult<JsonValue>& result)
{
*this = result;
}
UpdatePipelineNotificationsResult& UpdatePipelineNotificationsResult::operator =(const Aws::AmazonWebServiceResult<JsonValue>& result)
{
JsonView jsonValue = result.GetPayload().View();
if(jsonValue.ValueExists("Pipeline"))
{
m_pipeline = jsonValue.GetObject("Pipeline");
}
return *this;
}

View File

@@ -0,0 +1,78 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#include <aws/elastictranscoder/model/UpdatePipelineRequest.h>
#include <aws/core/utils/json/JsonSerializer.h>
#include <utility>
using namespace Aws::ElasticTranscoder::Model;
using namespace Aws::Utils::Json;
using namespace Aws::Utils;
UpdatePipelineRequest::UpdatePipelineRequest() :
m_idHasBeenSet(false),
m_nameHasBeenSet(false),
m_inputBucketHasBeenSet(false),
m_roleHasBeenSet(false),
m_awsKmsKeyArnHasBeenSet(false),
m_notificationsHasBeenSet(false),
m_contentConfigHasBeenSet(false),
m_thumbnailConfigHasBeenSet(false)
{
}
Aws::String UpdatePipelineRequest::SerializePayload() const
{
JsonValue payload;
if(m_nameHasBeenSet)
{
payload.WithString("Name", m_name);
}
if(m_inputBucketHasBeenSet)
{
payload.WithString("InputBucket", m_inputBucket);
}
if(m_roleHasBeenSet)
{
payload.WithString("Role", m_role);
}
if(m_awsKmsKeyArnHasBeenSet)
{
payload.WithString("AwsKmsKeyArn", m_awsKmsKeyArn);
}
if(m_notificationsHasBeenSet)
{
payload.WithObject("Notifications", m_notifications.Jsonize());
}
if(m_contentConfigHasBeenSet)
{
payload.WithObject("ContentConfig", m_contentConfig.Jsonize());
}
if(m_thumbnailConfigHasBeenSet)
{
payload.WithObject("ThumbnailConfig", m_thumbnailConfig.Jsonize());
}
return payload.View().WriteReadable();
}

View File

@@ -0,0 +1,49 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#include <aws/elastictranscoder/model/UpdatePipelineResult.h>
#include <aws/core/utils/json/JsonSerializer.h>
#include <aws/core/AmazonWebServiceResult.h>
#include <aws/core/utils/StringUtils.h>
#include <aws/core/utils/UnreferencedParam.h>
#include <utility>
using namespace Aws::ElasticTranscoder::Model;
using namespace Aws::Utils::Json;
using namespace Aws::Utils;
using namespace Aws;
UpdatePipelineResult::UpdatePipelineResult()
{
}
UpdatePipelineResult::UpdatePipelineResult(const Aws::AmazonWebServiceResult<JsonValue>& result)
{
*this = result;
}
UpdatePipelineResult& UpdatePipelineResult::operator =(const Aws::AmazonWebServiceResult<JsonValue>& result)
{
JsonView jsonValue = result.GetPayload().View();
if(jsonValue.ValueExists("Pipeline"))
{
m_pipeline = jsonValue.GetObject("Pipeline");
}
if(jsonValue.ValueExists("Warnings"))
{
Array<JsonView> warningsJsonList = jsonValue.GetArray("Warnings");
for(unsigned warningsIndex = 0; warningsIndex < warningsJsonList.GetLength(); ++warningsIndex)
{
m_warnings.push_back(warningsJsonList[warningsIndex].AsObject());
}
}
return *this;
}

View File

@@ -0,0 +1,36 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#include <aws/elastictranscoder/model/UpdatePipelineStatusRequest.h>
#include <aws/core/utils/json/JsonSerializer.h>
#include <utility>
using namespace Aws::ElasticTranscoder::Model;
using namespace Aws::Utils::Json;
using namespace Aws::Utils;
UpdatePipelineStatusRequest::UpdatePipelineStatusRequest() :
m_idHasBeenSet(false),
m_statusHasBeenSet(false)
{
}
Aws::String UpdatePipelineStatusRequest::SerializePayload() const
{
JsonValue payload;
if(m_statusHasBeenSet)
{
payload.WithString("Status", m_status);
}
return payload.View().WriteReadable();
}

View File

@@ -0,0 +1,40 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#include <aws/elastictranscoder/model/UpdatePipelineStatusResult.h>
#include <aws/core/utils/json/JsonSerializer.h>
#include <aws/core/AmazonWebServiceResult.h>
#include <aws/core/utils/StringUtils.h>
#include <aws/core/utils/UnreferencedParam.h>
#include <utility>
using namespace Aws::ElasticTranscoder::Model;
using namespace Aws::Utils::Json;
using namespace Aws::Utils;
using namespace Aws;
UpdatePipelineStatusResult::UpdatePipelineStatusResult()
{
}
UpdatePipelineStatusResult::UpdatePipelineStatusResult(const Aws::AmazonWebServiceResult<JsonValue>& result)
{
*this = result;
}
UpdatePipelineStatusResult& UpdatePipelineStatusResult::operator =(const Aws::AmazonWebServiceResult<JsonValue>& result)
{
JsonView jsonValue = result.GetPayload().View();
if(jsonValue.ValueExists("Pipeline"))
{
m_pipeline = jsonValue.GetObject("Pipeline");
}
return *this;
}

View File

@@ -0,0 +1,285 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#include <aws/elastictranscoder/model/VideoParameters.h>
#include <aws/core/utils/json/JsonSerializer.h>
#include <utility>
using namespace Aws::Utils::Json;
using namespace Aws::Utils;
namespace Aws
{
namespace ElasticTranscoder
{
namespace Model
{
VideoParameters::VideoParameters() :
m_codecHasBeenSet(false),
m_codecOptionsHasBeenSet(false),
m_keyframesMaxDistHasBeenSet(false),
m_fixedGOPHasBeenSet(false),
m_bitRateHasBeenSet(false),
m_frameRateHasBeenSet(false),
m_maxFrameRateHasBeenSet(false),
m_resolutionHasBeenSet(false),
m_aspectRatioHasBeenSet(false),
m_maxWidthHasBeenSet(false),
m_maxHeightHasBeenSet(false),
m_displayAspectRatioHasBeenSet(false),
m_sizingPolicyHasBeenSet(false),
m_paddingPolicyHasBeenSet(false),
m_watermarksHasBeenSet(false)
{
}
VideoParameters::VideoParameters(JsonView jsonValue) :
m_codecHasBeenSet(false),
m_codecOptionsHasBeenSet(false),
m_keyframesMaxDistHasBeenSet(false),
m_fixedGOPHasBeenSet(false),
m_bitRateHasBeenSet(false),
m_frameRateHasBeenSet(false),
m_maxFrameRateHasBeenSet(false),
m_resolutionHasBeenSet(false),
m_aspectRatioHasBeenSet(false),
m_maxWidthHasBeenSet(false),
m_maxHeightHasBeenSet(false),
m_displayAspectRatioHasBeenSet(false),
m_sizingPolicyHasBeenSet(false),
m_paddingPolicyHasBeenSet(false),
m_watermarksHasBeenSet(false)
{
*this = jsonValue;
}
VideoParameters& VideoParameters::operator =(JsonView jsonValue)
{
if(jsonValue.ValueExists("Codec"))
{
m_codec = jsonValue.GetString("Codec");
m_codecHasBeenSet = true;
}
if(jsonValue.ValueExists("CodecOptions"))
{
Aws::Map<Aws::String, JsonView> codecOptionsJsonMap = jsonValue.GetObject("CodecOptions").GetAllObjects();
for(auto& codecOptionsItem : codecOptionsJsonMap)
{
m_codecOptions[codecOptionsItem.first] = codecOptionsItem.second.AsString();
}
m_codecOptionsHasBeenSet = true;
}
if(jsonValue.ValueExists("KeyframesMaxDist"))
{
m_keyframesMaxDist = jsonValue.GetString("KeyframesMaxDist");
m_keyframesMaxDistHasBeenSet = true;
}
if(jsonValue.ValueExists("FixedGOP"))
{
m_fixedGOP = jsonValue.GetString("FixedGOP");
m_fixedGOPHasBeenSet = true;
}
if(jsonValue.ValueExists("BitRate"))
{
m_bitRate = jsonValue.GetString("BitRate");
m_bitRateHasBeenSet = true;
}
if(jsonValue.ValueExists("FrameRate"))
{
m_frameRate = jsonValue.GetString("FrameRate");
m_frameRateHasBeenSet = true;
}
if(jsonValue.ValueExists("MaxFrameRate"))
{
m_maxFrameRate = jsonValue.GetString("MaxFrameRate");
m_maxFrameRateHasBeenSet = true;
}
if(jsonValue.ValueExists("Resolution"))
{
m_resolution = jsonValue.GetString("Resolution");
m_resolutionHasBeenSet = true;
}
if(jsonValue.ValueExists("AspectRatio"))
{
m_aspectRatio = jsonValue.GetString("AspectRatio");
m_aspectRatioHasBeenSet = true;
}
if(jsonValue.ValueExists("MaxWidth"))
{
m_maxWidth = jsonValue.GetString("MaxWidth");
m_maxWidthHasBeenSet = true;
}
if(jsonValue.ValueExists("MaxHeight"))
{
m_maxHeight = jsonValue.GetString("MaxHeight");
m_maxHeightHasBeenSet = true;
}
if(jsonValue.ValueExists("DisplayAspectRatio"))
{
m_displayAspectRatio = jsonValue.GetString("DisplayAspectRatio");
m_displayAspectRatioHasBeenSet = true;
}
if(jsonValue.ValueExists("SizingPolicy"))
{
m_sizingPolicy = jsonValue.GetString("SizingPolicy");
m_sizingPolicyHasBeenSet = true;
}
if(jsonValue.ValueExists("PaddingPolicy"))
{
m_paddingPolicy = jsonValue.GetString("PaddingPolicy");
m_paddingPolicyHasBeenSet = true;
}
if(jsonValue.ValueExists("Watermarks"))
{
Array<JsonView> watermarksJsonList = jsonValue.GetArray("Watermarks");
for(unsigned watermarksIndex = 0; watermarksIndex < watermarksJsonList.GetLength(); ++watermarksIndex)
{
m_watermarks.push_back(watermarksJsonList[watermarksIndex].AsObject());
}
m_watermarksHasBeenSet = true;
}
return *this;
}
JsonValue VideoParameters::Jsonize() const
{
JsonValue payload;
if(m_codecHasBeenSet)
{
payload.WithString("Codec", m_codec);
}
if(m_codecOptionsHasBeenSet)
{
JsonValue codecOptionsJsonMap;
for(auto& codecOptionsItem : m_codecOptions)
{
codecOptionsJsonMap.WithString(codecOptionsItem.first, codecOptionsItem.second);
}
payload.WithObject("CodecOptions", std::move(codecOptionsJsonMap));
}
if(m_keyframesMaxDistHasBeenSet)
{
payload.WithString("KeyframesMaxDist", m_keyframesMaxDist);
}
if(m_fixedGOPHasBeenSet)
{
payload.WithString("FixedGOP", m_fixedGOP);
}
if(m_bitRateHasBeenSet)
{
payload.WithString("BitRate", m_bitRate);
}
if(m_frameRateHasBeenSet)
{
payload.WithString("FrameRate", m_frameRate);
}
if(m_maxFrameRateHasBeenSet)
{
payload.WithString("MaxFrameRate", m_maxFrameRate);
}
if(m_resolutionHasBeenSet)
{
payload.WithString("Resolution", m_resolution);
}
if(m_aspectRatioHasBeenSet)
{
payload.WithString("AspectRatio", m_aspectRatio);
}
if(m_maxWidthHasBeenSet)
{
payload.WithString("MaxWidth", m_maxWidth);
}
if(m_maxHeightHasBeenSet)
{
payload.WithString("MaxHeight", m_maxHeight);
}
if(m_displayAspectRatioHasBeenSet)
{
payload.WithString("DisplayAspectRatio", m_displayAspectRatio);
}
if(m_sizingPolicyHasBeenSet)
{
payload.WithString("SizingPolicy", m_sizingPolicy);
}
if(m_paddingPolicyHasBeenSet)
{
payload.WithString("PaddingPolicy", m_paddingPolicy);
}
if(m_watermarksHasBeenSet)
{
Array<JsonValue> watermarksJsonList(m_watermarks.size());
for(unsigned watermarksIndex = 0; watermarksIndex < watermarksJsonList.GetLength(); ++watermarksIndex)
{
watermarksJsonList[watermarksIndex].AsObject(m_watermarks[watermarksIndex].Jsonize());
}
payload.WithArray("Watermarks", std::move(watermarksJsonList));
}
return payload;
}
} // namespace Model
} // namespace ElasticTranscoder
} // namespace Aws

View File

@@ -0,0 +1,74 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#include <aws/elastictranscoder/model/Warning.h>
#include <aws/core/utils/json/JsonSerializer.h>
#include <utility>
using namespace Aws::Utils::Json;
using namespace Aws::Utils;
namespace Aws
{
namespace ElasticTranscoder
{
namespace Model
{
Warning::Warning() :
m_codeHasBeenSet(false),
m_messageHasBeenSet(false)
{
}
Warning::Warning(JsonView jsonValue) :
m_codeHasBeenSet(false),
m_messageHasBeenSet(false)
{
*this = jsonValue;
}
Warning& Warning::operator =(JsonView jsonValue)
{
if(jsonValue.ValueExists("Code"))
{
m_code = jsonValue.GetString("Code");
m_codeHasBeenSet = true;
}
if(jsonValue.ValueExists("Message"))
{
m_message = jsonValue.GetString("Message");
m_messageHasBeenSet = true;
}
return *this;
}
JsonValue Warning::Jsonize() const
{
JsonValue payload;
if(m_codeHasBeenSet)
{
payload.WithString("Code", m_code);
}
if(m_messageHasBeenSet)
{
payload.WithString("Message", m_message);
}
return payload;
}
} // namespace Model
} // namespace ElasticTranscoder
} // namespace Aws