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,76 @@
add_project(aws-cpp-sdk-mediapackage-vod "C++ SDK for the AWS mediapackage-vod service" aws-cpp-sdk-core)
file(GLOB AWS_MEDIAPACKAGE-VOD_HEADERS
"include/aws/mediapackage-vod/*.h"
)
file(GLOB AWS_MEDIAPACKAGE-VOD_MODEL_HEADERS
"include/aws/mediapackage-vod/model/*.h"
)
file(GLOB AWS_MEDIAPACKAGE-VOD_SOURCE
"source/*.cpp"
)
file(GLOB AWS_MEDIAPACKAGE-VOD_MODEL_SOURCE
"source/model/*.cpp"
)
file(GLOB MEDIAPACKAGE-VOD_UNIFIED_HEADERS
${AWS_MEDIAPACKAGE-VOD_HEADERS}
${AWS_MEDIAPACKAGE-VOD_MODEL_HEADERS}
)
file(GLOB MEDIAPACKAGE-VOD_UNITY_SRC
${AWS_MEDIAPACKAGE-VOD_SOURCE}
${AWS_MEDIAPACKAGE-VOD_MODEL_SOURCE}
)
if(ENABLE_UNITY_BUILD)
enable_unity_build("MEDIAPACKAGE-VOD" MEDIAPACKAGE-VOD_UNITY_SRC)
endif()
file(GLOB MEDIAPACKAGE-VOD_SRC
${MEDIAPACKAGE-VOD_UNIFIED_HEADERS}
${MEDIAPACKAGE-VOD_UNITY_SRC}
)
if(WIN32)
#if we are compiling for visual studio, create a sane directory tree.
if(MSVC)
source_group("Header Files\\aws\\mediapackage-vod" FILES ${AWS_MEDIAPACKAGE-VOD_HEADERS})
source_group("Header Files\\aws\\mediapackage-vod\\model" FILES ${AWS_MEDIAPACKAGE-VOD_MODEL_HEADERS})
source_group("Source Files" FILES ${AWS_MEDIAPACKAGE-VOD_SOURCE})
source_group("Source Files\\model" FILES ${AWS_MEDIAPACKAGE-VOD_MODEL_SOURCE})
endif(MSVC)
endif()
set(MEDIAPACKAGE-VOD_INCLUDES
"${CMAKE_CURRENT_SOURCE_DIR}/include/"
)
add_library(${PROJECT_NAME} ${MEDIAPACKAGE-VOD_SRC})
add_library(AWS::${PROJECT_NAME} ALIAS ${PROJECT_NAME})
set_compiler_flags(${PROJECT_NAME})
set_compiler_warnings(${PROJECT_NAME})
if(USE_WINDOWS_DLL_SEMANTICS AND BUILD_SHARED_LIBS)
target_compile_definitions(${PROJECT_NAME} PRIVATE "AWS_MEDIAPACKAGEVOD_EXPORTS")
endif()
target_include_directories(${PROJECT_NAME} PUBLIC
$<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/include>
$<INSTALL_INTERFACE:include>)
target_link_libraries(${PROJECT_NAME} PRIVATE ${PLATFORM_DEP_LIBS} ${PROJECT_LIBS})
setup_install()
install (FILES ${AWS_MEDIAPACKAGE-VOD_HEADERS} DESTINATION ${INCLUDE_DIRECTORY}/aws/mediapackage-vod)
install (FILES ${AWS_MEDIAPACKAGE-VOD_MODEL_HEADERS} DESTINATION ${INCLUDE_DIRECTORY}/aws/mediapackage-vod/model)
do_packaging()

View File

@@ -0,0 +1,635 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/mediapackage-vod/MediaPackageVod_EXPORTS.h>
#include <aws/mediapackage-vod/MediaPackageVodErrors.h>
#include <aws/core/client/AWSError.h>
#include <aws/core/client/ClientConfiguration.h>
#include <aws/core/client/AWSClient.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <aws/core/utils/json/JsonSerializer.h>
#include <aws/mediapackage-vod/model/CreateAssetResult.h>
#include <aws/mediapackage-vod/model/CreatePackagingConfigurationResult.h>
#include <aws/mediapackage-vod/model/CreatePackagingGroupResult.h>
#include <aws/mediapackage-vod/model/DeleteAssetResult.h>
#include <aws/mediapackage-vod/model/DeletePackagingConfigurationResult.h>
#include <aws/mediapackage-vod/model/DeletePackagingGroupResult.h>
#include <aws/mediapackage-vod/model/DescribeAssetResult.h>
#include <aws/mediapackage-vod/model/DescribePackagingConfigurationResult.h>
#include <aws/mediapackage-vod/model/DescribePackagingGroupResult.h>
#include <aws/mediapackage-vod/model/ListAssetsResult.h>
#include <aws/mediapackage-vod/model/ListPackagingConfigurationsResult.h>
#include <aws/mediapackage-vod/model/ListPackagingGroupsResult.h>
#include <aws/mediapackage-vod/model/ListTagsForResourceResult.h>
#include <aws/mediapackage-vod/model/UpdatePackagingGroupResult.h>
#include <aws/core/NoResult.h>
#include <aws/core/client/AsyncCallerContext.h>
#include <aws/core/http/HttpTypes.h>
#include <future>
#include <functional>
namespace Aws
{
namespace Http
{
class HttpClient;
class HttpClientFactory;
} // namespace Http
namespace Utils
{
template< typename R, typename E> class Outcome;
namespace Threading
{
class Executor;
} // namespace Threading
} // namespace Utils
namespace Auth
{
class AWSCredentials;
class AWSCredentialsProvider;
} // namespace Auth
namespace Client
{
class RetryStrategy;
} // namespace Client
namespace MediaPackageVod
{
namespace Model
{
class CreateAssetRequest;
class CreatePackagingConfigurationRequest;
class CreatePackagingGroupRequest;
class DeleteAssetRequest;
class DeletePackagingConfigurationRequest;
class DeletePackagingGroupRequest;
class DescribeAssetRequest;
class DescribePackagingConfigurationRequest;
class DescribePackagingGroupRequest;
class ListAssetsRequest;
class ListPackagingConfigurationsRequest;
class ListPackagingGroupsRequest;
class ListTagsForResourceRequest;
class TagResourceRequest;
class UntagResourceRequest;
class UpdatePackagingGroupRequest;
typedef Aws::Utils::Outcome<CreateAssetResult, MediaPackageVodError> CreateAssetOutcome;
typedef Aws::Utils::Outcome<CreatePackagingConfigurationResult, MediaPackageVodError> CreatePackagingConfigurationOutcome;
typedef Aws::Utils::Outcome<CreatePackagingGroupResult, MediaPackageVodError> CreatePackagingGroupOutcome;
typedef Aws::Utils::Outcome<DeleteAssetResult, MediaPackageVodError> DeleteAssetOutcome;
typedef Aws::Utils::Outcome<DeletePackagingConfigurationResult, MediaPackageVodError> DeletePackagingConfigurationOutcome;
typedef Aws::Utils::Outcome<DeletePackagingGroupResult, MediaPackageVodError> DeletePackagingGroupOutcome;
typedef Aws::Utils::Outcome<DescribeAssetResult, MediaPackageVodError> DescribeAssetOutcome;
typedef Aws::Utils::Outcome<DescribePackagingConfigurationResult, MediaPackageVodError> DescribePackagingConfigurationOutcome;
typedef Aws::Utils::Outcome<DescribePackagingGroupResult, MediaPackageVodError> DescribePackagingGroupOutcome;
typedef Aws::Utils::Outcome<ListAssetsResult, MediaPackageVodError> ListAssetsOutcome;
typedef Aws::Utils::Outcome<ListPackagingConfigurationsResult, MediaPackageVodError> ListPackagingConfigurationsOutcome;
typedef Aws::Utils::Outcome<ListPackagingGroupsResult, MediaPackageVodError> ListPackagingGroupsOutcome;
typedef Aws::Utils::Outcome<ListTagsForResourceResult, MediaPackageVodError> ListTagsForResourceOutcome;
typedef Aws::Utils::Outcome<Aws::NoResult, MediaPackageVodError> TagResourceOutcome;
typedef Aws::Utils::Outcome<Aws::NoResult, MediaPackageVodError> UntagResourceOutcome;
typedef Aws::Utils::Outcome<UpdatePackagingGroupResult, MediaPackageVodError> UpdatePackagingGroupOutcome;
typedef std::future<CreateAssetOutcome> CreateAssetOutcomeCallable;
typedef std::future<CreatePackagingConfigurationOutcome> CreatePackagingConfigurationOutcomeCallable;
typedef std::future<CreatePackagingGroupOutcome> CreatePackagingGroupOutcomeCallable;
typedef std::future<DeleteAssetOutcome> DeleteAssetOutcomeCallable;
typedef std::future<DeletePackagingConfigurationOutcome> DeletePackagingConfigurationOutcomeCallable;
typedef std::future<DeletePackagingGroupOutcome> DeletePackagingGroupOutcomeCallable;
typedef std::future<DescribeAssetOutcome> DescribeAssetOutcomeCallable;
typedef std::future<DescribePackagingConfigurationOutcome> DescribePackagingConfigurationOutcomeCallable;
typedef std::future<DescribePackagingGroupOutcome> DescribePackagingGroupOutcomeCallable;
typedef std::future<ListAssetsOutcome> ListAssetsOutcomeCallable;
typedef std::future<ListPackagingConfigurationsOutcome> ListPackagingConfigurationsOutcomeCallable;
typedef std::future<ListPackagingGroupsOutcome> ListPackagingGroupsOutcomeCallable;
typedef std::future<ListTagsForResourceOutcome> ListTagsForResourceOutcomeCallable;
typedef std::future<TagResourceOutcome> TagResourceOutcomeCallable;
typedef std::future<UntagResourceOutcome> UntagResourceOutcomeCallable;
typedef std::future<UpdatePackagingGroupOutcome> UpdatePackagingGroupOutcomeCallable;
} // namespace Model
class MediaPackageVodClient;
typedef std::function<void(const MediaPackageVodClient*, const Model::CreateAssetRequest&, const Model::CreateAssetOutcome&, const std::shared_ptr<const Aws::Client::AsyncCallerContext>&) > CreateAssetResponseReceivedHandler;
typedef std::function<void(const MediaPackageVodClient*, const Model::CreatePackagingConfigurationRequest&, const Model::CreatePackagingConfigurationOutcome&, const std::shared_ptr<const Aws::Client::AsyncCallerContext>&) > CreatePackagingConfigurationResponseReceivedHandler;
typedef std::function<void(const MediaPackageVodClient*, const Model::CreatePackagingGroupRequest&, const Model::CreatePackagingGroupOutcome&, const std::shared_ptr<const Aws::Client::AsyncCallerContext>&) > CreatePackagingGroupResponseReceivedHandler;
typedef std::function<void(const MediaPackageVodClient*, const Model::DeleteAssetRequest&, const Model::DeleteAssetOutcome&, const std::shared_ptr<const Aws::Client::AsyncCallerContext>&) > DeleteAssetResponseReceivedHandler;
typedef std::function<void(const MediaPackageVodClient*, const Model::DeletePackagingConfigurationRequest&, const Model::DeletePackagingConfigurationOutcome&, const std::shared_ptr<const Aws::Client::AsyncCallerContext>&) > DeletePackagingConfigurationResponseReceivedHandler;
typedef std::function<void(const MediaPackageVodClient*, const Model::DeletePackagingGroupRequest&, const Model::DeletePackagingGroupOutcome&, const std::shared_ptr<const Aws::Client::AsyncCallerContext>&) > DeletePackagingGroupResponseReceivedHandler;
typedef std::function<void(const MediaPackageVodClient*, const Model::DescribeAssetRequest&, const Model::DescribeAssetOutcome&, const std::shared_ptr<const Aws::Client::AsyncCallerContext>&) > DescribeAssetResponseReceivedHandler;
typedef std::function<void(const MediaPackageVodClient*, const Model::DescribePackagingConfigurationRequest&, const Model::DescribePackagingConfigurationOutcome&, const std::shared_ptr<const Aws::Client::AsyncCallerContext>&) > DescribePackagingConfigurationResponseReceivedHandler;
typedef std::function<void(const MediaPackageVodClient*, const Model::DescribePackagingGroupRequest&, const Model::DescribePackagingGroupOutcome&, const std::shared_ptr<const Aws::Client::AsyncCallerContext>&) > DescribePackagingGroupResponseReceivedHandler;
typedef std::function<void(const MediaPackageVodClient*, const Model::ListAssetsRequest&, const Model::ListAssetsOutcome&, const std::shared_ptr<const Aws::Client::AsyncCallerContext>&) > ListAssetsResponseReceivedHandler;
typedef std::function<void(const MediaPackageVodClient*, const Model::ListPackagingConfigurationsRequest&, const Model::ListPackagingConfigurationsOutcome&, const std::shared_ptr<const Aws::Client::AsyncCallerContext>&) > ListPackagingConfigurationsResponseReceivedHandler;
typedef std::function<void(const MediaPackageVodClient*, const Model::ListPackagingGroupsRequest&, const Model::ListPackagingGroupsOutcome&, const std::shared_ptr<const Aws::Client::AsyncCallerContext>&) > ListPackagingGroupsResponseReceivedHandler;
typedef std::function<void(const MediaPackageVodClient*, const Model::ListTagsForResourceRequest&, const Model::ListTagsForResourceOutcome&, const std::shared_ptr<const Aws::Client::AsyncCallerContext>&) > ListTagsForResourceResponseReceivedHandler;
typedef std::function<void(const MediaPackageVodClient*, const Model::TagResourceRequest&, const Model::TagResourceOutcome&, const std::shared_ptr<const Aws::Client::AsyncCallerContext>&) > TagResourceResponseReceivedHandler;
typedef std::function<void(const MediaPackageVodClient*, const Model::UntagResourceRequest&, const Model::UntagResourceOutcome&, const std::shared_ptr<const Aws::Client::AsyncCallerContext>&) > UntagResourceResponseReceivedHandler;
typedef std::function<void(const MediaPackageVodClient*, const Model::UpdatePackagingGroupRequest&, const Model::UpdatePackagingGroupOutcome&, const std::shared_ptr<const Aws::Client::AsyncCallerContext>&) > UpdatePackagingGroupResponseReceivedHandler;
/**
* AWS Elemental MediaPackage VOD
*/
class AWS_MEDIAPACKAGEVOD_API MediaPackageVodClient : public Aws::Client::AWSJsonClient
{
public:
typedef Aws::Client::AWSJsonClient BASECLASS;
/**
* Initializes client to use DefaultCredentialProviderChain, with default http client factory, and optional client config. If client config
* is not specified, it will be initialized to default values.
*/
MediaPackageVodClient(const Aws::Client::ClientConfiguration& clientConfiguration = Aws::Client::ClientConfiguration());
/**
* Initializes client to use SimpleAWSCredentialsProvider, with default http client factory, and optional client config. If client config
* is not specified, it will be initialized to default values.
*/
MediaPackageVodClient(const Aws::Auth::AWSCredentials& credentials, const Aws::Client::ClientConfiguration& clientConfiguration = Aws::Client::ClientConfiguration());
/**
* Initializes client to use specified credentials provider with specified client config. If http client factory is not supplied,
* the default http client factory will be used
*/
MediaPackageVodClient(const std::shared_ptr<Aws::Auth::AWSCredentialsProvider>& credentialsProvider,
const Aws::Client::ClientConfiguration& clientConfiguration = Aws::Client::ClientConfiguration());
virtual ~MediaPackageVodClient();
/**
* Creates a new MediaPackage VOD Asset resource.<p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/mediapackage-vod-2018-11-07/CreateAsset">AWS
* API Reference</a></p>
*/
virtual Model::CreateAssetOutcome CreateAsset(const Model::CreateAssetRequest& request) const;
/**
* Creates a new MediaPackage VOD Asset resource.<p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/mediapackage-vod-2018-11-07/CreateAsset">AWS
* API Reference</a></p>
*
* returns a future to the operation so that it can be executed in parallel to other requests.
*/
virtual Model::CreateAssetOutcomeCallable CreateAssetCallable(const Model::CreateAssetRequest& request) const;
/**
* Creates a new MediaPackage VOD Asset resource.<p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/mediapackage-vod-2018-11-07/CreateAsset">AWS
* API Reference</a></p>
*
* Queues the request into a thread executor and triggers associated callback when operation has finished.
*/
virtual void CreateAssetAsync(const Model::CreateAssetRequest& request, const CreateAssetResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context = nullptr) const;
/**
* Creates a new MediaPackage VOD PackagingConfiguration resource.<p><h3>See
* Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/mediapackage-vod-2018-11-07/CreatePackagingConfiguration">AWS
* API Reference</a></p>
*/
virtual Model::CreatePackagingConfigurationOutcome CreatePackagingConfiguration(const Model::CreatePackagingConfigurationRequest& request) const;
/**
* Creates a new MediaPackage VOD PackagingConfiguration resource.<p><h3>See
* Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/mediapackage-vod-2018-11-07/CreatePackagingConfiguration">AWS
* API Reference</a></p>
*
* returns a future to the operation so that it can be executed in parallel to other requests.
*/
virtual Model::CreatePackagingConfigurationOutcomeCallable CreatePackagingConfigurationCallable(const Model::CreatePackagingConfigurationRequest& request) const;
/**
* Creates a new MediaPackage VOD PackagingConfiguration resource.<p><h3>See
* Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/mediapackage-vod-2018-11-07/CreatePackagingConfiguration">AWS
* API Reference</a></p>
*
* Queues the request into a thread executor and triggers associated callback when operation has finished.
*/
virtual void CreatePackagingConfigurationAsync(const Model::CreatePackagingConfigurationRequest& request, const CreatePackagingConfigurationResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context = nullptr) const;
/**
* Creates a new MediaPackage VOD PackagingGroup resource.<p><h3>See Also:</h3>
* <a
* href="http://docs.aws.amazon.com/goto/WebAPI/mediapackage-vod-2018-11-07/CreatePackagingGroup">AWS
* API Reference</a></p>
*/
virtual Model::CreatePackagingGroupOutcome CreatePackagingGroup(const Model::CreatePackagingGroupRequest& request) const;
/**
* Creates a new MediaPackage VOD PackagingGroup resource.<p><h3>See Also:</h3>
* <a
* href="http://docs.aws.amazon.com/goto/WebAPI/mediapackage-vod-2018-11-07/CreatePackagingGroup">AWS
* API Reference</a></p>
*
* returns a future to the operation so that it can be executed in parallel to other requests.
*/
virtual Model::CreatePackagingGroupOutcomeCallable CreatePackagingGroupCallable(const Model::CreatePackagingGroupRequest& request) const;
/**
* Creates a new MediaPackage VOD PackagingGroup resource.<p><h3>See Also:</h3>
* <a
* href="http://docs.aws.amazon.com/goto/WebAPI/mediapackage-vod-2018-11-07/CreatePackagingGroup">AWS
* API Reference</a></p>
*
* Queues the request into a thread executor and triggers associated callback when operation has finished.
*/
virtual void CreatePackagingGroupAsync(const Model::CreatePackagingGroupRequest& request, const CreatePackagingGroupResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context = nullptr) const;
/**
* Deletes an existing MediaPackage VOD Asset resource.<p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/mediapackage-vod-2018-11-07/DeleteAsset">AWS
* API Reference</a></p>
*/
virtual Model::DeleteAssetOutcome DeleteAsset(const Model::DeleteAssetRequest& request) const;
/**
* Deletes an existing MediaPackage VOD Asset resource.<p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/mediapackage-vod-2018-11-07/DeleteAsset">AWS
* API Reference</a></p>
*
* returns a future to the operation so that it can be executed in parallel to other requests.
*/
virtual Model::DeleteAssetOutcomeCallable DeleteAssetCallable(const Model::DeleteAssetRequest& request) const;
/**
* Deletes an existing MediaPackage VOD Asset resource.<p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/mediapackage-vod-2018-11-07/DeleteAsset">AWS
* API Reference</a></p>
*
* Queues the request into a thread executor and triggers associated callback when operation has finished.
*/
virtual void DeleteAssetAsync(const Model::DeleteAssetRequest& request, const DeleteAssetResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context = nullptr) const;
/**
* Deletes a MediaPackage VOD PackagingConfiguration resource.<p><h3>See Also:</h3>
* <a
* href="http://docs.aws.amazon.com/goto/WebAPI/mediapackage-vod-2018-11-07/DeletePackagingConfiguration">AWS
* API Reference</a></p>
*/
virtual Model::DeletePackagingConfigurationOutcome DeletePackagingConfiguration(const Model::DeletePackagingConfigurationRequest& request) const;
/**
* Deletes a MediaPackage VOD PackagingConfiguration resource.<p><h3>See Also:</h3>
* <a
* href="http://docs.aws.amazon.com/goto/WebAPI/mediapackage-vod-2018-11-07/DeletePackagingConfiguration">AWS
* API Reference</a></p>
*
* returns a future to the operation so that it can be executed in parallel to other requests.
*/
virtual Model::DeletePackagingConfigurationOutcomeCallable DeletePackagingConfigurationCallable(const Model::DeletePackagingConfigurationRequest& request) const;
/**
* Deletes a MediaPackage VOD PackagingConfiguration resource.<p><h3>See Also:</h3>
* <a
* href="http://docs.aws.amazon.com/goto/WebAPI/mediapackage-vod-2018-11-07/DeletePackagingConfiguration">AWS
* API Reference</a></p>
*
* Queues the request into a thread executor and triggers associated callback when operation has finished.
*/
virtual void DeletePackagingConfigurationAsync(const Model::DeletePackagingConfigurationRequest& request, const DeletePackagingConfigurationResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context = nullptr) const;
/**
* Deletes a MediaPackage VOD PackagingGroup resource.<p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/mediapackage-vod-2018-11-07/DeletePackagingGroup">AWS
* API Reference</a></p>
*/
virtual Model::DeletePackagingGroupOutcome DeletePackagingGroup(const Model::DeletePackagingGroupRequest& request) const;
/**
* Deletes a MediaPackage VOD PackagingGroup resource.<p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/mediapackage-vod-2018-11-07/DeletePackagingGroup">AWS
* API Reference</a></p>
*
* returns a future to the operation so that it can be executed in parallel to other requests.
*/
virtual Model::DeletePackagingGroupOutcomeCallable DeletePackagingGroupCallable(const Model::DeletePackagingGroupRequest& request) const;
/**
* Deletes a MediaPackage VOD PackagingGroup resource.<p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/mediapackage-vod-2018-11-07/DeletePackagingGroup">AWS
* API Reference</a></p>
*
* Queues the request into a thread executor and triggers associated callback when operation has finished.
*/
virtual void DeletePackagingGroupAsync(const Model::DeletePackagingGroupRequest& request, const DeletePackagingGroupResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context = nullptr) const;
/**
* Returns a description of a MediaPackage VOD Asset resource.<p><h3>See Also:</h3>
* <a
* href="http://docs.aws.amazon.com/goto/WebAPI/mediapackage-vod-2018-11-07/DescribeAsset">AWS
* API Reference</a></p>
*/
virtual Model::DescribeAssetOutcome DescribeAsset(const Model::DescribeAssetRequest& request) const;
/**
* Returns a description of a MediaPackage VOD Asset resource.<p><h3>See Also:</h3>
* <a
* href="http://docs.aws.amazon.com/goto/WebAPI/mediapackage-vod-2018-11-07/DescribeAsset">AWS
* API Reference</a></p>
*
* returns a future to the operation so that it can be executed in parallel to other requests.
*/
virtual Model::DescribeAssetOutcomeCallable DescribeAssetCallable(const Model::DescribeAssetRequest& request) const;
/**
* Returns a description of a MediaPackage VOD Asset resource.<p><h3>See Also:</h3>
* <a
* href="http://docs.aws.amazon.com/goto/WebAPI/mediapackage-vod-2018-11-07/DescribeAsset">AWS
* API Reference</a></p>
*
* Queues the request into a thread executor and triggers associated callback when operation has finished.
*/
virtual void DescribeAssetAsync(const Model::DescribeAssetRequest& request, const DescribeAssetResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context = nullptr) const;
/**
* Returns a description of a MediaPackage VOD PackagingConfiguration
* resource.<p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/mediapackage-vod-2018-11-07/DescribePackagingConfiguration">AWS
* API Reference</a></p>
*/
virtual Model::DescribePackagingConfigurationOutcome DescribePackagingConfiguration(const Model::DescribePackagingConfigurationRequest& request) const;
/**
* Returns a description of a MediaPackage VOD PackagingConfiguration
* resource.<p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/mediapackage-vod-2018-11-07/DescribePackagingConfiguration">AWS
* API Reference</a></p>
*
* returns a future to the operation so that it can be executed in parallel to other requests.
*/
virtual Model::DescribePackagingConfigurationOutcomeCallable DescribePackagingConfigurationCallable(const Model::DescribePackagingConfigurationRequest& request) const;
/**
* Returns a description of a MediaPackage VOD PackagingConfiguration
* resource.<p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/mediapackage-vod-2018-11-07/DescribePackagingConfiguration">AWS
* API Reference</a></p>
*
* Queues the request into a thread executor and triggers associated callback when operation has finished.
*/
virtual void DescribePackagingConfigurationAsync(const Model::DescribePackagingConfigurationRequest& request, const DescribePackagingConfigurationResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context = nullptr) const;
/**
* Returns a description of a MediaPackage VOD PackagingGroup resource.<p><h3>See
* Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/mediapackage-vod-2018-11-07/DescribePackagingGroup">AWS
* API Reference</a></p>
*/
virtual Model::DescribePackagingGroupOutcome DescribePackagingGroup(const Model::DescribePackagingGroupRequest& request) const;
/**
* Returns a description of a MediaPackage VOD PackagingGroup resource.<p><h3>See
* Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/mediapackage-vod-2018-11-07/DescribePackagingGroup">AWS
* API Reference</a></p>
*
* returns a future to the operation so that it can be executed in parallel to other requests.
*/
virtual Model::DescribePackagingGroupOutcomeCallable DescribePackagingGroupCallable(const Model::DescribePackagingGroupRequest& request) const;
/**
* Returns a description of a MediaPackage VOD PackagingGroup resource.<p><h3>See
* Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/mediapackage-vod-2018-11-07/DescribePackagingGroup">AWS
* API Reference</a></p>
*
* Queues the request into a thread executor and triggers associated callback when operation has finished.
*/
virtual void DescribePackagingGroupAsync(const Model::DescribePackagingGroupRequest& request, const DescribePackagingGroupResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context = nullptr) const;
/**
* Returns a collection of MediaPackage VOD Asset resources.<p><h3>See Also:</h3>
* <a
* href="http://docs.aws.amazon.com/goto/WebAPI/mediapackage-vod-2018-11-07/ListAssets">AWS
* API Reference</a></p>
*/
virtual Model::ListAssetsOutcome ListAssets(const Model::ListAssetsRequest& request) const;
/**
* Returns a collection of MediaPackage VOD Asset resources.<p><h3>See Also:</h3>
* <a
* href="http://docs.aws.amazon.com/goto/WebAPI/mediapackage-vod-2018-11-07/ListAssets">AWS
* API Reference</a></p>
*
* returns a future to the operation so that it can be executed in parallel to other requests.
*/
virtual Model::ListAssetsOutcomeCallable ListAssetsCallable(const Model::ListAssetsRequest& request) const;
/**
* Returns a collection of MediaPackage VOD Asset resources.<p><h3>See Also:</h3>
* <a
* href="http://docs.aws.amazon.com/goto/WebAPI/mediapackage-vod-2018-11-07/ListAssets">AWS
* API Reference</a></p>
*
* Queues the request into a thread executor and triggers associated callback when operation has finished.
*/
virtual void ListAssetsAsync(const Model::ListAssetsRequest& request, const ListAssetsResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context = nullptr) const;
/**
* Returns a collection of MediaPackage VOD PackagingConfiguration
* resources.<p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/mediapackage-vod-2018-11-07/ListPackagingConfigurations">AWS
* API Reference</a></p>
*/
virtual Model::ListPackagingConfigurationsOutcome ListPackagingConfigurations(const Model::ListPackagingConfigurationsRequest& request) const;
/**
* Returns a collection of MediaPackage VOD PackagingConfiguration
* resources.<p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/mediapackage-vod-2018-11-07/ListPackagingConfigurations">AWS
* API Reference</a></p>
*
* returns a future to the operation so that it can be executed in parallel to other requests.
*/
virtual Model::ListPackagingConfigurationsOutcomeCallable ListPackagingConfigurationsCallable(const Model::ListPackagingConfigurationsRequest& request) const;
/**
* Returns a collection of MediaPackage VOD PackagingConfiguration
* resources.<p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/mediapackage-vod-2018-11-07/ListPackagingConfigurations">AWS
* API Reference</a></p>
*
* Queues the request into a thread executor and triggers associated callback when operation has finished.
*/
virtual void ListPackagingConfigurationsAsync(const Model::ListPackagingConfigurationsRequest& request, const ListPackagingConfigurationsResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context = nullptr) const;
/**
* Returns a collection of MediaPackage VOD PackagingGroup resources.<p><h3>See
* Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/mediapackage-vod-2018-11-07/ListPackagingGroups">AWS
* API Reference</a></p>
*/
virtual Model::ListPackagingGroupsOutcome ListPackagingGroups(const Model::ListPackagingGroupsRequest& request) const;
/**
* Returns a collection of MediaPackage VOD PackagingGroup resources.<p><h3>See
* Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/mediapackage-vod-2018-11-07/ListPackagingGroups">AWS
* API Reference</a></p>
*
* returns a future to the operation so that it can be executed in parallel to other requests.
*/
virtual Model::ListPackagingGroupsOutcomeCallable ListPackagingGroupsCallable(const Model::ListPackagingGroupsRequest& request) const;
/**
* Returns a collection of MediaPackage VOD PackagingGroup resources.<p><h3>See
* Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/mediapackage-vod-2018-11-07/ListPackagingGroups">AWS
* API Reference</a></p>
*
* Queues the request into a thread executor and triggers associated callback when operation has finished.
*/
virtual void ListPackagingGroupsAsync(const Model::ListPackagingGroupsRequest& request, const ListPackagingGroupsResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context = nullptr) const;
/**
* Returns a list of the tags assigned to the specified resource.<p><h3>See
* Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/mediapackage-vod-2018-11-07/ListTagsForResource">AWS
* API Reference</a></p>
*/
virtual Model::ListTagsForResourceOutcome ListTagsForResource(const Model::ListTagsForResourceRequest& request) const;
/**
* Returns a list of the tags assigned to the specified resource.<p><h3>See
* Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/mediapackage-vod-2018-11-07/ListTagsForResource">AWS
* API Reference</a></p>
*
* returns a future to the operation so that it can be executed in parallel to other requests.
*/
virtual Model::ListTagsForResourceOutcomeCallable ListTagsForResourceCallable(const Model::ListTagsForResourceRequest& request) const;
/**
* Returns a list of the tags assigned to the specified resource.<p><h3>See
* Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/mediapackage-vod-2018-11-07/ListTagsForResource">AWS
* API Reference</a></p>
*
* Queues the request into a thread executor and triggers associated callback when operation has finished.
*/
virtual void ListTagsForResourceAsync(const Model::ListTagsForResourceRequest& request, const ListTagsForResourceResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context = nullptr) const;
/**
* Adds tags to the specified resource. You can specify one or more tags to
* add.<p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/mediapackage-vod-2018-11-07/TagResource">AWS
* API Reference</a></p>
*/
virtual Model::TagResourceOutcome TagResource(const Model::TagResourceRequest& request) const;
/**
* Adds tags to the specified resource. You can specify one or more tags to
* add.<p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/mediapackage-vod-2018-11-07/TagResource">AWS
* API Reference</a></p>
*
* returns a future to the operation so that it can be executed in parallel to other requests.
*/
virtual Model::TagResourceOutcomeCallable TagResourceCallable(const Model::TagResourceRequest& request) const;
/**
* Adds tags to the specified resource. You can specify one or more tags to
* add.<p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/mediapackage-vod-2018-11-07/TagResource">AWS
* API Reference</a></p>
*
* Queues the request into a thread executor and triggers associated callback when operation has finished.
*/
virtual void TagResourceAsync(const Model::TagResourceRequest& request, const TagResourceResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context = nullptr) const;
/**
* Removes tags from the specified resource. You can specify one or more tags to
* remove.<p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/mediapackage-vod-2018-11-07/UntagResource">AWS
* API Reference</a></p>
*/
virtual Model::UntagResourceOutcome UntagResource(const Model::UntagResourceRequest& request) const;
/**
* Removes tags from the specified resource. You can specify one or more tags to
* remove.<p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/mediapackage-vod-2018-11-07/UntagResource">AWS
* API Reference</a></p>
*
* returns a future to the operation so that it can be executed in parallel to other requests.
*/
virtual Model::UntagResourceOutcomeCallable UntagResourceCallable(const Model::UntagResourceRequest& request) const;
/**
* Removes tags from the specified resource. You can specify one or more tags to
* remove.<p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/mediapackage-vod-2018-11-07/UntagResource">AWS
* API Reference</a></p>
*
* Queues the request into a thread executor and triggers associated callback when operation has finished.
*/
virtual void UntagResourceAsync(const Model::UntagResourceRequest& request, const UntagResourceResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context = nullptr) const;
/**
* Updates a specific packaging group. You can't change the id attribute or any
* other system-generated attributes.<p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/mediapackage-vod-2018-11-07/UpdatePackagingGroup">AWS
* API Reference</a></p>
*/
virtual Model::UpdatePackagingGroupOutcome UpdatePackagingGroup(const Model::UpdatePackagingGroupRequest& request) const;
/**
* Updates a specific packaging group. You can't change the id attribute or any
* other system-generated attributes.<p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/mediapackage-vod-2018-11-07/UpdatePackagingGroup">AWS
* API Reference</a></p>
*
* returns a future to the operation so that it can be executed in parallel to other requests.
*/
virtual Model::UpdatePackagingGroupOutcomeCallable UpdatePackagingGroupCallable(const Model::UpdatePackagingGroupRequest& request) const;
/**
* Updates a specific packaging group. You can't change the id attribute or any
* other system-generated attributes.<p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/mediapackage-vod-2018-11-07/UpdatePackagingGroup">AWS
* API Reference</a></p>
*
* Queues the request into a thread executor and triggers associated callback when operation has finished.
*/
virtual void UpdatePackagingGroupAsync(const Model::UpdatePackagingGroupRequest& request, const UpdatePackagingGroupResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context = nullptr) const;
void OverrideEndpoint(const Aws::String& endpoint);
private:
void init(const Aws::Client::ClientConfiguration& clientConfiguration);
void CreateAssetAsyncHelper(const Model::CreateAssetRequest& request, const CreateAssetResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context) const;
void CreatePackagingConfigurationAsyncHelper(const Model::CreatePackagingConfigurationRequest& request, const CreatePackagingConfigurationResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context) const;
void CreatePackagingGroupAsyncHelper(const Model::CreatePackagingGroupRequest& request, const CreatePackagingGroupResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context) const;
void DeleteAssetAsyncHelper(const Model::DeleteAssetRequest& request, const DeleteAssetResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context) const;
void DeletePackagingConfigurationAsyncHelper(const Model::DeletePackagingConfigurationRequest& request, const DeletePackagingConfigurationResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context) const;
void DeletePackagingGroupAsyncHelper(const Model::DeletePackagingGroupRequest& request, const DeletePackagingGroupResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context) const;
void DescribeAssetAsyncHelper(const Model::DescribeAssetRequest& request, const DescribeAssetResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context) const;
void DescribePackagingConfigurationAsyncHelper(const Model::DescribePackagingConfigurationRequest& request, const DescribePackagingConfigurationResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context) const;
void DescribePackagingGroupAsyncHelper(const Model::DescribePackagingGroupRequest& request, const DescribePackagingGroupResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context) const;
void ListAssetsAsyncHelper(const Model::ListAssetsRequest& request, const ListAssetsResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context) const;
void ListPackagingConfigurationsAsyncHelper(const Model::ListPackagingConfigurationsRequest& request, const ListPackagingConfigurationsResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context) const;
void ListPackagingGroupsAsyncHelper(const Model::ListPackagingGroupsRequest& request, const ListPackagingGroupsResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context) const;
void ListTagsForResourceAsyncHelper(const Model::ListTagsForResourceRequest& request, const ListTagsForResourceResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context) const;
void TagResourceAsyncHelper(const Model::TagResourceRequest& request, const TagResourceResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context) const;
void UntagResourceAsyncHelper(const Model::UntagResourceRequest& request, const UntagResourceResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context) const;
void UpdatePackagingGroupAsyncHelper(const Model::UpdatePackagingGroupRequest& request, const UpdatePackagingGroupResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context) const;
Aws::String m_uri;
Aws::String m_configScheme;
std::shared_ptr<Aws::Utils::Threading::Executor> m_executor;
};
} // namespace MediaPackageVod
} // namespace Aws

View File

@@ -0,0 +1,21 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/mediapackage-vod/MediaPackageVod_EXPORTS.h>
#include <aws/core/Region.h>
#include <aws/core/utils/memory/stl/AWSString.h>
namespace Aws
{
namespace MediaPackageVod
{
namespace MediaPackageVodEndpoint
{
AWS_MEDIAPACKAGEVOD_API Aws::String ForRegion(const Aws::String& regionName, bool useDualStack = false);
} // namespace MediaPackageVodEndpoint
} // namespace MediaPackageVod
} // namespace Aws

View File

@@ -0,0 +1,23 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/mediapackage-vod/MediaPackageVod_EXPORTS.h>
#include <aws/core/client/AWSErrorMarshaller.h>
namespace Aws
{
namespace Client
{
class AWS_MEDIAPACKAGEVOD_API MediaPackageVodErrorMarshaller : public Aws::Client::JsonErrorMarshaller
{
public:
Aws::Client::AWSError<Aws::Client::CoreErrors> FindErrorByName(const char* exceptionName) const override;
};
} // namespace Client
} // namespace Aws

View File

@@ -0,0 +1,76 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/core/client/AWSError.h>
#include <aws/core/client/CoreErrors.h>
#include <aws/mediapackage-vod/MediaPackageVod_EXPORTS.h>
namespace Aws
{
namespace MediaPackageVod
{
enum class MediaPackageVodErrors
{
//From Core//
//////////////////////////////////////////////////////////////////////////////////////////
INCOMPLETE_SIGNATURE = 0,
INTERNAL_FAILURE = 1,
INVALID_ACTION = 2,
INVALID_CLIENT_TOKEN_ID = 3,
INVALID_PARAMETER_COMBINATION = 4,
INVALID_QUERY_PARAMETER = 5,
INVALID_PARAMETER_VALUE = 6,
MISSING_ACTION = 7, // SDK should never allow
MISSING_AUTHENTICATION_TOKEN = 8, // SDK should never allow
MISSING_PARAMETER = 9, // SDK should never allow
OPT_IN_REQUIRED = 10,
REQUEST_EXPIRED = 11,
SERVICE_UNAVAILABLE = 12,
THROTTLING = 13,
VALIDATION = 14,
ACCESS_DENIED = 15,
RESOURCE_NOT_FOUND = 16,
UNRECOGNIZED_CLIENT = 17,
MALFORMED_QUERY_STRING = 18,
SLOW_DOWN = 19,
REQUEST_TIME_TOO_SKEWED = 20,
INVALID_SIGNATURE = 21,
SIGNATURE_DOES_NOT_MATCH = 22,
INVALID_ACCESS_KEY_ID = 23,
REQUEST_TIMEOUT = 24,
NETWORK_CONNECTION = 99,
UNKNOWN = 100,
///////////////////////////////////////////////////////////////////////////////////////////
FORBIDDEN= static_cast<int>(Aws::Client::CoreErrors::SERVICE_EXTENSION_START_RANGE) + 1,
INTERNAL_SERVER_ERROR,
NOT_FOUND,
TOO_MANY_REQUESTS,
UNPROCESSABLE_ENTITY
};
class AWS_MEDIAPACKAGEVOD_API MediaPackageVodError : public Aws::Client::AWSError<MediaPackageVodErrors>
{
public:
MediaPackageVodError() {}
MediaPackageVodError(const Aws::Client::AWSError<Aws::Client::CoreErrors>& rhs) : Aws::Client::AWSError<MediaPackageVodErrors>(rhs) {}
MediaPackageVodError(Aws::Client::AWSError<Aws::Client::CoreErrors>&& rhs) : Aws::Client::AWSError<MediaPackageVodErrors>(rhs) {}
MediaPackageVodError(const Aws::Client::AWSError<MediaPackageVodErrors>& rhs) : Aws::Client::AWSError<MediaPackageVodErrors>(rhs) {}
MediaPackageVodError(Aws::Client::AWSError<MediaPackageVodErrors>&& rhs) : Aws::Client::AWSError<MediaPackageVodErrors>(rhs) {}
template <typename T>
T GetModeledError();
};
namespace MediaPackageVodErrorMapper
{
AWS_MEDIAPACKAGEVOD_API Aws::Client::AWSError<Aws::Client::CoreErrors> GetErrorForName(const char* errorName);
}
} // namespace MediaPackageVod
} // namespace Aws

View File

@@ -0,0 +1,42 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/mediapackage-vod/MediaPackageVod_EXPORTS.h>
#include <aws/core/AmazonSerializableWebServiceRequest.h>
#include <aws/core/utils/UnreferencedParam.h>
#include <aws/core/http/HttpRequest.h>
namespace Aws
{
namespace MediaPackageVod
{
class AWS_MEDIAPACKAGEVOD_API MediaPackageVodRequest : public Aws::AmazonSerializableWebServiceRequest
{
public:
virtual ~MediaPackageVodRequest () {}
void AddParametersToRequest(Aws::Http::HttpRequest& httpRequest) const { AWS_UNREFERENCED_PARAM(httpRequest); }
inline Aws::Http::HeaderValueCollection GetHeaders() const override
{
auto headers = GetRequestSpecificHeaders();
if(headers.size() == 0 || (headers.size() > 0 && headers.count(Aws::Http::CONTENT_TYPE_HEADER) == 0))
{
headers.emplace(Aws::Http::HeaderValuePair(Aws::Http::CONTENT_TYPE_HEADER, Aws::AMZN_JSON_CONTENT_TYPE_1_1 ));
}
headers.emplace(Aws::Http::HeaderValuePair(Aws::Http::API_VERSION_HEADER, "2018-11-07"));
return headers;
}
protected:
virtual Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const { return Aws::Http::HeaderValueCollection(); }
};
} // namespace MediaPackageVod
} // namespace Aws

View File

@@ -0,0 +1,29 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#ifdef _MSC_VER
//disable windows complaining about max template size.
#pragma warning (disable : 4503)
#endif // _MSC_VER
#if defined (USE_WINDOWS_DLL_SEMANTICS) || defined (_WIN32)
#ifdef _MSC_VER
#pragma warning(disable : 4251)
#endif // _MSC_VER
#ifdef USE_IMPORT_EXPORT
#ifdef AWS_MEDIAPACKAGEVOD_EXPORTS
#define AWS_MEDIAPACKAGEVOD_API __declspec(dllexport)
#else
#define AWS_MEDIAPACKAGEVOD_API __declspec(dllimport)
#endif /* AWS_MEDIAPACKAGEVOD_EXPORTS */
#else
#define AWS_MEDIAPACKAGEVOD_API
#endif // USE_IMPORT_EXPORT
#else // defined (USE_WINDOWS_DLL_SEMANTICS) || defined (WIN32)
#define AWS_MEDIAPACKAGEVOD_API
#endif // defined (USE_WINDOWS_DLL_SEMANTICS) || defined (WIN32)

View File

@@ -0,0 +1,32 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/mediapackage-vod/MediaPackageVod_EXPORTS.h>
#include <aws/core/utils/memory/stl/AWSString.h>
namespace Aws
{
namespace MediaPackageVod
{
namespace Model
{
enum class AdMarkers
{
NOT_SET,
NONE,
SCTE35_ENHANCED,
PASSTHROUGH
};
namespace AdMarkersMapper
{
AWS_MEDIAPACKAGEVOD_API AdMarkers GetAdMarkersForName(const Aws::String& name);
AWS_MEDIAPACKAGEVOD_API Aws::String GetNameForAdMarkers(AdMarkers value);
} // namespace AdMarkersMapper
} // namespace Model
} // namespace MediaPackageVod
} // namespace Aws

View File

@@ -0,0 +1,396 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/mediapackage-vod/MediaPackageVod_EXPORTS.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <aws/core/utils/memory/stl/AWSMap.h>
#include <utility>
namespace Aws
{
namespace Utils
{
namespace Json
{
class JsonValue;
class JsonView;
} // namespace Json
} // namespace Utils
namespace MediaPackageVod
{
namespace Model
{
/**
* A MediaPackage VOD Asset resource.<p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/mediapackage-vod-2018-11-07/AssetShallow">AWS
* API Reference</a></p>
*/
class AWS_MEDIAPACKAGEVOD_API AssetShallow
{
public:
AssetShallow();
AssetShallow(Aws::Utils::Json::JsonView jsonValue);
AssetShallow& operator=(Aws::Utils::Json::JsonView jsonValue);
Aws::Utils::Json::JsonValue Jsonize() const;
/**
* The ARN of the Asset.
*/
inline const Aws::String& GetArn() const{ return m_arn; }
/**
* The ARN of the Asset.
*/
inline bool ArnHasBeenSet() const { return m_arnHasBeenSet; }
/**
* The ARN of the Asset.
*/
inline void SetArn(const Aws::String& value) { m_arnHasBeenSet = true; m_arn = value; }
/**
* The ARN of the Asset.
*/
inline void SetArn(Aws::String&& value) { m_arnHasBeenSet = true; m_arn = std::move(value); }
/**
* The ARN of the Asset.
*/
inline void SetArn(const char* value) { m_arnHasBeenSet = true; m_arn.assign(value); }
/**
* The ARN of the Asset.
*/
inline AssetShallow& WithArn(const Aws::String& value) { SetArn(value); return *this;}
/**
* The ARN of the Asset.
*/
inline AssetShallow& WithArn(Aws::String&& value) { SetArn(std::move(value)); return *this;}
/**
* The ARN of the Asset.
*/
inline AssetShallow& WithArn(const char* value) { SetArn(value); return *this;}
/**
* The time the Asset was initially submitted for Ingest.
*/
inline const Aws::String& GetCreatedAt() const{ return m_createdAt; }
/**
* The time the Asset was initially submitted for Ingest.
*/
inline bool CreatedAtHasBeenSet() const { return m_createdAtHasBeenSet; }
/**
* The time the Asset was initially submitted for Ingest.
*/
inline void SetCreatedAt(const Aws::String& value) { m_createdAtHasBeenSet = true; m_createdAt = value; }
/**
* The time the Asset was initially submitted for Ingest.
*/
inline void SetCreatedAt(Aws::String&& value) { m_createdAtHasBeenSet = true; m_createdAt = std::move(value); }
/**
* The time the Asset was initially submitted for Ingest.
*/
inline void SetCreatedAt(const char* value) { m_createdAtHasBeenSet = true; m_createdAt.assign(value); }
/**
* The time the Asset was initially submitted for Ingest.
*/
inline AssetShallow& WithCreatedAt(const Aws::String& value) { SetCreatedAt(value); return *this;}
/**
* The time the Asset was initially submitted for Ingest.
*/
inline AssetShallow& WithCreatedAt(Aws::String&& value) { SetCreatedAt(std::move(value)); return *this;}
/**
* The time the Asset was initially submitted for Ingest.
*/
inline AssetShallow& WithCreatedAt(const char* value) { SetCreatedAt(value); return *this;}
/**
* The unique identifier for the Asset.
*/
inline const Aws::String& GetId() const{ return m_id; }
/**
* The unique identifier for the Asset.
*/
inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
/**
* The unique identifier for the Asset.
*/
inline void SetId(const Aws::String& value) { m_idHasBeenSet = true; m_id = value; }
/**
* The unique identifier for the Asset.
*/
inline void SetId(Aws::String&& value) { m_idHasBeenSet = true; m_id = std::move(value); }
/**
* The unique identifier for the Asset.
*/
inline void SetId(const char* value) { m_idHasBeenSet = true; m_id.assign(value); }
/**
* The unique identifier for the Asset.
*/
inline AssetShallow& WithId(const Aws::String& value) { SetId(value); return *this;}
/**
* The unique identifier for the Asset.
*/
inline AssetShallow& WithId(Aws::String&& value) { SetId(std::move(value)); return *this;}
/**
* The unique identifier for the Asset.
*/
inline AssetShallow& WithId(const char* value) { SetId(value); return *this;}
/**
* The ID of the PackagingGroup for the Asset.
*/
inline const Aws::String& GetPackagingGroupId() const{ return m_packagingGroupId; }
/**
* The ID of the PackagingGroup for the Asset.
*/
inline bool PackagingGroupIdHasBeenSet() const { return m_packagingGroupIdHasBeenSet; }
/**
* The ID of the PackagingGroup for the Asset.
*/
inline void SetPackagingGroupId(const Aws::String& value) { m_packagingGroupIdHasBeenSet = true; m_packagingGroupId = value; }
/**
* The ID of the PackagingGroup for the Asset.
*/
inline void SetPackagingGroupId(Aws::String&& value) { m_packagingGroupIdHasBeenSet = true; m_packagingGroupId = std::move(value); }
/**
* The ID of the PackagingGroup for the Asset.
*/
inline void SetPackagingGroupId(const char* value) { m_packagingGroupIdHasBeenSet = true; m_packagingGroupId.assign(value); }
/**
* The ID of the PackagingGroup for the Asset.
*/
inline AssetShallow& WithPackagingGroupId(const Aws::String& value) { SetPackagingGroupId(value); return *this;}
/**
* The ID of the PackagingGroup for the Asset.
*/
inline AssetShallow& WithPackagingGroupId(Aws::String&& value) { SetPackagingGroupId(std::move(value)); return *this;}
/**
* The ID of the PackagingGroup for the Asset.
*/
inline AssetShallow& WithPackagingGroupId(const char* value) { SetPackagingGroupId(value); return *this;}
/**
* The resource ID to include in SPEKE key requests.
*/
inline const Aws::String& GetResourceId() const{ return m_resourceId; }
/**
* The resource ID to include in SPEKE key requests.
*/
inline bool ResourceIdHasBeenSet() const { return m_resourceIdHasBeenSet; }
/**
* The resource ID to include in SPEKE key requests.
*/
inline void SetResourceId(const Aws::String& value) { m_resourceIdHasBeenSet = true; m_resourceId = value; }
/**
* The resource ID to include in SPEKE key requests.
*/
inline void SetResourceId(Aws::String&& value) { m_resourceIdHasBeenSet = true; m_resourceId = std::move(value); }
/**
* The resource ID to include in SPEKE key requests.
*/
inline void SetResourceId(const char* value) { m_resourceIdHasBeenSet = true; m_resourceId.assign(value); }
/**
* The resource ID to include in SPEKE key requests.
*/
inline AssetShallow& WithResourceId(const Aws::String& value) { SetResourceId(value); return *this;}
/**
* The resource ID to include in SPEKE key requests.
*/
inline AssetShallow& WithResourceId(Aws::String&& value) { SetResourceId(std::move(value)); return *this;}
/**
* The resource ID to include in SPEKE key requests.
*/
inline AssetShallow& WithResourceId(const char* value) { SetResourceId(value); return *this;}
/**
* ARN of the source object in S3.
*/
inline const Aws::String& GetSourceArn() const{ return m_sourceArn; }
/**
* ARN of the source object in S3.
*/
inline bool SourceArnHasBeenSet() const { return m_sourceArnHasBeenSet; }
/**
* ARN of the source object in S3.
*/
inline void SetSourceArn(const Aws::String& value) { m_sourceArnHasBeenSet = true; m_sourceArn = value; }
/**
* ARN of the source object in S3.
*/
inline void SetSourceArn(Aws::String&& value) { m_sourceArnHasBeenSet = true; m_sourceArn = std::move(value); }
/**
* ARN of the source object in S3.
*/
inline void SetSourceArn(const char* value) { m_sourceArnHasBeenSet = true; m_sourceArn.assign(value); }
/**
* ARN of the source object in S3.
*/
inline AssetShallow& WithSourceArn(const Aws::String& value) { SetSourceArn(value); return *this;}
/**
* ARN of the source object in S3.
*/
inline AssetShallow& WithSourceArn(Aws::String&& value) { SetSourceArn(std::move(value)); return *this;}
/**
* ARN of the source object in S3.
*/
inline AssetShallow& WithSourceArn(const char* value) { SetSourceArn(value); return *this;}
/**
* The IAM role ARN used to access the source S3 bucket.
*/
inline const Aws::String& GetSourceRoleArn() const{ return m_sourceRoleArn; }
/**
* The IAM role ARN used to access the source S3 bucket.
*/
inline bool SourceRoleArnHasBeenSet() const { return m_sourceRoleArnHasBeenSet; }
/**
* The IAM role ARN used to access the source S3 bucket.
*/
inline void SetSourceRoleArn(const Aws::String& value) { m_sourceRoleArnHasBeenSet = true; m_sourceRoleArn = value; }
/**
* The IAM role ARN used to access the source S3 bucket.
*/
inline void SetSourceRoleArn(Aws::String&& value) { m_sourceRoleArnHasBeenSet = true; m_sourceRoleArn = std::move(value); }
/**
* The IAM role ARN used to access the source S3 bucket.
*/
inline void SetSourceRoleArn(const char* value) { m_sourceRoleArnHasBeenSet = true; m_sourceRoleArn.assign(value); }
/**
* The IAM role ARN used to access the source S3 bucket.
*/
inline AssetShallow& WithSourceRoleArn(const Aws::String& value) { SetSourceRoleArn(value); return *this;}
/**
* The IAM role ARN used to access the source S3 bucket.
*/
inline AssetShallow& WithSourceRoleArn(Aws::String&& value) { SetSourceRoleArn(std::move(value)); return *this;}
/**
* The IAM role ARN used to access the source S3 bucket.
*/
inline AssetShallow& WithSourceRoleArn(const char* value) { SetSourceRoleArn(value); return *this;}
inline const Aws::Map<Aws::String, Aws::String>& GetTags() const{ return m_tags; }
inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
inline void SetTags(const Aws::Map<Aws::String, Aws::String>& value) { m_tagsHasBeenSet = true; m_tags = value; }
inline void SetTags(Aws::Map<Aws::String, Aws::String>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
inline AssetShallow& WithTags(const Aws::Map<Aws::String, Aws::String>& value) { SetTags(value); return *this;}
inline AssetShallow& WithTags(Aws::Map<Aws::String, Aws::String>&& value) { SetTags(std::move(value)); return *this;}
inline AssetShallow& AddTags(const Aws::String& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; }
inline AssetShallow& AddTags(Aws::String&& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; }
inline AssetShallow& AddTags(const Aws::String& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; }
inline AssetShallow& AddTags(Aws::String&& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), std::move(value)); return *this; }
inline AssetShallow& AddTags(const char* key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; }
inline AssetShallow& AddTags(Aws::String&& key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; }
inline AssetShallow& AddTags(const char* key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; }
private:
Aws::String m_arn;
bool m_arnHasBeenSet;
Aws::String m_createdAt;
bool m_createdAtHasBeenSet;
Aws::String m_id;
bool m_idHasBeenSet;
Aws::String m_packagingGroupId;
bool m_packagingGroupIdHasBeenSet;
Aws::String m_resourceId;
bool m_resourceIdHasBeenSet;
Aws::String m_sourceArn;
bool m_sourceArnHasBeenSet;
Aws::String m_sourceRoleArn;
bool m_sourceRoleArnHasBeenSet;
Aws::Map<Aws::String, Aws::String> m_tags;
bool m_tagsHasBeenSet;
};
} // namespace Model
} // namespace MediaPackageVod
} // namespace Aws

View File

@@ -0,0 +1,148 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/mediapackage-vod/MediaPackageVod_EXPORTS.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <utility>
namespace Aws
{
namespace Utils
{
namespace Json
{
class JsonValue;
class JsonView;
} // namespace Json
} // namespace Utils
namespace MediaPackageVod
{
namespace Model
{
/**
* CDN Authorization credentials<p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/mediapackage-vod-2018-11-07/Authorization">AWS
* API Reference</a></p>
*/
class AWS_MEDIAPACKAGEVOD_API Authorization
{
public:
Authorization();
Authorization(Aws::Utils::Json::JsonView jsonValue);
Authorization& operator=(Aws::Utils::Json::JsonView jsonValue);
Aws::Utils::Json::JsonValue Jsonize() const;
/**
* The Amazon Resource Name (ARN) for the secret in AWS Secrets Manager that is
* used for CDN authorization.
*/
inline const Aws::String& GetCdnIdentifierSecret() const{ return m_cdnIdentifierSecret; }
/**
* The Amazon Resource Name (ARN) for the secret in AWS Secrets Manager that is
* used for CDN authorization.
*/
inline bool CdnIdentifierSecretHasBeenSet() const { return m_cdnIdentifierSecretHasBeenSet; }
/**
* The Amazon Resource Name (ARN) for the secret in AWS Secrets Manager that is
* used for CDN authorization.
*/
inline void SetCdnIdentifierSecret(const Aws::String& value) { m_cdnIdentifierSecretHasBeenSet = true; m_cdnIdentifierSecret = value; }
/**
* The Amazon Resource Name (ARN) for the secret in AWS Secrets Manager that is
* used for CDN authorization.
*/
inline void SetCdnIdentifierSecret(Aws::String&& value) { m_cdnIdentifierSecretHasBeenSet = true; m_cdnIdentifierSecret = std::move(value); }
/**
* The Amazon Resource Name (ARN) for the secret in AWS Secrets Manager that is
* used for CDN authorization.
*/
inline void SetCdnIdentifierSecret(const char* value) { m_cdnIdentifierSecretHasBeenSet = true; m_cdnIdentifierSecret.assign(value); }
/**
* The Amazon Resource Name (ARN) for the secret in AWS Secrets Manager that is
* used for CDN authorization.
*/
inline Authorization& WithCdnIdentifierSecret(const Aws::String& value) { SetCdnIdentifierSecret(value); return *this;}
/**
* The Amazon Resource Name (ARN) for the secret in AWS Secrets Manager that is
* used for CDN authorization.
*/
inline Authorization& WithCdnIdentifierSecret(Aws::String&& value) { SetCdnIdentifierSecret(std::move(value)); return *this;}
/**
* The Amazon Resource Name (ARN) for the secret in AWS Secrets Manager that is
* used for CDN authorization.
*/
inline Authorization& WithCdnIdentifierSecret(const char* value) { SetCdnIdentifierSecret(value); return *this;}
/**
* The Amazon Resource Name (ARN) for the IAM role that allows MediaPackage to
* communicate with AWS Secrets Manager.
*/
inline const Aws::String& GetSecretsRoleArn() const{ return m_secretsRoleArn; }
/**
* The Amazon Resource Name (ARN) for the IAM role that allows MediaPackage to
* communicate with AWS Secrets Manager.
*/
inline bool SecretsRoleArnHasBeenSet() const { return m_secretsRoleArnHasBeenSet; }
/**
* The Amazon Resource Name (ARN) for the IAM role that allows MediaPackage to
* communicate with AWS Secrets Manager.
*/
inline void SetSecretsRoleArn(const Aws::String& value) { m_secretsRoleArnHasBeenSet = true; m_secretsRoleArn = value; }
/**
* The Amazon Resource Name (ARN) for the IAM role that allows MediaPackage to
* communicate with AWS Secrets Manager.
*/
inline void SetSecretsRoleArn(Aws::String&& value) { m_secretsRoleArnHasBeenSet = true; m_secretsRoleArn = std::move(value); }
/**
* The Amazon Resource Name (ARN) for the IAM role that allows MediaPackage to
* communicate with AWS Secrets Manager.
*/
inline void SetSecretsRoleArn(const char* value) { m_secretsRoleArnHasBeenSet = true; m_secretsRoleArn.assign(value); }
/**
* The Amazon Resource Name (ARN) for the IAM role that allows MediaPackage to
* communicate with AWS Secrets Manager.
*/
inline Authorization& WithSecretsRoleArn(const Aws::String& value) { SetSecretsRoleArn(value); return *this;}
/**
* The Amazon Resource Name (ARN) for the IAM role that allows MediaPackage to
* communicate with AWS Secrets Manager.
*/
inline Authorization& WithSecretsRoleArn(Aws::String&& value) { SetSecretsRoleArn(std::move(value)); return *this;}
/**
* The Amazon Resource Name (ARN) for the IAM role that allows MediaPackage to
* communicate with AWS Secrets Manager.
*/
inline Authorization& WithSecretsRoleArn(const char* value) { SetSecretsRoleArn(value); return *this;}
private:
Aws::String m_cdnIdentifierSecret;
bool m_cdnIdentifierSecretHasBeenSet;
Aws::String m_secretsRoleArn;
bool m_secretsRoleArnHasBeenSet;
};
} // namespace Model
} // namespace MediaPackageVod
} // namespace Aws

View File

@@ -0,0 +1,66 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/mediapackage-vod/MediaPackageVod_EXPORTS.h>
#include <aws/mediapackage-vod/model/SpekeKeyProvider.h>
#include <utility>
namespace Aws
{
namespace Utils
{
namespace Json
{
class JsonValue;
class JsonView;
} // namespace Json
} // namespace Utils
namespace MediaPackageVod
{
namespace Model
{
/**
* A CMAF encryption configuration.<p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/mediapackage-vod-2018-11-07/CmafEncryption">AWS
* API Reference</a></p>
*/
class AWS_MEDIAPACKAGEVOD_API CmafEncryption
{
public:
CmafEncryption();
CmafEncryption(Aws::Utils::Json::JsonView jsonValue);
CmafEncryption& operator=(Aws::Utils::Json::JsonView jsonValue);
Aws::Utils::Json::JsonValue Jsonize() const;
inline const SpekeKeyProvider& GetSpekeKeyProvider() const{ return m_spekeKeyProvider; }
inline bool SpekeKeyProviderHasBeenSet() const { return m_spekeKeyProviderHasBeenSet; }
inline void SetSpekeKeyProvider(const SpekeKeyProvider& value) { m_spekeKeyProviderHasBeenSet = true; m_spekeKeyProvider = value; }
inline void SetSpekeKeyProvider(SpekeKeyProvider&& value) { m_spekeKeyProviderHasBeenSet = true; m_spekeKeyProvider = std::move(value); }
inline CmafEncryption& WithSpekeKeyProvider(const SpekeKeyProvider& value) { SetSpekeKeyProvider(value); return *this;}
inline CmafEncryption& WithSpekeKeyProvider(SpekeKeyProvider&& value) { SetSpekeKeyProvider(std::move(value)); return *this;}
private:
SpekeKeyProvider m_spekeKeyProvider;
bool m_spekeKeyProviderHasBeenSet;
};
} // namespace Model
} // namespace MediaPackageVod
} // namespace Aws

View File

@@ -0,0 +1,148 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/mediapackage-vod/MediaPackageVod_EXPORTS.h>
#include <aws/mediapackage-vod/model/CmafEncryption.h>
#include <aws/core/utils/memory/stl/AWSVector.h>
#include <aws/mediapackage-vod/model/HlsManifest.h>
#include <utility>
namespace Aws
{
namespace Utils
{
namespace Json
{
class JsonValue;
class JsonView;
} // namespace Json
} // namespace Utils
namespace MediaPackageVod
{
namespace Model
{
/**
* A CMAF packaging configuration.<p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/mediapackage-vod-2018-11-07/CmafPackage">AWS
* API Reference</a></p>
*/
class AWS_MEDIAPACKAGEVOD_API CmafPackage
{
public:
CmafPackage();
CmafPackage(Aws::Utils::Json::JsonView jsonValue);
CmafPackage& operator=(Aws::Utils::Json::JsonView jsonValue);
Aws::Utils::Json::JsonValue Jsonize() const;
inline const CmafEncryption& GetEncryption() const{ return m_encryption; }
inline bool EncryptionHasBeenSet() const { return m_encryptionHasBeenSet; }
inline void SetEncryption(const CmafEncryption& value) { m_encryptionHasBeenSet = true; m_encryption = value; }
inline void SetEncryption(CmafEncryption&& value) { m_encryptionHasBeenSet = true; m_encryption = std::move(value); }
inline CmafPackage& WithEncryption(const CmafEncryption& value) { SetEncryption(value); return *this;}
inline CmafPackage& WithEncryption(CmafEncryption&& value) { SetEncryption(std::move(value)); return *this;}
/**
* A list of HLS manifest configurations.
*/
inline const Aws::Vector<HlsManifest>& GetHlsManifests() const{ return m_hlsManifests; }
/**
* A list of HLS manifest configurations.
*/
inline bool HlsManifestsHasBeenSet() const { return m_hlsManifestsHasBeenSet; }
/**
* A list of HLS manifest configurations.
*/
inline void SetHlsManifests(const Aws::Vector<HlsManifest>& value) { m_hlsManifestsHasBeenSet = true; m_hlsManifests = value; }
/**
* A list of HLS manifest configurations.
*/
inline void SetHlsManifests(Aws::Vector<HlsManifest>&& value) { m_hlsManifestsHasBeenSet = true; m_hlsManifests = std::move(value); }
/**
* A list of HLS manifest configurations.
*/
inline CmafPackage& WithHlsManifests(const Aws::Vector<HlsManifest>& value) { SetHlsManifests(value); return *this;}
/**
* A list of HLS manifest configurations.
*/
inline CmafPackage& WithHlsManifests(Aws::Vector<HlsManifest>&& value) { SetHlsManifests(std::move(value)); return *this;}
/**
* A list of HLS manifest configurations.
*/
inline CmafPackage& AddHlsManifests(const HlsManifest& value) { m_hlsManifestsHasBeenSet = true; m_hlsManifests.push_back(value); return *this; }
/**
* A list of HLS manifest configurations.
*/
inline CmafPackage& AddHlsManifests(HlsManifest&& value) { m_hlsManifestsHasBeenSet = true; m_hlsManifests.push_back(std::move(value)); return *this; }
/**
* Duration (in seconds) of each fragment. Actual fragments will be
rounded to the
* nearest multiple of the source fragment duration.
*/
inline int GetSegmentDurationSeconds() const{ return m_segmentDurationSeconds; }
/**
* Duration (in seconds) of each fragment. Actual fragments will be
rounded to the
* nearest multiple of the source fragment duration.
*/
inline bool SegmentDurationSecondsHasBeenSet() const { return m_segmentDurationSecondsHasBeenSet; }
/**
* Duration (in seconds) of each fragment. Actual fragments will be
rounded to the
* nearest multiple of the source fragment duration.
*/
inline void SetSegmentDurationSeconds(int value) { m_segmentDurationSecondsHasBeenSet = true; m_segmentDurationSeconds = value; }
/**
* Duration (in seconds) of each fragment. Actual fragments will be
rounded to the
* nearest multiple of the source fragment duration.
*/
inline CmafPackage& WithSegmentDurationSeconds(int value) { SetSegmentDurationSeconds(value); return *this;}
private:
CmafEncryption m_encryption;
bool m_encryptionHasBeenSet;
Aws::Vector<HlsManifest> m_hlsManifests;
bool m_hlsManifestsHasBeenSet;
int m_segmentDurationSeconds;
bool m_segmentDurationSecondsHasBeenSet;
};
} // namespace Model
} // namespace MediaPackageVod
} // namespace Aws

View File

@@ -0,0 +1,306 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/mediapackage-vod/MediaPackageVod_EXPORTS.h>
#include <aws/mediapackage-vod/MediaPackageVodRequest.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <aws/core/utils/memory/stl/AWSMap.h>
#include <utility>
namespace Aws
{
namespace MediaPackageVod
{
namespace Model
{
/**
* A new MediaPackage VOD Asset configuration.<p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/mediapackage-vod-2018-11-07/CreateAssetRequest">AWS
* API Reference</a></p>
*/
class AWS_MEDIAPACKAGEVOD_API CreateAssetRequest : public MediaPackageVodRequest
{
public:
CreateAssetRequest();
// Service request name is the Operation name which will send this request out,
// each operation should has unique request name, so that we can get operation's name from this request.
// Note: this is not true for response, multiple operations may have the same response name,
// so we can not get operation's name from response.
inline virtual const char* GetServiceRequestName() const override { return "CreateAsset"; }
Aws::String SerializePayload() const override;
/**
* The unique identifier for the Asset.
*/
inline const Aws::String& GetId() const{ return m_id; }
/**
* The unique identifier for the Asset.
*/
inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
/**
* The unique identifier for the Asset.
*/
inline void SetId(const Aws::String& value) { m_idHasBeenSet = true; m_id = value; }
/**
* The unique identifier for the Asset.
*/
inline void SetId(Aws::String&& value) { m_idHasBeenSet = true; m_id = std::move(value); }
/**
* The unique identifier for the Asset.
*/
inline void SetId(const char* value) { m_idHasBeenSet = true; m_id.assign(value); }
/**
* The unique identifier for the Asset.
*/
inline CreateAssetRequest& WithId(const Aws::String& value) { SetId(value); return *this;}
/**
* The unique identifier for the Asset.
*/
inline CreateAssetRequest& WithId(Aws::String&& value) { SetId(std::move(value)); return *this;}
/**
* The unique identifier for the Asset.
*/
inline CreateAssetRequest& WithId(const char* value) { SetId(value); return *this;}
/**
* The ID of the PackagingGroup for the Asset.
*/
inline const Aws::String& GetPackagingGroupId() const{ return m_packagingGroupId; }
/**
* The ID of the PackagingGroup for the Asset.
*/
inline bool PackagingGroupIdHasBeenSet() const { return m_packagingGroupIdHasBeenSet; }
/**
* The ID of the PackagingGroup for the Asset.
*/
inline void SetPackagingGroupId(const Aws::String& value) { m_packagingGroupIdHasBeenSet = true; m_packagingGroupId = value; }
/**
* The ID of the PackagingGroup for the Asset.
*/
inline void SetPackagingGroupId(Aws::String&& value) { m_packagingGroupIdHasBeenSet = true; m_packagingGroupId = std::move(value); }
/**
* The ID of the PackagingGroup for the Asset.
*/
inline void SetPackagingGroupId(const char* value) { m_packagingGroupIdHasBeenSet = true; m_packagingGroupId.assign(value); }
/**
* The ID of the PackagingGroup for the Asset.
*/
inline CreateAssetRequest& WithPackagingGroupId(const Aws::String& value) { SetPackagingGroupId(value); return *this;}
/**
* The ID of the PackagingGroup for the Asset.
*/
inline CreateAssetRequest& WithPackagingGroupId(Aws::String&& value) { SetPackagingGroupId(std::move(value)); return *this;}
/**
* The ID of the PackagingGroup for the Asset.
*/
inline CreateAssetRequest& WithPackagingGroupId(const char* value) { SetPackagingGroupId(value); return *this;}
/**
* The resource ID to include in SPEKE key requests.
*/
inline const Aws::String& GetResourceId() const{ return m_resourceId; }
/**
* The resource ID to include in SPEKE key requests.
*/
inline bool ResourceIdHasBeenSet() const { return m_resourceIdHasBeenSet; }
/**
* The resource ID to include in SPEKE key requests.
*/
inline void SetResourceId(const Aws::String& value) { m_resourceIdHasBeenSet = true; m_resourceId = value; }
/**
* The resource ID to include in SPEKE key requests.
*/
inline void SetResourceId(Aws::String&& value) { m_resourceIdHasBeenSet = true; m_resourceId = std::move(value); }
/**
* The resource ID to include in SPEKE key requests.
*/
inline void SetResourceId(const char* value) { m_resourceIdHasBeenSet = true; m_resourceId.assign(value); }
/**
* The resource ID to include in SPEKE key requests.
*/
inline CreateAssetRequest& WithResourceId(const Aws::String& value) { SetResourceId(value); return *this;}
/**
* The resource ID to include in SPEKE key requests.
*/
inline CreateAssetRequest& WithResourceId(Aws::String&& value) { SetResourceId(std::move(value)); return *this;}
/**
* The resource ID to include in SPEKE key requests.
*/
inline CreateAssetRequest& WithResourceId(const char* value) { SetResourceId(value); return *this;}
/**
* ARN of the source object in S3.
*/
inline const Aws::String& GetSourceArn() const{ return m_sourceArn; }
/**
* ARN of the source object in S3.
*/
inline bool SourceArnHasBeenSet() const { return m_sourceArnHasBeenSet; }
/**
* ARN of the source object in S3.
*/
inline void SetSourceArn(const Aws::String& value) { m_sourceArnHasBeenSet = true; m_sourceArn = value; }
/**
* ARN of the source object in S3.
*/
inline void SetSourceArn(Aws::String&& value) { m_sourceArnHasBeenSet = true; m_sourceArn = std::move(value); }
/**
* ARN of the source object in S3.
*/
inline void SetSourceArn(const char* value) { m_sourceArnHasBeenSet = true; m_sourceArn.assign(value); }
/**
* ARN of the source object in S3.
*/
inline CreateAssetRequest& WithSourceArn(const Aws::String& value) { SetSourceArn(value); return *this;}
/**
* ARN of the source object in S3.
*/
inline CreateAssetRequest& WithSourceArn(Aws::String&& value) { SetSourceArn(std::move(value)); return *this;}
/**
* ARN of the source object in S3.
*/
inline CreateAssetRequest& WithSourceArn(const char* value) { SetSourceArn(value); return *this;}
/**
* The IAM role ARN used to access the source S3 bucket.
*/
inline const Aws::String& GetSourceRoleArn() const{ return m_sourceRoleArn; }
/**
* The IAM role ARN used to access the source S3 bucket.
*/
inline bool SourceRoleArnHasBeenSet() const { return m_sourceRoleArnHasBeenSet; }
/**
* The IAM role ARN used to access the source S3 bucket.
*/
inline void SetSourceRoleArn(const Aws::String& value) { m_sourceRoleArnHasBeenSet = true; m_sourceRoleArn = value; }
/**
* The IAM role ARN used to access the source S3 bucket.
*/
inline void SetSourceRoleArn(Aws::String&& value) { m_sourceRoleArnHasBeenSet = true; m_sourceRoleArn = std::move(value); }
/**
* The IAM role ARN used to access the source S3 bucket.
*/
inline void SetSourceRoleArn(const char* value) { m_sourceRoleArnHasBeenSet = true; m_sourceRoleArn.assign(value); }
/**
* The IAM role ARN used to access the source S3 bucket.
*/
inline CreateAssetRequest& WithSourceRoleArn(const Aws::String& value) { SetSourceRoleArn(value); return *this;}
/**
* The IAM role ARN used to access the source S3 bucket.
*/
inline CreateAssetRequest& WithSourceRoleArn(Aws::String&& value) { SetSourceRoleArn(std::move(value)); return *this;}
/**
* The IAM role ARN used to access the source S3 bucket.
*/
inline CreateAssetRequest& WithSourceRoleArn(const char* value) { SetSourceRoleArn(value); return *this;}
inline const Aws::Map<Aws::String, Aws::String>& GetTags() const{ return m_tags; }
inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
inline void SetTags(const Aws::Map<Aws::String, Aws::String>& value) { m_tagsHasBeenSet = true; m_tags = value; }
inline void SetTags(Aws::Map<Aws::String, Aws::String>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
inline CreateAssetRequest& WithTags(const Aws::Map<Aws::String, Aws::String>& value) { SetTags(value); return *this;}
inline CreateAssetRequest& WithTags(Aws::Map<Aws::String, Aws::String>&& value) { SetTags(std::move(value)); return *this;}
inline CreateAssetRequest& AddTags(const Aws::String& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; }
inline CreateAssetRequest& AddTags(Aws::String&& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; }
inline CreateAssetRequest& AddTags(const Aws::String& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; }
inline CreateAssetRequest& AddTags(Aws::String&& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), std::move(value)); return *this; }
inline CreateAssetRequest& AddTags(const char* key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; }
inline CreateAssetRequest& AddTags(Aws::String&& key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; }
inline CreateAssetRequest& AddTags(const char* key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; }
private:
Aws::String m_id;
bool m_idHasBeenSet;
Aws::String m_packagingGroupId;
bool m_packagingGroupIdHasBeenSet;
Aws::String m_resourceId;
bool m_resourceIdHasBeenSet;
Aws::String m_sourceArn;
bool m_sourceArnHasBeenSet;
Aws::String m_sourceRoleArn;
bool m_sourceRoleArnHasBeenSet;
Aws::Map<Aws::String, Aws::String> m_tags;
bool m_tagsHasBeenSet;
};
} // namespace Model
} // namespace MediaPackageVod
} // namespace Aws

View File

@@ -0,0 +1,385 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/mediapackage-vod/MediaPackageVod_EXPORTS.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <aws/core/utils/memory/stl/AWSVector.h>
#include <aws/core/utils/memory/stl/AWSMap.h>
#include <aws/mediapackage-vod/model/EgressEndpoint.h>
#include <utility>
namespace Aws
{
template<typename RESULT_TYPE>
class AmazonWebServiceResult;
namespace Utils
{
namespace Json
{
class JsonValue;
} // namespace Json
} // namespace Utils
namespace MediaPackageVod
{
namespace Model
{
class AWS_MEDIAPACKAGEVOD_API CreateAssetResult
{
public:
CreateAssetResult();
CreateAssetResult(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
CreateAssetResult& operator=(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
/**
* The ARN of the Asset.
*/
inline const Aws::String& GetArn() const{ return m_arn; }
/**
* The ARN of the Asset.
*/
inline void SetArn(const Aws::String& value) { m_arn = value; }
/**
* The ARN of the Asset.
*/
inline void SetArn(Aws::String&& value) { m_arn = std::move(value); }
/**
* The ARN of the Asset.
*/
inline void SetArn(const char* value) { m_arn.assign(value); }
/**
* The ARN of the Asset.
*/
inline CreateAssetResult& WithArn(const Aws::String& value) { SetArn(value); return *this;}
/**
* The ARN of the Asset.
*/
inline CreateAssetResult& WithArn(Aws::String&& value) { SetArn(std::move(value)); return *this;}
/**
* The ARN of the Asset.
*/
inline CreateAssetResult& WithArn(const char* value) { SetArn(value); return *this;}
/**
* The time the Asset was initially submitted for Ingest.
*/
inline const Aws::String& GetCreatedAt() const{ return m_createdAt; }
/**
* The time the Asset was initially submitted for Ingest.
*/
inline void SetCreatedAt(const Aws::String& value) { m_createdAt = value; }
/**
* The time the Asset was initially submitted for Ingest.
*/
inline void SetCreatedAt(Aws::String&& value) { m_createdAt = std::move(value); }
/**
* The time the Asset was initially submitted for Ingest.
*/
inline void SetCreatedAt(const char* value) { m_createdAt.assign(value); }
/**
* The time the Asset was initially submitted for Ingest.
*/
inline CreateAssetResult& WithCreatedAt(const Aws::String& value) { SetCreatedAt(value); return *this;}
/**
* The time the Asset was initially submitted for Ingest.
*/
inline CreateAssetResult& WithCreatedAt(Aws::String&& value) { SetCreatedAt(std::move(value)); return *this;}
/**
* The time the Asset was initially submitted for Ingest.
*/
inline CreateAssetResult& WithCreatedAt(const char* value) { SetCreatedAt(value); return *this;}
/**
* The list of egress endpoints available for the Asset.
*/
inline const Aws::Vector<EgressEndpoint>& GetEgressEndpoints() const{ return m_egressEndpoints; }
/**
* The list of egress endpoints available for the Asset.
*/
inline void SetEgressEndpoints(const Aws::Vector<EgressEndpoint>& value) { m_egressEndpoints = value; }
/**
* The list of egress endpoints available for the Asset.
*/
inline void SetEgressEndpoints(Aws::Vector<EgressEndpoint>&& value) { m_egressEndpoints = std::move(value); }
/**
* The list of egress endpoints available for the Asset.
*/
inline CreateAssetResult& WithEgressEndpoints(const Aws::Vector<EgressEndpoint>& value) { SetEgressEndpoints(value); return *this;}
/**
* The list of egress endpoints available for the Asset.
*/
inline CreateAssetResult& WithEgressEndpoints(Aws::Vector<EgressEndpoint>&& value) { SetEgressEndpoints(std::move(value)); return *this;}
/**
* The list of egress endpoints available for the Asset.
*/
inline CreateAssetResult& AddEgressEndpoints(const EgressEndpoint& value) { m_egressEndpoints.push_back(value); return *this; }
/**
* The list of egress endpoints available for the Asset.
*/
inline CreateAssetResult& AddEgressEndpoints(EgressEndpoint&& value) { m_egressEndpoints.push_back(std::move(value)); return *this; }
/**
* The unique identifier for the Asset.
*/
inline const Aws::String& GetId() const{ return m_id; }
/**
* The unique identifier for the Asset.
*/
inline void SetId(const Aws::String& value) { m_id = value; }
/**
* The unique identifier for the Asset.
*/
inline void SetId(Aws::String&& value) { m_id = std::move(value); }
/**
* The unique identifier for the Asset.
*/
inline void SetId(const char* value) { m_id.assign(value); }
/**
* The unique identifier for the Asset.
*/
inline CreateAssetResult& WithId(const Aws::String& value) { SetId(value); return *this;}
/**
* The unique identifier for the Asset.
*/
inline CreateAssetResult& WithId(Aws::String&& value) { SetId(std::move(value)); return *this;}
/**
* The unique identifier for the Asset.
*/
inline CreateAssetResult& WithId(const char* value) { SetId(value); return *this;}
/**
* The ID of the PackagingGroup for the Asset.
*/
inline const Aws::String& GetPackagingGroupId() const{ return m_packagingGroupId; }
/**
* The ID of the PackagingGroup for the Asset.
*/
inline void SetPackagingGroupId(const Aws::String& value) { m_packagingGroupId = value; }
/**
* The ID of the PackagingGroup for the Asset.
*/
inline void SetPackagingGroupId(Aws::String&& value) { m_packagingGroupId = std::move(value); }
/**
* The ID of the PackagingGroup for the Asset.
*/
inline void SetPackagingGroupId(const char* value) { m_packagingGroupId.assign(value); }
/**
* The ID of the PackagingGroup for the Asset.
*/
inline CreateAssetResult& WithPackagingGroupId(const Aws::String& value) { SetPackagingGroupId(value); return *this;}
/**
* The ID of the PackagingGroup for the Asset.
*/
inline CreateAssetResult& WithPackagingGroupId(Aws::String&& value) { SetPackagingGroupId(std::move(value)); return *this;}
/**
* The ID of the PackagingGroup for the Asset.
*/
inline CreateAssetResult& WithPackagingGroupId(const char* value) { SetPackagingGroupId(value); return *this;}
/**
* The resource ID to include in SPEKE key requests.
*/
inline const Aws::String& GetResourceId() const{ return m_resourceId; }
/**
* The resource ID to include in SPEKE key requests.
*/
inline void SetResourceId(const Aws::String& value) { m_resourceId = value; }
/**
* The resource ID to include in SPEKE key requests.
*/
inline void SetResourceId(Aws::String&& value) { m_resourceId = std::move(value); }
/**
* The resource ID to include in SPEKE key requests.
*/
inline void SetResourceId(const char* value) { m_resourceId.assign(value); }
/**
* The resource ID to include in SPEKE key requests.
*/
inline CreateAssetResult& WithResourceId(const Aws::String& value) { SetResourceId(value); return *this;}
/**
* The resource ID to include in SPEKE key requests.
*/
inline CreateAssetResult& WithResourceId(Aws::String&& value) { SetResourceId(std::move(value)); return *this;}
/**
* The resource ID to include in SPEKE key requests.
*/
inline CreateAssetResult& WithResourceId(const char* value) { SetResourceId(value); return *this;}
/**
* ARN of the source object in S3.
*/
inline const Aws::String& GetSourceArn() const{ return m_sourceArn; }
/**
* ARN of the source object in S3.
*/
inline void SetSourceArn(const Aws::String& value) { m_sourceArn = value; }
/**
* ARN of the source object in S3.
*/
inline void SetSourceArn(Aws::String&& value) { m_sourceArn = std::move(value); }
/**
* ARN of the source object in S3.
*/
inline void SetSourceArn(const char* value) { m_sourceArn.assign(value); }
/**
* ARN of the source object in S3.
*/
inline CreateAssetResult& WithSourceArn(const Aws::String& value) { SetSourceArn(value); return *this;}
/**
* ARN of the source object in S3.
*/
inline CreateAssetResult& WithSourceArn(Aws::String&& value) { SetSourceArn(std::move(value)); return *this;}
/**
* ARN of the source object in S3.
*/
inline CreateAssetResult& WithSourceArn(const char* value) { SetSourceArn(value); return *this;}
/**
* The IAM role_arn used to access the source S3 bucket.
*/
inline const Aws::String& GetSourceRoleArn() const{ return m_sourceRoleArn; }
/**
* The IAM role_arn used to access the source S3 bucket.
*/
inline void SetSourceRoleArn(const Aws::String& value) { m_sourceRoleArn = value; }
/**
* The IAM role_arn used to access the source S3 bucket.
*/
inline void SetSourceRoleArn(Aws::String&& value) { m_sourceRoleArn = std::move(value); }
/**
* The IAM role_arn used to access the source S3 bucket.
*/
inline void SetSourceRoleArn(const char* value) { m_sourceRoleArn.assign(value); }
/**
* The IAM role_arn used to access the source S3 bucket.
*/
inline CreateAssetResult& WithSourceRoleArn(const Aws::String& value) { SetSourceRoleArn(value); return *this;}
/**
* The IAM role_arn used to access the source S3 bucket.
*/
inline CreateAssetResult& WithSourceRoleArn(Aws::String&& value) { SetSourceRoleArn(std::move(value)); return *this;}
/**
* The IAM role_arn used to access the source S3 bucket.
*/
inline CreateAssetResult& WithSourceRoleArn(const char* value) { SetSourceRoleArn(value); return *this;}
inline const Aws::Map<Aws::String, Aws::String>& GetTags() const{ return m_tags; }
inline void SetTags(const Aws::Map<Aws::String, Aws::String>& value) { m_tags = value; }
inline void SetTags(Aws::Map<Aws::String, Aws::String>&& value) { m_tags = std::move(value); }
inline CreateAssetResult& WithTags(const Aws::Map<Aws::String, Aws::String>& value) { SetTags(value); return *this;}
inline CreateAssetResult& WithTags(Aws::Map<Aws::String, Aws::String>&& value) { SetTags(std::move(value)); return *this;}
inline CreateAssetResult& AddTags(const Aws::String& key, const Aws::String& value) { m_tags.emplace(key, value); return *this; }
inline CreateAssetResult& AddTags(Aws::String&& key, const Aws::String& value) { m_tags.emplace(std::move(key), value); return *this; }
inline CreateAssetResult& AddTags(const Aws::String& key, Aws::String&& value) { m_tags.emplace(key, std::move(value)); return *this; }
inline CreateAssetResult& AddTags(Aws::String&& key, Aws::String&& value) { m_tags.emplace(std::move(key), std::move(value)); return *this; }
inline CreateAssetResult& AddTags(const char* key, Aws::String&& value) { m_tags.emplace(key, std::move(value)); return *this; }
inline CreateAssetResult& AddTags(Aws::String&& key, const char* value) { m_tags.emplace(std::move(key), value); return *this; }
inline CreateAssetResult& AddTags(const char* key, const char* value) { m_tags.emplace(key, value); return *this; }
private:
Aws::String m_arn;
Aws::String m_createdAt;
Aws::Vector<EgressEndpoint> m_egressEndpoints;
Aws::String m_id;
Aws::String m_packagingGroupId;
Aws::String m_resourceId;
Aws::String m_sourceArn;
Aws::String m_sourceRoleArn;
Aws::Map<Aws::String, Aws::String> m_tags;
};
} // namespace Model
} // namespace MediaPackageVod
} // namespace Aws

View File

@@ -0,0 +1,267 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/mediapackage-vod/MediaPackageVod_EXPORTS.h>
#include <aws/mediapackage-vod/MediaPackageVodRequest.h>
#include <aws/mediapackage-vod/model/CmafPackage.h>
#include <aws/mediapackage-vod/model/DashPackage.h>
#include <aws/mediapackage-vod/model/HlsPackage.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <aws/mediapackage-vod/model/MssPackage.h>
#include <aws/core/utils/memory/stl/AWSMap.h>
#include <utility>
namespace Aws
{
namespace MediaPackageVod
{
namespace Model
{
/**
* A new MediaPackage VOD PackagingConfiguration resource configuration.<p><h3>See
* Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/mediapackage-vod-2018-11-07/CreatePackagingConfigurationRequest">AWS
* API Reference</a></p>
*/
class AWS_MEDIAPACKAGEVOD_API CreatePackagingConfigurationRequest : public MediaPackageVodRequest
{
public:
CreatePackagingConfigurationRequest();
// Service request name is the Operation name which will send this request out,
// each operation should has unique request name, so that we can get operation's name from this request.
// Note: this is not true for response, multiple operations may have the same response name,
// so we can not get operation's name from response.
inline virtual const char* GetServiceRequestName() const override { return "CreatePackagingConfiguration"; }
Aws::String SerializePayload() const override;
inline const CmafPackage& GetCmafPackage() const{ return m_cmafPackage; }
inline bool CmafPackageHasBeenSet() const { return m_cmafPackageHasBeenSet; }
inline void SetCmafPackage(const CmafPackage& value) { m_cmafPackageHasBeenSet = true; m_cmafPackage = value; }
inline void SetCmafPackage(CmafPackage&& value) { m_cmafPackageHasBeenSet = true; m_cmafPackage = std::move(value); }
inline CreatePackagingConfigurationRequest& WithCmafPackage(const CmafPackage& value) { SetCmafPackage(value); return *this;}
inline CreatePackagingConfigurationRequest& WithCmafPackage(CmafPackage&& value) { SetCmafPackage(std::move(value)); return *this;}
inline const DashPackage& GetDashPackage() const{ return m_dashPackage; }
inline bool DashPackageHasBeenSet() const { return m_dashPackageHasBeenSet; }
inline void SetDashPackage(const DashPackage& value) { m_dashPackageHasBeenSet = true; m_dashPackage = value; }
inline void SetDashPackage(DashPackage&& value) { m_dashPackageHasBeenSet = true; m_dashPackage = std::move(value); }
inline CreatePackagingConfigurationRequest& WithDashPackage(const DashPackage& value) { SetDashPackage(value); return *this;}
inline CreatePackagingConfigurationRequest& WithDashPackage(DashPackage&& value) { SetDashPackage(std::move(value)); return *this;}
inline const HlsPackage& GetHlsPackage() const{ return m_hlsPackage; }
inline bool HlsPackageHasBeenSet() const { return m_hlsPackageHasBeenSet; }
inline void SetHlsPackage(const HlsPackage& value) { m_hlsPackageHasBeenSet = true; m_hlsPackage = value; }
inline void SetHlsPackage(HlsPackage&& value) { m_hlsPackageHasBeenSet = true; m_hlsPackage = std::move(value); }
inline CreatePackagingConfigurationRequest& WithHlsPackage(const HlsPackage& value) { SetHlsPackage(value); return *this;}
inline CreatePackagingConfigurationRequest& WithHlsPackage(HlsPackage&& value) { SetHlsPackage(std::move(value)); return *this;}
/**
* The ID of the PackagingConfiguration.
*/
inline const Aws::String& GetId() const{ return m_id; }
/**
* The ID of the PackagingConfiguration.
*/
inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
/**
* The ID of the PackagingConfiguration.
*/
inline void SetId(const Aws::String& value) { m_idHasBeenSet = true; m_id = value; }
/**
* The ID of the PackagingConfiguration.
*/
inline void SetId(Aws::String&& value) { m_idHasBeenSet = true; m_id = std::move(value); }
/**
* The ID of the PackagingConfiguration.
*/
inline void SetId(const char* value) { m_idHasBeenSet = true; m_id.assign(value); }
/**
* The ID of the PackagingConfiguration.
*/
inline CreatePackagingConfigurationRequest& WithId(const Aws::String& value) { SetId(value); return *this;}
/**
* The ID of the PackagingConfiguration.
*/
inline CreatePackagingConfigurationRequest& WithId(Aws::String&& value) { SetId(std::move(value)); return *this;}
/**
* The ID of the PackagingConfiguration.
*/
inline CreatePackagingConfigurationRequest& WithId(const char* value) { SetId(value); return *this;}
inline const MssPackage& GetMssPackage() const{ return m_mssPackage; }
inline bool MssPackageHasBeenSet() const { return m_mssPackageHasBeenSet; }
inline void SetMssPackage(const MssPackage& value) { m_mssPackageHasBeenSet = true; m_mssPackage = value; }
inline void SetMssPackage(MssPackage&& value) { m_mssPackageHasBeenSet = true; m_mssPackage = std::move(value); }
inline CreatePackagingConfigurationRequest& WithMssPackage(const MssPackage& value) { SetMssPackage(value); return *this;}
inline CreatePackagingConfigurationRequest& WithMssPackage(MssPackage&& value) { SetMssPackage(std::move(value)); return *this;}
/**
* The ID of a PackagingGroup.
*/
inline const Aws::String& GetPackagingGroupId() const{ return m_packagingGroupId; }
/**
* The ID of a PackagingGroup.
*/
inline bool PackagingGroupIdHasBeenSet() const { return m_packagingGroupIdHasBeenSet; }
/**
* The ID of a PackagingGroup.
*/
inline void SetPackagingGroupId(const Aws::String& value) { m_packagingGroupIdHasBeenSet = true; m_packagingGroupId = value; }
/**
* The ID of a PackagingGroup.
*/
inline void SetPackagingGroupId(Aws::String&& value) { m_packagingGroupIdHasBeenSet = true; m_packagingGroupId = std::move(value); }
/**
* The ID of a PackagingGroup.
*/
inline void SetPackagingGroupId(const char* value) { m_packagingGroupIdHasBeenSet = true; m_packagingGroupId.assign(value); }
/**
* The ID of a PackagingGroup.
*/
inline CreatePackagingConfigurationRequest& WithPackagingGroupId(const Aws::String& value) { SetPackagingGroupId(value); return *this;}
/**
* The ID of a PackagingGroup.
*/
inline CreatePackagingConfigurationRequest& WithPackagingGroupId(Aws::String&& value) { SetPackagingGroupId(std::move(value)); return *this;}
/**
* The ID of a PackagingGroup.
*/
inline CreatePackagingConfigurationRequest& WithPackagingGroupId(const char* value) { SetPackagingGroupId(value); return *this;}
inline const Aws::Map<Aws::String, Aws::String>& GetTags() const{ return m_tags; }
inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
inline void SetTags(const Aws::Map<Aws::String, Aws::String>& value) { m_tagsHasBeenSet = true; m_tags = value; }
inline void SetTags(Aws::Map<Aws::String, Aws::String>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
inline CreatePackagingConfigurationRequest& WithTags(const Aws::Map<Aws::String, Aws::String>& value) { SetTags(value); return *this;}
inline CreatePackagingConfigurationRequest& WithTags(Aws::Map<Aws::String, Aws::String>&& value) { SetTags(std::move(value)); return *this;}
inline CreatePackagingConfigurationRequest& AddTags(const Aws::String& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; }
inline CreatePackagingConfigurationRequest& AddTags(Aws::String&& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; }
inline CreatePackagingConfigurationRequest& AddTags(const Aws::String& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; }
inline CreatePackagingConfigurationRequest& AddTags(Aws::String&& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), std::move(value)); return *this; }
inline CreatePackagingConfigurationRequest& AddTags(const char* key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; }
inline CreatePackagingConfigurationRequest& AddTags(Aws::String&& key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; }
inline CreatePackagingConfigurationRequest& AddTags(const char* key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; }
private:
CmafPackage m_cmafPackage;
bool m_cmafPackageHasBeenSet;
DashPackage m_dashPackage;
bool m_dashPackageHasBeenSet;
HlsPackage m_hlsPackage;
bool m_hlsPackageHasBeenSet;
Aws::String m_id;
bool m_idHasBeenSet;
MssPackage m_mssPackage;
bool m_mssPackageHasBeenSet;
Aws::String m_packagingGroupId;
bool m_packagingGroupIdHasBeenSet;
Aws::Map<Aws::String, Aws::String> m_tags;
bool m_tagsHasBeenSet;
};
} // namespace Model
} // namespace MediaPackageVod
} // namespace Aws

View File

@@ -0,0 +1,269 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/mediapackage-vod/MediaPackageVod_EXPORTS.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <aws/mediapackage-vod/model/CmafPackage.h>
#include <aws/mediapackage-vod/model/DashPackage.h>
#include <aws/mediapackage-vod/model/HlsPackage.h>
#include <aws/mediapackage-vod/model/MssPackage.h>
#include <aws/core/utils/memory/stl/AWSMap.h>
#include <utility>
namespace Aws
{
template<typename RESULT_TYPE>
class AmazonWebServiceResult;
namespace Utils
{
namespace Json
{
class JsonValue;
} // namespace Json
} // namespace Utils
namespace MediaPackageVod
{
namespace Model
{
class AWS_MEDIAPACKAGEVOD_API CreatePackagingConfigurationResult
{
public:
CreatePackagingConfigurationResult();
CreatePackagingConfigurationResult(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
CreatePackagingConfigurationResult& operator=(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
/**
* The ARN of the PackagingConfiguration.
*/
inline const Aws::String& GetArn() const{ return m_arn; }
/**
* The ARN of the PackagingConfiguration.
*/
inline void SetArn(const Aws::String& value) { m_arn = value; }
/**
* The ARN of the PackagingConfiguration.
*/
inline void SetArn(Aws::String&& value) { m_arn = std::move(value); }
/**
* The ARN of the PackagingConfiguration.
*/
inline void SetArn(const char* value) { m_arn.assign(value); }
/**
* The ARN of the PackagingConfiguration.
*/
inline CreatePackagingConfigurationResult& WithArn(const Aws::String& value) { SetArn(value); return *this;}
/**
* The ARN of the PackagingConfiguration.
*/
inline CreatePackagingConfigurationResult& WithArn(Aws::String&& value) { SetArn(std::move(value)); return *this;}
/**
* The ARN of the PackagingConfiguration.
*/
inline CreatePackagingConfigurationResult& WithArn(const char* value) { SetArn(value); return *this;}
inline const CmafPackage& GetCmafPackage() const{ return m_cmafPackage; }
inline void SetCmafPackage(const CmafPackage& value) { m_cmafPackage = value; }
inline void SetCmafPackage(CmafPackage&& value) { m_cmafPackage = std::move(value); }
inline CreatePackagingConfigurationResult& WithCmafPackage(const CmafPackage& value) { SetCmafPackage(value); return *this;}
inline CreatePackagingConfigurationResult& WithCmafPackage(CmafPackage&& value) { SetCmafPackage(std::move(value)); return *this;}
inline const DashPackage& GetDashPackage() const{ return m_dashPackage; }
inline void SetDashPackage(const DashPackage& value) { m_dashPackage = value; }
inline void SetDashPackage(DashPackage&& value) { m_dashPackage = std::move(value); }
inline CreatePackagingConfigurationResult& WithDashPackage(const DashPackage& value) { SetDashPackage(value); return *this;}
inline CreatePackagingConfigurationResult& WithDashPackage(DashPackage&& value) { SetDashPackage(std::move(value)); return *this;}
inline const HlsPackage& GetHlsPackage() const{ return m_hlsPackage; }
inline void SetHlsPackage(const HlsPackage& value) { m_hlsPackage = value; }
inline void SetHlsPackage(HlsPackage&& value) { m_hlsPackage = std::move(value); }
inline CreatePackagingConfigurationResult& WithHlsPackage(const HlsPackage& value) { SetHlsPackage(value); return *this;}
inline CreatePackagingConfigurationResult& WithHlsPackage(HlsPackage&& value) { SetHlsPackage(std::move(value)); return *this;}
/**
* The ID of the PackagingConfiguration.
*/
inline const Aws::String& GetId() const{ return m_id; }
/**
* The ID of the PackagingConfiguration.
*/
inline void SetId(const Aws::String& value) { m_id = value; }
/**
* The ID of the PackagingConfiguration.
*/
inline void SetId(Aws::String&& value) { m_id = std::move(value); }
/**
* The ID of the PackagingConfiguration.
*/
inline void SetId(const char* value) { m_id.assign(value); }
/**
* The ID of the PackagingConfiguration.
*/
inline CreatePackagingConfigurationResult& WithId(const Aws::String& value) { SetId(value); return *this;}
/**
* The ID of the PackagingConfiguration.
*/
inline CreatePackagingConfigurationResult& WithId(Aws::String&& value) { SetId(std::move(value)); return *this;}
/**
* The ID of the PackagingConfiguration.
*/
inline CreatePackagingConfigurationResult& WithId(const char* value) { SetId(value); return *this;}
inline const MssPackage& GetMssPackage() const{ return m_mssPackage; }
inline void SetMssPackage(const MssPackage& value) { m_mssPackage = value; }
inline void SetMssPackage(MssPackage&& value) { m_mssPackage = std::move(value); }
inline CreatePackagingConfigurationResult& WithMssPackage(const MssPackage& value) { SetMssPackage(value); return *this;}
inline CreatePackagingConfigurationResult& WithMssPackage(MssPackage&& value) { SetMssPackage(std::move(value)); return *this;}
/**
* The ID of a PackagingGroup.
*/
inline const Aws::String& GetPackagingGroupId() const{ return m_packagingGroupId; }
/**
* The ID of a PackagingGroup.
*/
inline void SetPackagingGroupId(const Aws::String& value) { m_packagingGroupId = value; }
/**
* The ID of a PackagingGroup.
*/
inline void SetPackagingGroupId(Aws::String&& value) { m_packagingGroupId = std::move(value); }
/**
* The ID of a PackagingGroup.
*/
inline void SetPackagingGroupId(const char* value) { m_packagingGroupId.assign(value); }
/**
* The ID of a PackagingGroup.
*/
inline CreatePackagingConfigurationResult& WithPackagingGroupId(const Aws::String& value) { SetPackagingGroupId(value); return *this;}
/**
* The ID of a PackagingGroup.
*/
inline CreatePackagingConfigurationResult& WithPackagingGroupId(Aws::String&& value) { SetPackagingGroupId(std::move(value)); return *this;}
/**
* The ID of a PackagingGroup.
*/
inline CreatePackagingConfigurationResult& WithPackagingGroupId(const char* value) { SetPackagingGroupId(value); return *this;}
inline const Aws::Map<Aws::String, Aws::String>& GetTags() const{ return m_tags; }
inline void SetTags(const Aws::Map<Aws::String, Aws::String>& value) { m_tags = value; }
inline void SetTags(Aws::Map<Aws::String, Aws::String>&& value) { m_tags = std::move(value); }
inline CreatePackagingConfigurationResult& WithTags(const Aws::Map<Aws::String, Aws::String>& value) { SetTags(value); return *this;}
inline CreatePackagingConfigurationResult& WithTags(Aws::Map<Aws::String, Aws::String>&& value) { SetTags(std::move(value)); return *this;}
inline CreatePackagingConfigurationResult& AddTags(const Aws::String& key, const Aws::String& value) { m_tags.emplace(key, value); return *this; }
inline CreatePackagingConfigurationResult& AddTags(Aws::String&& key, const Aws::String& value) { m_tags.emplace(std::move(key), value); return *this; }
inline CreatePackagingConfigurationResult& AddTags(const Aws::String& key, Aws::String&& value) { m_tags.emplace(key, std::move(value)); return *this; }
inline CreatePackagingConfigurationResult& AddTags(Aws::String&& key, Aws::String&& value) { m_tags.emplace(std::move(key), std::move(value)); return *this; }
inline CreatePackagingConfigurationResult& AddTags(const char* key, Aws::String&& value) { m_tags.emplace(key, std::move(value)); return *this; }
inline CreatePackagingConfigurationResult& AddTags(Aws::String&& key, const char* value) { m_tags.emplace(std::move(key), value); return *this; }
inline CreatePackagingConfigurationResult& AddTags(const char* key, const char* value) { m_tags.emplace(key, value); return *this; }
private:
Aws::String m_arn;
CmafPackage m_cmafPackage;
DashPackage m_dashPackage;
HlsPackage m_hlsPackage;
Aws::String m_id;
MssPackage m_mssPackage;
Aws::String m_packagingGroupId;
Aws::Map<Aws::String, Aws::String> m_tags;
};
} // namespace Model
} // namespace MediaPackageVod
} // namespace Aws

View File

@@ -0,0 +1,154 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/mediapackage-vod/MediaPackageVod_EXPORTS.h>
#include <aws/mediapackage-vod/MediaPackageVodRequest.h>
#include <aws/mediapackage-vod/model/Authorization.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <aws/core/utils/memory/stl/AWSMap.h>
#include <utility>
namespace Aws
{
namespace MediaPackageVod
{
namespace Model
{
/**
* A new MediaPackage VOD PackagingGroup resource configuration.<p><h3>See
* Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/mediapackage-vod-2018-11-07/CreatePackagingGroupRequest">AWS
* API Reference</a></p>
*/
class AWS_MEDIAPACKAGEVOD_API CreatePackagingGroupRequest : public MediaPackageVodRequest
{
public:
CreatePackagingGroupRequest();
// Service request name is the Operation name which will send this request out,
// each operation should has unique request name, so that we can get operation's name from this request.
// Note: this is not true for response, multiple operations may have the same response name,
// so we can not get operation's name from response.
inline virtual const char* GetServiceRequestName() const override { return "CreatePackagingGroup"; }
Aws::String SerializePayload() const override;
inline const Authorization& GetAuthorization() const{ return m_authorization; }
inline bool AuthorizationHasBeenSet() const { return m_authorizationHasBeenSet; }
inline void SetAuthorization(const Authorization& value) { m_authorizationHasBeenSet = true; m_authorization = value; }
inline void SetAuthorization(Authorization&& value) { m_authorizationHasBeenSet = true; m_authorization = std::move(value); }
inline CreatePackagingGroupRequest& WithAuthorization(const Authorization& value) { SetAuthorization(value); return *this;}
inline CreatePackagingGroupRequest& WithAuthorization(Authorization&& value) { SetAuthorization(std::move(value)); return *this;}
/**
* The ID of the PackagingGroup.
*/
inline const Aws::String& GetId() const{ return m_id; }
/**
* The ID of the PackagingGroup.
*/
inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
/**
* The ID of the PackagingGroup.
*/
inline void SetId(const Aws::String& value) { m_idHasBeenSet = true; m_id = value; }
/**
* The ID of the PackagingGroup.
*/
inline void SetId(Aws::String&& value) { m_idHasBeenSet = true; m_id = std::move(value); }
/**
* The ID of the PackagingGroup.
*/
inline void SetId(const char* value) { m_idHasBeenSet = true; m_id.assign(value); }
/**
* The ID of the PackagingGroup.
*/
inline CreatePackagingGroupRequest& WithId(const Aws::String& value) { SetId(value); return *this;}
/**
* The ID of the PackagingGroup.
*/
inline CreatePackagingGroupRequest& WithId(Aws::String&& value) { SetId(std::move(value)); return *this;}
/**
* The ID of the PackagingGroup.
*/
inline CreatePackagingGroupRequest& WithId(const char* value) { SetId(value); return *this;}
inline const Aws::Map<Aws::String, Aws::String>& GetTags() const{ return m_tags; }
inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
inline void SetTags(const Aws::Map<Aws::String, Aws::String>& value) { m_tagsHasBeenSet = true; m_tags = value; }
inline void SetTags(Aws::Map<Aws::String, Aws::String>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
inline CreatePackagingGroupRequest& WithTags(const Aws::Map<Aws::String, Aws::String>& value) { SetTags(value); return *this;}
inline CreatePackagingGroupRequest& WithTags(Aws::Map<Aws::String, Aws::String>&& value) { SetTags(std::move(value)); return *this;}
inline CreatePackagingGroupRequest& AddTags(const Aws::String& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; }
inline CreatePackagingGroupRequest& AddTags(Aws::String&& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; }
inline CreatePackagingGroupRequest& AddTags(const Aws::String& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; }
inline CreatePackagingGroupRequest& AddTags(Aws::String&& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), std::move(value)); return *this; }
inline CreatePackagingGroupRequest& AddTags(const char* key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; }
inline CreatePackagingGroupRequest& AddTags(Aws::String&& key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; }
inline CreatePackagingGroupRequest& AddTags(const char* key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; }
private:
Authorization m_authorization;
bool m_authorizationHasBeenSet;
Aws::String m_id;
bool m_idHasBeenSet;
Aws::Map<Aws::String, Aws::String> m_tags;
bool m_tagsHasBeenSet;
};
} // namespace Model
} // namespace MediaPackageVod
} // namespace Aws

View File

@@ -0,0 +1,212 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/mediapackage-vod/MediaPackageVod_EXPORTS.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <aws/mediapackage-vod/model/Authorization.h>
#include <aws/core/utils/memory/stl/AWSMap.h>
#include <utility>
namespace Aws
{
template<typename RESULT_TYPE>
class AmazonWebServiceResult;
namespace Utils
{
namespace Json
{
class JsonValue;
} // namespace Json
} // namespace Utils
namespace MediaPackageVod
{
namespace Model
{
class AWS_MEDIAPACKAGEVOD_API CreatePackagingGroupResult
{
public:
CreatePackagingGroupResult();
CreatePackagingGroupResult(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
CreatePackagingGroupResult& operator=(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
/**
* The ARN of the PackagingGroup.
*/
inline const Aws::String& GetArn() const{ return m_arn; }
/**
* The ARN of the PackagingGroup.
*/
inline void SetArn(const Aws::String& value) { m_arn = value; }
/**
* The ARN of the PackagingGroup.
*/
inline void SetArn(Aws::String&& value) { m_arn = std::move(value); }
/**
* The ARN of the PackagingGroup.
*/
inline void SetArn(const char* value) { m_arn.assign(value); }
/**
* The ARN of the PackagingGroup.
*/
inline CreatePackagingGroupResult& WithArn(const Aws::String& value) { SetArn(value); return *this;}
/**
* The ARN of the PackagingGroup.
*/
inline CreatePackagingGroupResult& WithArn(Aws::String&& value) { SetArn(std::move(value)); return *this;}
/**
* The ARN of the PackagingGroup.
*/
inline CreatePackagingGroupResult& WithArn(const char* value) { SetArn(value); return *this;}
inline const Authorization& GetAuthorization() const{ return m_authorization; }
inline void SetAuthorization(const Authorization& value) { m_authorization = value; }
inline void SetAuthorization(Authorization&& value) { m_authorization = std::move(value); }
inline CreatePackagingGroupResult& WithAuthorization(const Authorization& value) { SetAuthorization(value); return *this;}
inline CreatePackagingGroupResult& WithAuthorization(Authorization&& value) { SetAuthorization(std::move(value)); return *this;}
/**
* The fully qualified domain name for Assets in the PackagingGroup.
*/
inline const Aws::String& GetDomainName() const{ return m_domainName; }
/**
* The fully qualified domain name for Assets in the PackagingGroup.
*/
inline void SetDomainName(const Aws::String& value) { m_domainName = value; }
/**
* The fully qualified domain name for Assets in the PackagingGroup.
*/
inline void SetDomainName(Aws::String&& value) { m_domainName = std::move(value); }
/**
* The fully qualified domain name for Assets in the PackagingGroup.
*/
inline void SetDomainName(const char* value) { m_domainName.assign(value); }
/**
* The fully qualified domain name for Assets in the PackagingGroup.
*/
inline CreatePackagingGroupResult& WithDomainName(const Aws::String& value) { SetDomainName(value); return *this;}
/**
* The fully qualified domain name for Assets in the PackagingGroup.
*/
inline CreatePackagingGroupResult& WithDomainName(Aws::String&& value) { SetDomainName(std::move(value)); return *this;}
/**
* The fully qualified domain name for Assets in the PackagingGroup.
*/
inline CreatePackagingGroupResult& WithDomainName(const char* value) { SetDomainName(value); return *this;}
/**
* The ID of the PackagingGroup.
*/
inline const Aws::String& GetId() const{ return m_id; }
/**
* The ID of the PackagingGroup.
*/
inline void SetId(const Aws::String& value) { m_id = value; }
/**
* The ID of the PackagingGroup.
*/
inline void SetId(Aws::String&& value) { m_id = std::move(value); }
/**
* The ID of the PackagingGroup.
*/
inline void SetId(const char* value) { m_id.assign(value); }
/**
* The ID of the PackagingGroup.
*/
inline CreatePackagingGroupResult& WithId(const Aws::String& value) { SetId(value); return *this;}
/**
* The ID of the PackagingGroup.
*/
inline CreatePackagingGroupResult& WithId(Aws::String&& value) { SetId(std::move(value)); return *this;}
/**
* The ID of the PackagingGroup.
*/
inline CreatePackagingGroupResult& WithId(const char* value) { SetId(value); return *this;}
inline const Aws::Map<Aws::String, Aws::String>& GetTags() const{ return m_tags; }
inline void SetTags(const Aws::Map<Aws::String, Aws::String>& value) { m_tags = value; }
inline void SetTags(Aws::Map<Aws::String, Aws::String>&& value) { m_tags = std::move(value); }
inline CreatePackagingGroupResult& WithTags(const Aws::Map<Aws::String, Aws::String>& value) { SetTags(value); return *this;}
inline CreatePackagingGroupResult& WithTags(Aws::Map<Aws::String, Aws::String>&& value) { SetTags(std::move(value)); return *this;}
inline CreatePackagingGroupResult& AddTags(const Aws::String& key, const Aws::String& value) { m_tags.emplace(key, value); return *this; }
inline CreatePackagingGroupResult& AddTags(Aws::String&& key, const Aws::String& value) { m_tags.emplace(std::move(key), value); return *this; }
inline CreatePackagingGroupResult& AddTags(const Aws::String& key, Aws::String&& value) { m_tags.emplace(key, std::move(value)); return *this; }
inline CreatePackagingGroupResult& AddTags(Aws::String&& key, Aws::String&& value) { m_tags.emplace(std::move(key), std::move(value)); return *this; }
inline CreatePackagingGroupResult& AddTags(const char* key, Aws::String&& value) { m_tags.emplace(key, std::move(value)); return *this; }
inline CreatePackagingGroupResult& AddTags(Aws::String&& key, const char* value) { m_tags.emplace(std::move(key), value); return *this; }
inline CreatePackagingGroupResult& AddTags(const char* key, const char* value) { m_tags.emplace(key, value); return *this; }
private:
Aws::String m_arn;
Authorization m_authorization;
Aws::String m_domainName;
Aws::String m_id;
Aws::Map<Aws::String, Aws::String> m_tags;
};
} // namespace Model
} // namespace MediaPackageVod
} // namespace Aws

View File

@@ -0,0 +1,67 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/mediapackage-vod/MediaPackageVod_EXPORTS.h>
#include <aws/mediapackage-vod/model/SpekeKeyProvider.h>
#include <utility>
namespace Aws
{
namespace Utils
{
namespace Json
{
class JsonValue;
class JsonView;
} // namespace Json
} // namespace Utils
namespace MediaPackageVod
{
namespace Model
{
/**
* A Dynamic Adaptive Streaming over HTTP (DASH) encryption
* configuration.<p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/mediapackage-vod-2018-11-07/DashEncryption">AWS
* API Reference</a></p>
*/
class AWS_MEDIAPACKAGEVOD_API DashEncryption
{
public:
DashEncryption();
DashEncryption(Aws::Utils::Json::JsonView jsonValue);
DashEncryption& operator=(Aws::Utils::Json::JsonView jsonValue);
Aws::Utils::Json::JsonValue Jsonize() const;
inline const SpekeKeyProvider& GetSpekeKeyProvider() const{ return m_spekeKeyProvider; }
inline bool SpekeKeyProviderHasBeenSet() const { return m_spekeKeyProviderHasBeenSet; }
inline void SetSpekeKeyProvider(const SpekeKeyProvider& value) { m_spekeKeyProviderHasBeenSet = true; m_spekeKeyProvider = value; }
inline void SetSpekeKeyProvider(SpekeKeyProvider&& value) { m_spekeKeyProviderHasBeenSet = true; m_spekeKeyProvider = std::move(value); }
inline DashEncryption& WithSpekeKeyProvider(const SpekeKeyProvider& value) { SetSpekeKeyProvider(value); return *this;}
inline DashEncryption& WithSpekeKeyProvider(SpekeKeyProvider&& value) { SetSpekeKeyProvider(std::move(value)); return *this;}
private:
SpekeKeyProvider m_spekeKeyProvider;
bool m_spekeKeyProviderHasBeenSet;
};
} // namespace Model
} // namespace MediaPackageVod
} // namespace Aws

View File

@@ -0,0 +1,233 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/mediapackage-vod/MediaPackageVod_EXPORTS.h>
#include <aws/mediapackage-vod/model/ManifestLayout.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <aws/mediapackage-vod/model/Profile.h>
#include <aws/mediapackage-vod/model/StreamSelection.h>
#include <utility>
namespace Aws
{
namespace Utils
{
namespace Json
{
class JsonValue;
class JsonView;
} // namespace Json
} // namespace Utils
namespace MediaPackageVod
{
namespace Model
{
/**
* A DASH manifest configuration.<p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/mediapackage-vod-2018-11-07/DashManifest">AWS
* API Reference</a></p>
*/
class AWS_MEDIAPACKAGEVOD_API DashManifest
{
public:
DashManifest();
DashManifest(Aws::Utils::Json::JsonView jsonValue);
DashManifest& operator=(Aws::Utils::Json::JsonView jsonValue);
Aws::Utils::Json::JsonValue Jsonize() const;
/**
* Determines the position of some tags in the Media Presentation Description
* (MPD). When set to FULL, elements like SegmentTemplate and ContentProtection
* are included in each Representation. When set to COMPACT, duplicate elements
* are combined and presented at the AdaptationSet level.
*/
inline const ManifestLayout& GetManifestLayout() const{ return m_manifestLayout; }
/**
* Determines the position of some tags in the Media Presentation Description
* (MPD). When set to FULL, elements like SegmentTemplate and ContentProtection
* are included in each Representation. When set to COMPACT, duplicate elements
* are combined and presented at the AdaptationSet level.
*/
inline bool ManifestLayoutHasBeenSet() const { return m_manifestLayoutHasBeenSet; }
/**
* Determines the position of some tags in the Media Presentation Description
* (MPD). When set to FULL, elements like SegmentTemplate and ContentProtection
* are included in each Representation. When set to COMPACT, duplicate elements
* are combined and presented at the AdaptationSet level.
*/
inline void SetManifestLayout(const ManifestLayout& value) { m_manifestLayoutHasBeenSet = true; m_manifestLayout = value; }
/**
* Determines the position of some tags in the Media Presentation Description
* (MPD). When set to FULL, elements like SegmentTemplate and ContentProtection
* are included in each Representation. When set to COMPACT, duplicate elements
* are combined and presented at the AdaptationSet level.
*/
inline void SetManifestLayout(ManifestLayout&& value) { m_manifestLayoutHasBeenSet = true; m_manifestLayout = std::move(value); }
/**
* Determines the position of some tags in the Media Presentation Description
* (MPD). When set to FULL, elements like SegmentTemplate and ContentProtection
* are included in each Representation. When set to COMPACT, duplicate elements
* are combined and presented at the AdaptationSet level.
*/
inline DashManifest& WithManifestLayout(const ManifestLayout& value) { SetManifestLayout(value); return *this;}
/**
* Determines the position of some tags in the Media Presentation Description
* (MPD). When set to FULL, elements like SegmentTemplate and ContentProtection
* are included in each Representation. When set to COMPACT, duplicate elements
* are combined and presented at the AdaptationSet level.
*/
inline DashManifest& WithManifestLayout(ManifestLayout&& value) { SetManifestLayout(std::move(value)); return *this;}
/**
* An optional string to include in the name of the manifest.
*/
inline const Aws::String& GetManifestName() const{ return m_manifestName; }
/**
* An optional string to include in the name of the manifest.
*/
inline bool ManifestNameHasBeenSet() const { return m_manifestNameHasBeenSet; }
/**
* An optional string to include in the name of the manifest.
*/
inline void SetManifestName(const Aws::String& value) { m_manifestNameHasBeenSet = true; m_manifestName = value; }
/**
* An optional string to include in the name of the manifest.
*/
inline void SetManifestName(Aws::String&& value) { m_manifestNameHasBeenSet = true; m_manifestName = std::move(value); }
/**
* An optional string to include in the name of the manifest.
*/
inline void SetManifestName(const char* value) { m_manifestNameHasBeenSet = true; m_manifestName.assign(value); }
/**
* An optional string to include in the name of the manifest.
*/
inline DashManifest& WithManifestName(const Aws::String& value) { SetManifestName(value); return *this;}
/**
* An optional string to include in the name of the manifest.
*/
inline DashManifest& WithManifestName(Aws::String&& value) { SetManifestName(std::move(value)); return *this;}
/**
* An optional string to include in the name of the manifest.
*/
inline DashManifest& WithManifestName(const char* value) { SetManifestName(value); return *this;}
/**
* Minimum duration (in seconds) that a player will buffer media before starting
* the presentation.
*/
inline int GetMinBufferTimeSeconds() const{ return m_minBufferTimeSeconds; }
/**
* Minimum duration (in seconds) that a player will buffer media before starting
* the presentation.
*/
inline bool MinBufferTimeSecondsHasBeenSet() const { return m_minBufferTimeSecondsHasBeenSet; }
/**
* Minimum duration (in seconds) that a player will buffer media before starting
* the presentation.
*/
inline void SetMinBufferTimeSeconds(int value) { m_minBufferTimeSecondsHasBeenSet = true; m_minBufferTimeSeconds = value; }
/**
* Minimum duration (in seconds) that a player will buffer media before starting
* the presentation.
*/
inline DashManifest& WithMinBufferTimeSeconds(int value) { SetMinBufferTimeSeconds(value); return *this;}
/**
* The Dynamic Adaptive Streaming over HTTP (DASH) profile type. When set to
* "HBBTV_1_5", HbbTV 1.5 compliant output is enabled.
*/
inline const Profile& GetProfile() const{ return m_profile; }
/**
* The Dynamic Adaptive Streaming over HTTP (DASH) profile type. When set to
* "HBBTV_1_5", HbbTV 1.5 compliant output is enabled.
*/
inline bool ProfileHasBeenSet() const { return m_profileHasBeenSet; }
/**
* The Dynamic Adaptive Streaming over HTTP (DASH) profile type. When set to
* "HBBTV_1_5", HbbTV 1.5 compliant output is enabled.
*/
inline void SetProfile(const Profile& value) { m_profileHasBeenSet = true; m_profile = value; }
/**
* The Dynamic Adaptive Streaming over HTTP (DASH) profile type. When set to
* "HBBTV_1_5", HbbTV 1.5 compliant output is enabled.
*/
inline void SetProfile(Profile&& value) { m_profileHasBeenSet = true; m_profile = std::move(value); }
/**
* The Dynamic Adaptive Streaming over HTTP (DASH) profile type. When set to
* "HBBTV_1_5", HbbTV 1.5 compliant output is enabled.
*/
inline DashManifest& WithProfile(const Profile& value) { SetProfile(value); return *this;}
/**
* The Dynamic Adaptive Streaming over HTTP (DASH) profile type. When set to
* "HBBTV_1_5", HbbTV 1.5 compliant output is enabled.
*/
inline DashManifest& WithProfile(Profile&& value) { SetProfile(std::move(value)); return *this;}
inline const StreamSelection& GetStreamSelection() const{ return m_streamSelection; }
inline bool StreamSelectionHasBeenSet() const { return m_streamSelectionHasBeenSet; }
inline void SetStreamSelection(const StreamSelection& value) { m_streamSelectionHasBeenSet = true; m_streamSelection = value; }
inline void SetStreamSelection(StreamSelection&& value) { m_streamSelectionHasBeenSet = true; m_streamSelection = std::move(value); }
inline DashManifest& WithStreamSelection(const StreamSelection& value) { SetStreamSelection(value); return *this;}
inline DashManifest& WithStreamSelection(StreamSelection&& value) { SetStreamSelection(std::move(value)); return *this;}
private:
ManifestLayout m_manifestLayout;
bool m_manifestLayoutHasBeenSet;
Aws::String m_manifestName;
bool m_manifestNameHasBeenSet;
int m_minBufferTimeSeconds;
bool m_minBufferTimeSecondsHasBeenSet;
Profile m_profile;
bool m_profileHasBeenSet;
StreamSelection m_streamSelection;
bool m_streamSelectionHasBeenSet;
};
} // namespace Model
} // namespace MediaPackageVod
} // namespace Aws

View File

@@ -0,0 +1,323 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/mediapackage-vod/MediaPackageVod_EXPORTS.h>
#include <aws/core/utils/memory/stl/AWSVector.h>
#include <aws/mediapackage-vod/model/DashEncryption.h>
#include <aws/mediapackage-vod/model/SegmentTemplateFormat.h>
#include <aws/mediapackage-vod/model/DashManifest.h>
#include <aws/mediapackage-vod/model/__PeriodTriggersElement.h>
#include <utility>
namespace Aws
{
namespace Utils
{
namespace Json
{
class JsonValue;
class JsonView;
} // namespace Json
} // namespace Utils
namespace MediaPackageVod
{
namespace Model
{
/**
* A Dynamic Adaptive Streaming over HTTP (DASH) packaging configuration.<p><h3>See
* Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/mediapackage-vod-2018-11-07/DashPackage">AWS
* API Reference</a></p>
*/
class AWS_MEDIAPACKAGEVOD_API DashPackage
{
public:
DashPackage();
DashPackage(Aws::Utils::Json::JsonView jsonValue);
DashPackage& operator=(Aws::Utils::Json::JsonView jsonValue);
Aws::Utils::Json::JsonValue Jsonize() const;
/**
* A list of DASH manifest configurations.
*/
inline const Aws::Vector<DashManifest>& GetDashManifests() const{ return m_dashManifests; }
/**
* A list of DASH manifest configurations.
*/
inline bool DashManifestsHasBeenSet() const { return m_dashManifestsHasBeenSet; }
/**
* A list of DASH manifest configurations.
*/
inline void SetDashManifests(const Aws::Vector<DashManifest>& value) { m_dashManifestsHasBeenSet = true; m_dashManifests = value; }
/**
* A list of DASH manifest configurations.
*/
inline void SetDashManifests(Aws::Vector<DashManifest>&& value) { m_dashManifestsHasBeenSet = true; m_dashManifests = std::move(value); }
/**
* A list of DASH manifest configurations.
*/
inline DashPackage& WithDashManifests(const Aws::Vector<DashManifest>& value) { SetDashManifests(value); return *this;}
/**
* A list of DASH manifest configurations.
*/
inline DashPackage& WithDashManifests(Aws::Vector<DashManifest>&& value) { SetDashManifests(std::move(value)); return *this;}
/**
* A list of DASH manifest configurations.
*/
inline DashPackage& AddDashManifests(const DashManifest& value) { m_dashManifestsHasBeenSet = true; m_dashManifests.push_back(value); return *this; }
/**
* A list of DASH manifest configurations.
*/
inline DashPackage& AddDashManifests(DashManifest&& value) { m_dashManifestsHasBeenSet = true; m_dashManifests.push_back(std::move(value)); return *this; }
inline const DashEncryption& GetEncryption() const{ return m_encryption; }
inline bool EncryptionHasBeenSet() const { return m_encryptionHasBeenSet; }
inline void SetEncryption(const DashEncryption& value) { m_encryptionHasBeenSet = true; m_encryption = value; }
inline void SetEncryption(DashEncryption&& value) { m_encryptionHasBeenSet = true; m_encryption = std::move(value); }
inline DashPackage& WithEncryption(const DashEncryption& value) { SetEncryption(value); return *this;}
inline DashPackage& WithEncryption(DashEncryption&& value) { SetEncryption(std::move(value)); return *this;}
/**
* A list of triggers that controls when the outgoing Dynamic Adaptive Streaming
* over HTTP (DASH)
Media Presentation Description (MPD) will be partitioned into
* multiple periods. If empty, the content will not
be partitioned into more than
* one period. If the list contains "ADS", new periods will be created where
the
* Asset contains SCTE-35 ad markers.
*/
inline const Aws::Vector<__PeriodTriggersElement>& GetPeriodTriggers() const{ return m_periodTriggers; }
/**
* A list of triggers that controls when the outgoing Dynamic Adaptive Streaming
* over HTTP (DASH)
Media Presentation Description (MPD) will be partitioned into
* multiple periods. If empty, the content will not
be partitioned into more than
* one period. If the list contains "ADS", new periods will be created where
the
* Asset contains SCTE-35 ad markers.
*/
inline bool PeriodTriggersHasBeenSet() const { return m_periodTriggersHasBeenSet; }
/**
* A list of triggers that controls when the outgoing Dynamic Adaptive Streaming
* over HTTP (DASH)
Media Presentation Description (MPD) will be partitioned into
* multiple periods. If empty, the content will not
be partitioned into more than
* one period. If the list contains "ADS", new periods will be created where
the
* Asset contains SCTE-35 ad markers.
*/
inline void SetPeriodTriggers(const Aws::Vector<__PeriodTriggersElement>& value) { m_periodTriggersHasBeenSet = true; m_periodTriggers = value; }
/**
* A list of triggers that controls when the outgoing Dynamic Adaptive Streaming
* over HTTP (DASH)
Media Presentation Description (MPD) will be partitioned into
* multiple periods. If empty, the content will not
be partitioned into more than
* one period. If the list contains "ADS", new periods will be created where
the
* Asset contains SCTE-35 ad markers.
*/
inline void SetPeriodTriggers(Aws::Vector<__PeriodTriggersElement>&& value) { m_periodTriggersHasBeenSet = true; m_periodTriggers = std::move(value); }
/**
* A list of triggers that controls when the outgoing Dynamic Adaptive Streaming
* over HTTP (DASH)
Media Presentation Description (MPD) will be partitioned into
* multiple periods. If empty, the content will not
be partitioned into more than
* one period. If the list contains "ADS", new periods will be created where
the
* Asset contains SCTE-35 ad markers.
*/
inline DashPackage& WithPeriodTriggers(const Aws::Vector<__PeriodTriggersElement>& value) { SetPeriodTriggers(value); return *this;}
/**
* A list of triggers that controls when the outgoing Dynamic Adaptive Streaming
* over HTTP (DASH)
Media Presentation Description (MPD) will be partitioned into
* multiple periods. If empty, the content will not
be partitioned into more than
* one period. If the list contains "ADS", new periods will be created where
the
* Asset contains SCTE-35 ad markers.
*/
inline DashPackage& WithPeriodTriggers(Aws::Vector<__PeriodTriggersElement>&& value) { SetPeriodTriggers(std::move(value)); return *this;}
/**
* A list of triggers that controls when the outgoing Dynamic Adaptive Streaming
* over HTTP (DASH)
Media Presentation Description (MPD) will be partitioned into
* multiple periods. If empty, the content will not
be partitioned into more than
* one period. If the list contains "ADS", new periods will be created where
the
* Asset contains SCTE-35 ad markers.
*/
inline DashPackage& AddPeriodTriggers(const __PeriodTriggersElement& value) { m_periodTriggersHasBeenSet = true; m_periodTriggers.push_back(value); return *this; }
/**
* A list of triggers that controls when the outgoing Dynamic Adaptive Streaming
* over HTTP (DASH)
Media Presentation Description (MPD) will be partitioned into
* multiple periods. If empty, the content will not
be partitioned into more than
* one period. If the list contains "ADS", new periods will be created where
the
* Asset contains SCTE-35 ad markers.
*/
inline DashPackage& AddPeriodTriggers(__PeriodTriggersElement&& value) { m_periodTriggersHasBeenSet = true; m_periodTriggers.push_back(std::move(value)); return *this; }
/**
* Duration (in seconds) of each segment. Actual segments will be
rounded to the
* nearest multiple of the source segment duration.
*/
inline int GetSegmentDurationSeconds() const{ return m_segmentDurationSeconds; }
/**
* Duration (in seconds) of each segment. Actual segments will be
rounded to the
* nearest multiple of the source segment duration.
*/
inline bool SegmentDurationSecondsHasBeenSet() const { return m_segmentDurationSecondsHasBeenSet; }
/**
* Duration (in seconds) of each segment. Actual segments will be
rounded to the
* nearest multiple of the source segment duration.
*/
inline void SetSegmentDurationSeconds(int value) { m_segmentDurationSecondsHasBeenSet = true; m_segmentDurationSeconds = value; }
/**
* Duration (in seconds) of each segment. Actual segments will be
rounded to the
* nearest multiple of the source segment duration.
*/
inline DashPackage& WithSegmentDurationSeconds(int value) { SetSegmentDurationSeconds(value); return *this;}
/**
* Determines the type of SegmentTemplate included in the Media Presentation
* Description (MPD). When set to NUMBER_WITH_TIMELINE, a full timeline is
* presented in each SegmentTemplate, with $Number$ media URLs. When set to
* TIME_WITH_TIMELINE, a full timeline is presented in each SegmentTemplate, with
* $Time$ media URLs. When set to NUMBER_WITH_DURATION, only a duration is included
* in each SegmentTemplate, with $Number$ media URLs.
*/
inline const SegmentTemplateFormat& GetSegmentTemplateFormat() const{ return m_segmentTemplateFormat; }
/**
* Determines the type of SegmentTemplate included in the Media Presentation
* Description (MPD). When set to NUMBER_WITH_TIMELINE, a full timeline is
* presented in each SegmentTemplate, with $Number$ media URLs. When set to
* TIME_WITH_TIMELINE, a full timeline is presented in each SegmentTemplate, with
* $Time$ media URLs. When set to NUMBER_WITH_DURATION, only a duration is included
* in each SegmentTemplate, with $Number$ media URLs.
*/
inline bool SegmentTemplateFormatHasBeenSet() const { return m_segmentTemplateFormatHasBeenSet; }
/**
* Determines the type of SegmentTemplate included in the Media Presentation
* Description (MPD). When set to NUMBER_WITH_TIMELINE, a full timeline is
* presented in each SegmentTemplate, with $Number$ media URLs. When set to
* TIME_WITH_TIMELINE, a full timeline is presented in each SegmentTemplate, with
* $Time$ media URLs. When set to NUMBER_WITH_DURATION, only a duration is included
* in each SegmentTemplate, with $Number$ media URLs.
*/
inline void SetSegmentTemplateFormat(const SegmentTemplateFormat& value) { m_segmentTemplateFormatHasBeenSet = true; m_segmentTemplateFormat = value; }
/**
* Determines the type of SegmentTemplate included in the Media Presentation
* Description (MPD). When set to NUMBER_WITH_TIMELINE, a full timeline is
* presented in each SegmentTemplate, with $Number$ media URLs. When set to
* TIME_WITH_TIMELINE, a full timeline is presented in each SegmentTemplate, with
* $Time$ media URLs. When set to NUMBER_WITH_DURATION, only a duration is included
* in each SegmentTemplate, with $Number$ media URLs.
*/
inline void SetSegmentTemplateFormat(SegmentTemplateFormat&& value) { m_segmentTemplateFormatHasBeenSet = true; m_segmentTemplateFormat = std::move(value); }
/**
* Determines the type of SegmentTemplate included in the Media Presentation
* Description (MPD). When set to NUMBER_WITH_TIMELINE, a full timeline is
* presented in each SegmentTemplate, with $Number$ media URLs. When set to
* TIME_WITH_TIMELINE, a full timeline is presented in each SegmentTemplate, with
* $Time$ media URLs. When set to NUMBER_WITH_DURATION, only a duration is included
* in each SegmentTemplate, with $Number$ media URLs.
*/
inline DashPackage& WithSegmentTemplateFormat(const SegmentTemplateFormat& value) { SetSegmentTemplateFormat(value); return *this;}
/**
* Determines the type of SegmentTemplate included in the Media Presentation
* Description (MPD). When set to NUMBER_WITH_TIMELINE, a full timeline is
* presented in each SegmentTemplate, with $Number$ media URLs. When set to
* TIME_WITH_TIMELINE, a full timeline is presented in each SegmentTemplate, with
* $Time$ media URLs. When set to NUMBER_WITH_DURATION, only a duration is included
* in each SegmentTemplate, with $Number$ media URLs.
*/
inline DashPackage& WithSegmentTemplateFormat(SegmentTemplateFormat&& value) { SetSegmentTemplateFormat(std::move(value)); return *this;}
private:
Aws::Vector<DashManifest> m_dashManifests;
bool m_dashManifestsHasBeenSet;
DashEncryption m_encryption;
bool m_encryptionHasBeenSet;
Aws::Vector<__PeriodTriggersElement> m_periodTriggers;
bool m_periodTriggersHasBeenSet;
int m_segmentDurationSeconds;
bool m_segmentDurationSecondsHasBeenSet;
SegmentTemplateFormat m_segmentTemplateFormat;
bool m_segmentTemplateFormatHasBeenSet;
};
} // namespace Model
} // namespace MediaPackageVod
} // namespace Aws

View File

@@ -0,0 +1,83 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/mediapackage-vod/MediaPackageVod_EXPORTS.h>
#include <aws/mediapackage-vod/MediaPackageVodRequest.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <utility>
namespace Aws
{
namespace MediaPackageVod
{
namespace Model
{
/**
*/
class AWS_MEDIAPACKAGEVOD_API DeleteAssetRequest : public MediaPackageVodRequest
{
public:
DeleteAssetRequest();
// Service request name is the Operation name which will send this request out,
// each operation should has unique request name, so that we can get operation's name from this request.
// Note: this is not true for response, multiple operations may have the same response name,
// so we can not get operation's name from response.
inline virtual const char* GetServiceRequestName() const override { return "DeleteAsset"; }
Aws::String SerializePayload() const override;
/**
* The ID of the MediaPackage VOD Asset resource to delete.
*/
inline const Aws::String& GetId() const{ return m_id; }
/**
* The ID of the MediaPackage VOD Asset resource to delete.
*/
inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
/**
* The ID of the MediaPackage VOD Asset resource to delete.
*/
inline void SetId(const Aws::String& value) { m_idHasBeenSet = true; m_id = value; }
/**
* The ID of the MediaPackage VOD Asset resource to delete.
*/
inline void SetId(Aws::String&& value) { m_idHasBeenSet = true; m_id = std::move(value); }
/**
* The ID of the MediaPackage VOD Asset resource to delete.
*/
inline void SetId(const char* value) { m_idHasBeenSet = true; m_id.assign(value); }
/**
* The ID of the MediaPackage VOD Asset resource to delete.
*/
inline DeleteAssetRequest& WithId(const Aws::String& value) { SetId(value); return *this;}
/**
* The ID of the MediaPackage VOD Asset resource to delete.
*/
inline DeleteAssetRequest& WithId(Aws::String&& value) { SetId(std::move(value)); return *this;}
/**
* The ID of the MediaPackage VOD Asset resource to delete.
*/
inline DeleteAssetRequest& WithId(const char* value) { SetId(value); return *this;}
private:
Aws::String m_id;
bool m_idHasBeenSet;
};
} // namespace Model
} // namespace MediaPackageVod
} // namespace Aws

View File

@@ -0,0 +1,36 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/mediapackage-vod/MediaPackageVod_EXPORTS.h>
namespace Aws
{
template<typename RESULT_TYPE>
class AmazonWebServiceResult;
namespace Utils
{
namespace Json
{
class JsonValue;
} // namespace Json
} // namespace Utils
namespace MediaPackageVod
{
namespace Model
{
class AWS_MEDIAPACKAGEVOD_API DeleteAssetResult
{
public:
DeleteAssetResult();
DeleteAssetResult(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
DeleteAssetResult& operator=(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
};
} // namespace Model
} // namespace MediaPackageVod
} // namespace Aws

View File

@@ -0,0 +1,83 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/mediapackage-vod/MediaPackageVod_EXPORTS.h>
#include <aws/mediapackage-vod/MediaPackageVodRequest.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <utility>
namespace Aws
{
namespace MediaPackageVod
{
namespace Model
{
/**
*/
class AWS_MEDIAPACKAGEVOD_API DeletePackagingConfigurationRequest : public MediaPackageVodRequest
{
public:
DeletePackagingConfigurationRequest();
// Service request name is the Operation name which will send this request out,
// each operation should has unique request name, so that we can get operation's name from this request.
// Note: this is not true for response, multiple operations may have the same response name,
// so we can not get operation's name from response.
inline virtual const char* GetServiceRequestName() const override { return "DeletePackagingConfiguration"; }
Aws::String SerializePayload() const override;
/**
* The ID of the MediaPackage VOD PackagingConfiguration resource to delete.
*/
inline const Aws::String& GetId() const{ return m_id; }
/**
* The ID of the MediaPackage VOD PackagingConfiguration resource to delete.
*/
inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
/**
* The ID of the MediaPackage VOD PackagingConfiguration resource to delete.
*/
inline void SetId(const Aws::String& value) { m_idHasBeenSet = true; m_id = value; }
/**
* The ID of the MediaPackage VOD PackagingConfiguration resource to delete.
*/
inline void SetId(Aws::String&& value) { m_idHasBeenSet = true; m_id = std::move(value); }
/**
* The ID of the MediaPackage VOD PackagingConfiguration resource to delete.
*/
inline void SetId(const char* value) { m_idHasBeenSet = true; m_id.assign(value); }
/**
* The ID of the MediaPackage VOD PackagingConfiguration resource to delete.
*/
inline DeletePackagingConfigurationRequest& WithId(const Aws::String& value) { SetId(value); return *this;}
/**
* The ID of the MediaPackage VOD PackagingConfiguration resource to delete.
*/
inline DeletePackagingConfigurationRequest& WithId(Aws::String&& value) { SetId(std::move(value)); return *this;}
/**
* The ID of the MediaPackage VOD PackagingConfiguration resource to delete.
*/
inline DeletePackagingConfigurationRequest& WithId(const char* value) { SetId(value); return *this;}
private:
Aws::String m_id;
bool m_idHasBeenSet;
};
} // namespace Model
} // namespace MediaPackageVod
} // namespace Aws

View File

@@ -0,0 +1,36 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/mediapackage-vod/MediaPackageVod_EXPORTS.h>
namespace Aws
{
template<typename RESULT_TYPE>
class AmazonWebServiceResult;
namespace Utils
{
namespace Json
{
class JsonValue;
} // namespace Json
} // namespace Utils
namespace MediaPackageVod
{
namespace Model
{
class AWS_MEDIAPACKAGEVOD_API DeletePackagingConfigurationResult
{
public:
DeletePackagingConfigurationResult();
DeletePackagingConfigurationResult(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
DeletePackagingConfigurationResult& operator=(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
};
} // namespace Model
} // namespace MediaPackageVod
} // namespace Aws

View File

@@ -0,0 +1,83 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/mediapackage-vod/MediaPackageVod_EXPORTS.h>
#include <aws/mediapackage-vod/MediaPackageVodRequest.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <utility>
namespace Aws
{
namespace MediaPackageVod
{
namespace Model
{
/**
*/
class AWS_MEDIAPACKAGEVOD_API DeletePackagingGroupRequest : public MediaPackageVodRequest
{
public:
DeletePackagingGroupRequest();
// Service request name is the Operation name which will send this request out,
// each operation should has unique request name, so that we can get operation's name from this request.
// Note: this is not true for response, multiple operations may have the same response name,
// so we can not get operation's name from response.
inline virtual const char* GetServiceRequestName() const override { return "DeletePackagingGroup"; }
Aws::String SerializePayload() const override;
/**
* The ID of the MediaPackage VOD PackagingGroup resource to delete.
*/
inline const Aws::String& GetId() const{ return m_id; }
/**
* The ID of the MediaPackage VOD PackagingGroup resource to delete.
*/
inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
/**
* The ID of the MediaPackage VOD PackagingGroup resource to delete.
*/
inline void SetId(const Aws::String& value) { m_idHasBeenSet = true; m_id = value; }
/**
* The ID of the MediaPackage VOD PackagingGroup resource to delete.
*/
inline void SetId(Aws::String&& value) { m_idHasBeenSet = true; m_id = std::move(value); }
/**
* The ID of the MediaPackage VOD PackagingGroup resource to delete.
*/
inline void SetId(const char* value) { m_idHasBeenSet = true; m_id.assign(value); }
/**
* The ID of the MediaPackage VOD PackagingGroup resource to delete.
*/
inline DeletePackagingGroupRequest& WithId(const Aws::String& value) { SetId(value); return *this;}
/**
* The ID of the MediaPackage VOD PackagingGroup resource to delete.
*/
inline DeletePackagingGroupRequest& WithId(Aws::String&& value) { SetId(std::move(value)); return *this;}
/**
* The ID of the MediaPackage VOD PackagingGroup resource to delete.
*/
inline DeletePackagingGroupRequest& WithId(const char* value) { SetId(value); return *this;}
private:
Aws::String m_id;
bool m_idHasBeenSet;
};
} // namespace Model
} // namespace MediaPackageVod
} // namespace Aws

View File

@@ -0,0 +1,36 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/mediapackage-vod/MediaPackageVod_EXPORTS.h>
namespace Aws
{
template<typename RESULT_TYPE>
class AmazonWebServiceResult;
namespace Utils
{
namespace Json
{
class JsonValue;
} // namespace Json
} // namespace Utils
namespace MediaPackageVod
{
namespace Model
{
class AWS_MEDIAPACKAGEVOD_API DeletePackagingGroupResult
{
public:
DeletePackagingGroupResult();
DeletePackagingGroupResult(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
DeletePackagingGroupResult& operator=(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
};
} // namespace Model
} // namespace MediaPackageVod
} // namespace Aws

View File

@@ -0,0 +1,83 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/mediapackage-vod/MediaPackageVod_EXPORTS.h>
#include <aws/mediapackage-vod/MediaPackageVodRequest.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <utility>
namespace Aws
{
namespace MediaPackageVod
{
namespace Model
{
/**
*/
class AWS_MEDIAPACKAGEVOD_API DescribeAssetRequest : public MediaPackageVodRequest
{
public:
DescribeAssetRequest();
// Service request name is the Operation name which will send this request out,
// each operation should has unique request name, so that we can get operation's name from this request.
// Note: this is not true for response, multiple operations may have the same response name,
// so we can not get operation's name from response.
inline virtual const char* GetServiceRequestName() const override { return "DescribeAsset"; }
Aws::String SerializePayload() const override;
/**
* The ID of an MediaPackage VOD Asset resource.
*/
inline const Aws::String& GetId() const{ return m_id; }
/**
* The ID of an MediaPackage VOD Asset resource.
*/
inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
/**
* The ID of an MediaPackage VOD Asset resource.
*/
inline void SetId(const Aws::String& value) { m_idHasBeenSet = true; m_id = value; }
/**
* The ID of an MediaPackage VOD Asset resource.
*/
inline void SetId(Aws::String&& value) { m_idHasBeenSet = true; m_id = std::move(value); }
/**
* The ID of an MediaPackage VOD Asset resource.
*/
inline void SetId(const char* value) { m_idHasBeenSet = true; m_id.assign(value); }
/**
* The ID of an MediaPackage VOD Asset resource.
*/
inline DescribeAssetRequest& WithId(const Aws::String& value) { SetId(value); return *this;}
/**
* The ID of an MediaPackage VOD Asset resource.
*/
inline DescribeAssetRequest& WithId(Aws::String&& value) { SetId(std::move(value)); return *this;}
/**
* The ID of an MediaPackage VOD Asset resource.
*/
inline DescribeAssetRequest& WithId(const char* value) { SetId(value); return *this;}
private:
Aws::String m_id;
bool m_idHasBeenSet;
};
} // namespace Model
} // namespace MediaPackageVod
} // namespace Aws

View File

@@ -0,0 +1,385 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/mediapackage-vod/MediaPackageVod_EXPORTS.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <aws/core/utils/memory/stl/AWSVector.h>
#include <aws/core/utils/memory/stl/AWSMap.h>
#include <aws/mediapackage-vod/model/EgressEndpoint.h>
#include <utility>
namespace Aws
{
template<typename RESULT_TYPE>
class AmazonWebServiceResult;
namespace Utils
{
namespace Json
{
class JsonValue;
} // namespace Json
} // namespace Utils
namespace MediaPackageVod
{
namespace Model
{
class AWS_MEDIAPACKAGEVOD_API DescribeAssetResult
{
public:
DescribeAssetResult();
DescribeAssetResult(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
DescribeAssetResult& operator=(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
/**
* The ARN of the Asset.
*/
inline const Aws::String& GetArn() const{ return m_arn; }
/**
* The ARN of the Asset.
*/
inline void SetArn(const Aws::String& value) { m_arn = value; }
/**
* The ARN of the Asset.
*/
inline void SetArn(Aws::String&& value) { m_arn = std::move(value); }
/**
* The ARN of the Asset.
*/
inline void SetArn(const char* value) { m_arn.assign(value); }
/**
* The ARN of the Asset.
*/
inline DescribeAssetResult& WithArn(const Aws::String& value) { SetArn(value); return *this;}
/**
* The ARN of the Asset.
*/
inline DescribeAssetResult& WithArn(Aws::String&& value) { SetArn(std::move(value)); return *this;}
/**
* The ARN of the Asset.
*/
inline DescribeAssetResult& WithArn(const char* value) { SetArn(value); return *this;}
/**
* The time the Asset was initially submitted for Ingest.
*/
inline const Aws::String& GetCreatedAt() const{ return m_createdAt; }
/**
* The time the Asset was initially submitted for Ingest.
*/
inline void SetCreatedAt(const Aws::String& value) { m_createdAt = value; }
/**
* The time the Asset was initially submitted for Ingest.
*/
inline void SetCreatedAt(Aws::String&& value) { m_createdAt = std::move(value); }
/**
* The time the Asset was initially submitted for Ingest.
*/
inline void SetCreatedAt(const char* value) { m_createdAt.assign(value); }
/**
* The time the Asset was initially submitted for Ingest.
*/
inline DescribeAssetResult& WithCreatedAt(const Aws::String& value) { SetCreatedAt(value); return *this;}
/**
* The time the Asset was initially submitted for Ingest.
*/
inline DescribeAssetResult& WithCreatedAt(Aws::String&& value) { SetCreatedAt(std::move(value)); return *this;}
/**
* The time the Asset was initially submitted for Ingest.
*/
inline DescribeAssetResult& WithCreatedAt(const char* value) { SetCreatedAt(value); return *this;}
/**
* The list of egress endpoints available for the Asset.
*/
inline const Aws::Vector<EgressEndpoint>& GetEgressEndpoints() const{ return m_egressEndpoints; }
/**
* The list of egress endpoints available for the Asset.
*/
inline void SetEgressEndpoints(const Aws::Vector<EgressEndpoint>& value) { m_egressEndpoints = value; }
/**
* The list of egress endpoints available for the Asset.
*/
inline void SetEgressEndpoints(Aws::Vector<EgressEndpoint>&& value) { m_egressEndpoints = std::move(value); }
/**
* The list of egress endpoints available for the Asset.
*/
inline DescribeAssetResult& WithEgressEndpoints(const Aws::Vector<EgressEndpoint>& value) { SetEgressEndpoints(value); return *this;}
/**
* The list of egress endpoints available for the Asset.
*/
inline DescribeAssetResult& WithEgressEndpoints(Aws::Vector<EgressEndpoint>&& value) { SetEgressEndpoints(std::move(value)); return *this;}
/**
* The list of egress endpoints available for the Asset.
*/
inline DescribeAssetResult& AddEgressEndpoints(const EgressEndpoint& value) { m_egressEndpoints.push_back(value); return *this; }
/**
* The list of egress endpoints available for the Asset.
*/
inline DescribeAssetResult& AddEgressEndpoints(EgressEndpoint&& value) { m_egressEndpoints.push_back(std::move(value)); return *this; }
/**
* The unique identifier for the Asset.
*/
inline const Aws::String& GetId() const{ return m_id; }
/**
* The unique identifier for the Asset.
*/
inline void SetId(const Aws::String& value) { m_id = value; }
/**
* The unique identifier for the Asset.
*/
inline void SetId(Aws::String&& value) { m_id = std::move(value); }
/**
* The unique identifier for the Asset.
*/
inline void SetId(const char* value) { m_id.assign(value); }
/**
* The unique identifier for the Asset.
*/
inline DescribeAssetResult& WithId(const Aws::String& value) { SetId(value); return *this;}
/**
* The unique identifier for the Asset.
*/
inline DescribeAssetResult& WithId(Aws::String&& value) { SetId(std::move(value)); return *this;}
/**
* The unique identifier for the Asset.
*/
inline DescribeAssetResult& WithId(const char* value) { SetId(value); return *this;}
/**
* The ID of the PackagingGroup for the Asset.
*/
inline const Aws::String& GetPackagingGroupId() const{ return m_packagingGroupId; }
/**
* The ID of the PackagingGroup for the Asset.
*/
inline void SetPackagingGroupId(const Aws::String& value) { m_packagingGroupId = value; }
/**
* The ID of the PackagingGroup for the Asset.
*/
inline void SetPackagingGroupId(Aws::String&& value) { m_packagingGroupId = std::move(value); }
/**
* The ID of the PackagingGroup for the Asset.
*/
inline void SetPackagingGroupId(const char* value) { m_packagingGroupId.assign(value); }
/**
* The ID of the PackagingGroup for the Asset.
*/
inline DescribeAssetResult& WithPackagingGroupId(const Aws::String& value) { SetPackagingGroupId(value); return *this;}
/**
* The ID of the PackagingGroup for the Asset.
*/
inline DescribeAssetResult& WithPackagingGroupId(Aws::String&& value) { SetPackagingGroupId(std::move(value)); return *this;}
/**
* The ID of the PackagingGroup for the Asset.
*/
inline DescribeAssetResult& WithPackagingGroupId(const char* value) { SetPackagingGroupId(value); return *this;}
/**
* The resource ID to include in SPEKE key requests.
*/
inline const Aws::String& GetResourceId() const{ return m_resourceId; }
/**
* The resource ID to include in SPEKE key requests.
*/
inline void SetResourceId(const Aws::String& value) { m_resourceId = value; }
/**
* The resource ID to include in SPEKE key requests.
*/
inline void SetResourceId(Aws::String&& value) { m_resourceId = std::move(value); }
/**
* The resource ID to include in SPEKE key requests.
*/
inline void SetResourceId(const char* value) { m_resourceId.assign(value); }
/**
* The resource ID to include in SPEKE key requests.
*/
inline DescribeAssetResult& WithResourceId(const Aws::String& value) { SetResourceId(value); return *this;}
/**
* The resource ID to include in SPEKE key requests.
*/
inline DescribeAssetResult& WithResourceId(Aws::String&& value) { SetResourceId(std::move(value)); return *this;}
/**
* The resource ID to include in SPEKE key requests.
*/
inline DescribeAssetResult& WithResourceId(const char* value) { SetResourceId(value); return *this;}
/**
* ARN of the source object in S3.
*/
inline const Aws::String& GetSourceArn() const{ return m_sourceArn; }
/**
* ARN of the source object in S3.
*/
inline void SetSourceArn(const Aws::String& value) { m_sourceArn = value; }
/**
* ARN of the source object in S3.
*/
inline void SetSourceArn(Aws::String&& value) { m_sourceArn = std::move(value); }
/**
* ARN of the source object in S3.
*/
inline void SetSourceArn(const char* value) { m_sourceArn.assign(value); }
/**
* ARN of the source object in S3.
*/
inline DescribeAssetResult& WithSourceArn(const Aws::String& value) { SetSourceArn(value); return *this;}
/**
* ARN of the source object in S3.
*/
inline DescribeAssetResult& WithSourceArn(Aws::String&& value) { SetSourceArn(std::move(value)); return *this;}
/**
* ARN of the source object in S3.
*/
inline DescribeAssetResult& WithSourceArn(const char* value) { SetSourceArn(value); return *this;}
/**
* The IAM role_arn used to access the source S3 bucket.
*/
inline const Aws::String& GetSourceRoleArn() const{ return m_sourceRoleArn; }
/**
* The IAM role_arn used to access the source S3 bucket.
*/
inline void SetSourceRoleArn(const Aws::String& value) { m_sourceRoleArn = value; }
/**
* The IAM role_arn used to access the source S3 bucket.
*/
inline void SetSourceRoleArn(Aws::String&& value) { m_sourceRoleArn = std::move(value); }
/**
* The IAM role_arn used to access the source S3 bucket.
*/
inline void SetSourceRoleArn(const char* value) { m_sourceRoleArn.assign(value); }
/**
* The IAM role_arn used to access the source S3 bucket.
*/
inline DescribeAssetResult& WithSourceRoleArn(const Aws::String& value) { SetSourceRoleArn(value); return *this;}
/**
* The IAM role_arn used to access the source S3 bucket.
*/
inline DescribeAssetResult& WithSourceRoleArn(Aws::String&& value) { SetSourceRoleArn(std::move(value)); return *this;}
/**
* The IAM role_arn used to access the source S3 bucket.
*/
inline DescribeAssetResult& WithSourceRoleArn(const char* value) { SetSourceRoleArn(value); return *this;}
inline const Aws::Map<Aws::String, Aws::String>& GetTags() const{ return m_tags; }
inline void SetTags(const Aws::Map<Aws::String, Aws::String>& value) { m_tags = value; }
inline void SetTags(Aws::Map<Aws::String, Aws::String>&& value) { m_tags = std::move(value); }
inline DescribeAssetResult& WithTags(const Aws::Map<Aws::String, Aws::String>& value) { SetTags(value); return *this;}
inline DescribeAssetResult& WithTags(Aws::Map<Aws::String, Aws::String>&& value) { SetTags(std::move(value)); return *this;}
inline DescribeAssetResult& AddTags(const Aws::String& key, const Aws::String& value) { m_tags.emplace(key, value); return *this; }
inline DescribeAssetResult& AddTags(Aws::String&& key, const Aws::String& value) { m_tags.emplace(std::move(key), value); return *this; }
inline DescribeAssetResult& AddTags(const Aws::String& key, Aws::String&& value) { m_tags.emplace(key, std::move(value)); return *this; }
inline DescribeAssetResult& AddTags(Aws::String&& key, Aws::String&& value) { m_tags.emplace(std::move(key), std::move(value)); return *this; }
inline DescribeAssetResult& AddTags(const char* key, Aws::String&& value) { m_tags.emplace(key, std::move(value)); return *this; }
inline DescribeAssetResult& AddTags(Aws::String&& key, const char* value) { m_tags.emplace(std::move(key), value); return *this; }
inline DescribeAssetResult& AddTags(const char* key, const char* value) { m_tags.emplace(key, value); return *this; }
private:
Aws::String m_arn;
Aws::String m_createdAt;
Aws::Vector<EgressEndpoint> m_egressEndpoints;
Aws::String m_id;
Aws::String m_packagingGroupId;
Aws::String m_resourceId;
Aws::String m_sourceArn;
Aws::String m_sourceRoleArn;
Aws::Map<Aws::String, Aws::String> m_tags;
};
} // namespace Model
} // namespace MediaPackageVod
} // namespace Aws

View File

@@ -0,0 +1,83 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/mediapackage-vod/MediaPackageVod_EXPORTS.h>
#include <aws/mediapackage-vod/MediaPackageVodRequest.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <utility>
namespace Aws
{
namespace MediaPackageVod
{
namespace Model
{
/**
*/
class AWS_MEDIAPACKAGEVOD_API DescribePackagingConfigurationRequest : public MediaPackageVodRequest
{
public:
DescribePackagingConfigurationRequest();
// Service request name is the Operation name which will send this request out,
// each operation should has unique request name, so that we can get operation's name from this request.
// Note: this is not true for response, multiple operations may have the same response name,
// so we can not get operation's name from response.
inline virtual const char* GetServiceRequestName() const override { return "DescribePackagingConfiguration"; }
Aws::String SerializePayload() const override;
/**
* The ID of a MediaPackage VOD PackagingConfiguration resource.
*/
inline const Aws::String& GetId() const{ return m_id; }
/**
* The ID of a MediaPackage VOD PackagingConfiguration resource.
*/
inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
/**
* The ID of a MediaPackage VOD PackagingConfiguration resource.
*/
inline void SetId(const Aws::String& value) { m_idHasBeenSet = true; m_id = value; }
/**
* The ID of a MediaPackage VOD PackagingConfiguration resource.
*/
inline void SetId(Aws::String&& value) { m_idHasBeenSet = true; m_id = std::move(value); }
/**
* The ID of a MediaPackage VOD PackagingConfiguration resource.
*/
inline void SetId(const char* value) { m_idHasBeenSet = true; m_id.assign(value); }
/**
* The ID of a MediaPackage VOD PackagingConfiguration resource.
*/
inline DescribePackagingConfigurationRequest& WithId(const Aws::String& value) { SetId(value); return *this;}
/**
* The ID of a MediaPackage VOD PackagingConfiguration resource.
*/
inline DescribePackagingConfigurationRequest& WithId(Aws::String&& value) { SetId(std::move(value)); return *this;}
/**
* The ID of a MediaPackage VOD PackagingConfiguration resource.
*/
inline DescribePackagingConfigurationRequest& WithId(const char* value) { SetId(value); return *this;}
private:
Aws::String m_id;
bool m_idHasBeenSet;
};
} // namespace Model
} // namespace MediaPackageVod
} // namespace Aws

View File

@@ -0,0 +1,269 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/mediapackage-vod/MediaPackageVod_EXPORTS.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <aws/mediapackage-vod/model/CmafPackage.h>
#include <aws/mediapackage-vod/model/DashPackage.h>
#include <aws/mediapackage-vod/model/HlsPackage.h>
#include <aws/mediapackage-vod/model/MssPackage.h>
#include <aws/core/utils/memory/stl/AWSMap.h>
#include <utility>
namespace Aws
{
template<typename RESULT_TYPE>
class AmazonWebServiceResult;
namespace Utils
{
namespace Json
{
class JsonValue;
} // namespace Json
} // namespace Utils
namespace MediaPackageVod
{
namespace Model
{
class AWS_MEDIAPACKAGEVOD_API DescribePackagingConfigurationResult
{
public:
DescribePackagingConfigurationResult();
DescribePackagingConfigurationResult(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
DescribePackagingConfigurationResult& operator=(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
/**
* The ARN of the PackagingConfiguration.
*/
inline const Aws::String& GetArn() const{ return m_arn; }
/**
* The ARN of the PackagingConfiguration.
*/
inline void SetArn(const Aws::String& value) { m_arn = value; }
/**
* The ARN of the PackagingConfiguration.
*/
inline void SetArn(Aws::String&& value) { m_arn = std::move(value); }
/**
* The ARN of the PackagingConfiguration.
*/
inline void SetArn(const char* value) { m_arn.assign(value); }
/**
* The ARN of the PackagingConfiguration.
*/
inline DescribePackagingConfigurationResult& WithArn(const Aws::String& value) { SetArn(value); return *this;}
/**
* The ARN of the PackagingConfiguration.
*/
inline DescribePackagingConfigurationResult& WithArn(Aws::String&& value) { SetArn(std::move(value)); return *this;}
/**
* The ARN of the PackagingConfiguration.
*/
inline DescribePackagingConfigurationResult& WithArn(const char* value) { SetArn(value); return *this;}
inline const CmafPackage& GetCmafPackage() const{ return m_cmafPackage; }
inline void SetCmafPackage(const CmafPackage& value) { m_cmafPackage = value; }
inline void SetCmafPackage(CmafPackage&& value) { m_cmafPackage = std::move(value); }
inline DescribePackagingConfigurationResult& WithCmafPackage(const CmafPackage& value) { SetCmafPackage(value); return *this;}
inline DescribePackagingConfigurationResult& WithCmafPackage(CmafPackage&& value) { SetCmafPackage(std::move(value)); return *this;}
inline const DashPackage& GetDashPackage() const{ return m_dashPackage; }
inline void SetDashPackage(const DashPackage& value) { m_dashPackage = value; }
inline void SetDashPackage(DashPackage&& value) { m_dashPackage = std::move(value); }
inline DescribePackagingConfigurationResult& WithDashPackage(const DashPackage& value) { SetDashPackage(value); return *this;}
inline DescribePackagingConfigurationResult& WithDashPackage(DashPackage&& value) { SetDashPackage(std::move(value)); return *this;}
inline const HlsPackage& GetHlsPackage() const{ return m_hlsPackage; }
inline void SetHlsPackage(const HlsPackage& value) { m_hlsPackage = value; }
inline void SetHlsPackage(HlsPackage&& value) { m_hlsPackage = std::move(value); }
inline DescribePackagingConfigurationResult& WithHlsPackage(const HlsPackage& value) { SetHlsPackage(value); return *this;}
inline DescribePackagingConfigurationResult& WithHlsPackage(HlsPackage&& value) { SetHlsPackage(std::move(value)); return *this;}
/**
* The ID of the PackagingConfiguration.
*/
inline const Aws::String& GetId() const{ return m_id; }
/**
* The ID of the PackagingConfiguration.
*/
inline void SetId(const Aws::String& value) { m_id = value; }
/**
* The ID of the PackagingConfiguration.
*/
inline void SetId(Aws::String&& value) { m_id = std::move(value); }
/**
* The ID of the PackagingConfiguration.
*/
inline void SetId(const char* value) { m_id.assign(value); }
/**
* The ID of the PackagingConfiguration.
*/
inline DescribePackagingConfigurationResult& WithId(const Aws::String& value) { SetId(value); return *this;}
/**
* The ID of the PackagingConfiguration.
*/
inline DescribePackagingConfigurationResult& WithId(Aws::String&& value) { SetId(std::move(value)); return *this;}
/**
* The ID of the PackagingConfiguration.
*/
inline DescribePackagingConfigurationResult& WithId(const char* value) { SetId(value); return *this;}
inline const MssPackage& GetMssPackage() const{ return m_mssPackage; }
inline void SetMssPackage(const MssPackage& value) { m_mssPackage = value; }
inline void SetMssPackage(MssPackage&& value) { m_mssPackage = std::move(value); }
inline DescribePackagingConfigurationResult& WithMssPackage(const MssPackage& value) { SetMssPackage(value); return *this;}
inline DescribePackagingConfigurationResult& WithMssPackage(MssPackage&& value) { SetMssPackage(std::move(value)); return *this;}
/**
* The ID of a PackagingGroup.
*/
inline const Aws::String& GetPackagingGroupId() const{ return m_packagingGroupId; }
/**
* The ID of a PackagingGroup.
*/
inline void SetPackagingGroupId(const Aws::String& value) { m_packagingGroupId = value; }
/**
* The ID of a PackagingGroup.
*/
inline void SetPackagingGroupId(Aws::String&& value) { m_packagingGroupId = std::move(value); }
/**
* The ID of a PackagingGroup.
*/
inline void SetPackagingGroupId(const char* value) { m_packagingGroupId.assign(value); }
/**
* The ID of a PackagingGroup.
*/
inline DescribePackagingConfigurationResult& WithPackagingGroupId(const Aws::String& value) { SetPackagingGroupId(value); return *this;}
/**
* The ID of a PackagingGroup.
*/
inline DescribePackagingConfigurationResult& WithPackagingGroupId(Aws::String&& value) { SetPackagingGroupId(std::move(value)); return *this;}
/**
* The ID of a PackagingGroup.
*/
inline DescribePackagingConfigurationResult& WithPackagingGroupId(const char* value) { SetPackagingGroupId(value); return *this;}
inline const Aws::Map<Aws::String, Aws::String>& GetTags() const{ return m_tags; }
inline void SetTags(const Aws::Map<Aws::String, Aws::String>& value) { m_tags = value; }
inline void SetTags(Aws::Map<Aws::String, Aws::String>&& value) { m_tags = std::move(value); }
inline DescribePackagingConfigurationResult& WithTags(const Aws::Map<Aws::String, Aws::String>& value) { SetTags(value); return *this;}
inline DescribePackagingConfigurationResult& WithTags(Aws::Map<Aws::String, Aws::String>&& value) { SetTags(std::move(value)); return *this;}
inline DescribePackagingConfigurationResult& AddTags(const Aws::String& key, const Aws::String& value) { m_tags.emplace(key, value); return *this; }
inline DescribePackagingConfigurationResult& AddTags(Aws::String&& key, const Aws::String& value) { m_tags.emplace(std::move(key), value); return *this; }
inline DescribePackagingConfigurationResult& AddTags(const Aws::String& key, Aws::String&& value) { m_tags.emplace(key, std::move(value)); return *this; }
inline DescribePackagingConfigurationResult& AddTags(Aws::String&& key, Aws::String&& value) { m_tags.emplace(std::move(key), std::move(value)); return *this; }
inline DescribePackagingConfigurationResult& AddTags(const char* key, Aws::String&& value) { m_tags.emplace(key, std::move(value)); return *this; }
inline DescribePackagingConfigurationResult& AddTags(Aws::String&& key, const char* value) { m_tags.emplace(std::move(key), value); return *this; }
inline DescribePackagingConfigurationResult& AddTags(const char* key, const char* value) { m_tags.emplace(key, value); return *this; }
private:
Aws::String m_arn;
CmafPackage m_cmafPackage;
DashPackage m_dashPackage;
HlsPackage m_hlsPackage;
Aws::String m_id;
MssPackage m_mssPackage;
Aws::String m_packagingGroupId;
Aws::Map<Aws::String, Aws::String> m_tags;
};
} // namespace Model
} // namespace MediaPackageVod
} // namespace Aws

View File

@@ -0,0 +1,83 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/mediapackage-vod/MediaPackageVod_EXPORTS.h>
#include <aws/mediapackage-vod/MediaPackageVodRequest.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <utility>
namespace Aws
{
namespace MediaPackageVod
{
namespace Model
{
/**
*/
class AWS_MEDIAPACKAGEVOD_API DescribePackagingGroupRequest : public MediaPackageVodRequest
{
public:
DescribePackagingGroupRequest();
// Service request name is the Operation name which will send this request out,
// each operation should has unique request name, so that we can get operation's name from this request.
// Note: this is not true for response, multiple operations may have the same response name,
// so we can not get operation's name from response.
inline virtual const char* GetServiceRequestName() const override { return "DescribePackagingGroup"; }
Aws::String SerializePayload() const override;
/**
* The ID of a MediaPackage VOD PackagingGroup resource.
*/
inline const Aws::String& GetId() const{ return m_id; }
/**
* The ID of a MediaPackage VOD PackagingGroup resource.
*/
inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
/**
* The ID of a MediaPackage VOD PackagingGroup resource.
*/
inline void SetId(const Aws::String& value) { m_idHasBeenSet = true; m_id = value; }
/**
* The ID of a MediaPackage VOD PackagingGroup resource.
*/
inline void SetId(Aws::String&& value) { m_idHasBeenSet = true; m_id = std::move(value); }
/**
* The ID of a MediaPackage VOD PackagingGroup resource.
*/
inline void SetId(const char* value) { m_idHasBeenSet = true; m_id.assign(value); }
/**
* The ID of a MediaPackage VOD PackagingGroup resource.
*/
inline DescribePackagingGroupRequest& WithId(const Aws::String& value) { SetId(value); return *this;}
/**
* The ID of a MediaPackage VOD PackagingGroup resource.
*/
inline DescribePackagingGroupRequest& WithId(Aws::String&& value) { SetId(std::move(value)); return *this;}
/**
* The ID of a MediaPackage VOD PackagingGroup resource.
*/
inline DescribePackagingGroupRequest& WithId(const char* value) { SetId(value); return *this;}
private:
Aws::String m_id;
bool m_idHasBeenSet;
};
} // namespace Model
} // namespace MediaPackageVod
} // namespace Aws

View File

@@ -0,0 +1,212 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/mediapackage-vod/MediaPackageVod_EXPORTS.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <aws/mediapackage-vod/model/Authorization.h>
#include <aws/core/utils/memory/stl/AWSMap.h>
#include <utility>
namespace Aws
{
template<typename RESULT_TYPE>
class AmazonWebServiceResult;
namespace Utils
{
namespace Json
{
class JsonValue;
} // namespace Json
} // namespace Utils
namespace MediaPackageVod
{
namespace Model
{
class AWS_MEDIAPACKAGEVOD_API DescribePackagingGroupResult
{
public:
DescribePackagingGroupResult();
DescribePackagingGroupResult(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
DescribePackagingGroupResult& operator=(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
/**
* The ARN of the PackagingGroup.
*/
inline const Aws::String& GetArn() const{ return m_arn; }
/**
* The ARN of the PackagingGroup.
*/
inline void SetArn(const Aws::String& value) { m_arn = value; }
/**
* The ARN of the PackagingGroup.
*/
inline void SetArn(Aws::String&& value) { m_arn = std::move(value); }
/**
* The ARN of the PackagingGroup.
*/
inline void SetArn(const char* value) { m_arn.assign(value); }
/**
* The ARN of the PackagingGroup.
*/
inline DescribePackagingGroupResult& WithArn(const Aws::String& value) { SetArn(value); return *this;}
/**
* The ARN of the PackagingGroup.
*/
inline DescribePackagingGroupResult& WithArn(Aws::String&& value) { SetArn(std::move(value)); return *this;}
/**
* The ARN of the PackagingGroup.
*/
inline DescribePackagingGroupResult& WithArn(const char* value) { SetArn(value); return *this;}
inline const Authorization& GetAuthorization() const{ return m_authorization; }
inline void SetAuthorization(const Authorization& value) { m_authorization = value; }
inline void SetAuthorization(Authorization&& value) { m_authorization = std::move(value); }
inline DescribePackagingGroupResult& WithAuthorization(const Authorization& value) { SetAuthorization(value); return *this;}
inline DescribePackagingGroupResult& WithAuthorization(Authorization&& value) { SetAuthorization(std::move(value)); return *this;}
/**
* The fully qualified domain name for Assets in the PackagingGroup.
*/
inline const Aws::String& GetDomainName() const{ return m_domainName; }
/**
* The fully qualified domain name for Assets in the PackagingGroup.
*/
inline void SetDomainName(const Aws::String& value) { m_domainName = value; }
/**
* The fully qualified domain name for Assets in the PackagingGroup.
*/
inline void SetDomainName(Aws::String&& value) { m_domainName = std::move(value); }
/**
* The fully qualified domain name for Assets in the PackagingGroup.
*/
inline void SetDomainName(const char* value) { m_domainName.assign(value); }
/**
* The fully qualified domain name for Assets in the PackagingGroup.
*/
inline DescribePackagingGroupResult& WithDomainName(const Aws::String& value) { SetDomainName(value); return *this;}
/**
* The fully qualified domain name for Assets in the PackagingGroup.
*/
inline DescribePackagingGroupResult& WithDomainName(Aws::String&& value) { SetDomainName(std::move(value)); return *this;}
/**
* The fully qualified domain name for Assets in the PackagingGroup.
*/
inline DescribePackagingGroupResult& WithDomainName(const char* value) { SetDomainName(value); return *this;}
/**
* The ID of the PackagingGroup.
*/
inline const Aws::String& GetId() const{ return m_id; }
/**
* The ID of the PackagingGroup.
*/
inline void SetId(const Aws::String& value) { m_id = value; }
/**
* The ID of the PackagingGroup.
*/
inline void SetId(Aws::String&& value) { m_id = std::move(value); }
/**
* The ID of the PackagingGroup.
*/
inline void SetId(const char* value) { m_id.assign(value); }
/**
* The ID of the PackagingGroup.
*/
inline DescribePackagingGroupResult& WithId(const Aws::String& value) { SetId(value); return *this;}
/**
* The ID of the PackagingGroup.
*/
inline DescribePackagingGroupResult& WithId(Aws::String&& value) { SetId(std::move(value)); return *this;}
/**
* The ID of the PackagingGroup.
*/
inline DescribePackagingGroupResult& WithId(const char* value) { SetId(value); return *this;}
inline const Aws::Map<Aws::String, Aws::String>& GetTags() const{ return m_tags; }
inline void SetTags(const Aws::Map<Aws::String, Aws::String>& value) { m_tags = value; }
inline void SetTags(Aws::Map<Aws::String, Aws::String>&& value) { m_tags = std::move(value); }
inline DescribePackagingGroupResult& WithTags(const Aws::Map<Aws::String, Aws::String>& value) { SetTags(value); return *this;}
inline DescribePackagingGroupResult& WithTags(Aws::Map<Aws::String, Aws::String>&& value) { SetTags(std::move(value)); return *this;}
inline DescribePackagingGroupResult& AddTags(const Aws::String& key, const Aws::String& value) { m_tags.emplace(key, value); return *this; }
inline DescribePackagingGroupResult& AddTags(Aws::String&& key, const Aws::String& value) { m_tags.emplace(std::move(key), value); return *this; }
inline DescribePackagingGroupResult& AddTags(const Aws::String& key, Aws::String&& value) { m_tags.emplace(key, std::move(value)); return *this; }
inline DescribePackagingGroupResult& AddTags(Aws::String&& key, Aws::String&& value) { m_tags.emplace(std::move(key), std::move(value)); return *this; }
inline DescribePackagingGroupResult& AddTags(const char* key, Aws::String&& value) { m_tags.emplace(key, std::move(value)); return *this; }
inline DescribePackagingGroupResult& AddTags(Aws::String&& key, const char* value) { m_tags.emplace(std::move(key), value); return *this; }
inline DescribePackagingGroupResult& AddTags(const char* key, const char* value) { m_tags.emplace(key, value); return *this; }
private:
Aws::String m_arn;
Authorization m_authorization;
Aws::String m_domainName;
Aws::String m_id;
Aws::Map<Aws::String, Aws::String> m_tags;
};
} // namespace Model
} // namespace MediaPackageVod
} // namespace Aws

View File

@@ -0,0 +1,133 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/mediapackage-vod/MediaPackageVod_EXPORTS.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <utility>
namespace Aws
{
namespace Utils
{
namespace Json
{
class JsonValue;
class JsonView;
} // namespace Json
} // namespace Utils
namespace MediaPackageVod
{
namespace Model
{
/**
* The endpoint URL used to access an Asset using one
* PackagingConfiguration.<p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/mediapackage-vod-2018-11-07/EgressEndpoint">AWS
* API Reference</a></p>
*/
class AWS_MEDIAPACKAGEVOD_API EgressEndpoint
{
public:
EgressEndpoint();
EgressEndpoint(Aws::Utils::Json::JsonView jsonValue);
EgressEndpoint& operator=(Aws::Utils::Json::JsonView jsonValue);
Aws::Utils::Json::JsonValue Jsonize() const;
/**
* The ID of the PackagingConfiguration being applied to the Asset.
*/
inline const Aws::String& GetPackagingConfigurationId() const{ return m_packagingConfigurationId; }
/**
* The ID of the PackagingConfiguration being applied to the Asset.
*/
inline bool PackagingConfigurationIdHasBeenSet() const { return m_packagingConfigurationIdHasBeenSet; }
/**
* The ID of the PackagingConfiguration being applied to the Asset.
*/
inline void SetPackagingConfigurationId(const Aws::String& value) { m_packagingConfigurationIdHasBeenSet = true; m_packagingConfigurationId = value; }
/**
* The ID of the PackagingConfiguration being applied to the Asset.
*/
inline void SetPackagingConfigurationId(Aws::String&& value) { m_packagingConfigurationIdHasBeenSet = true; m_packagingConfigurationId = std::move(value); }
/**
* The ID of the PackagingConfiguration being applied to the Asset.
*/
inline void SetPackagingConfigurationId(const char* value) { m_packagingConfigurationIdHasBeenSet = true; m_packagingConfigurationId.assign(value); }
/**
* The ID of the PackagingConfiguration being applied to the Asset.
*/
inline EgressEndpoint& WithPackagingConfigurationId(const Aws::String& value) { SetPackagingConfigurationId(value); return *this;}
/**
* The ID of the PackagingConfiguration being applied to the Asset.
*/
inline EgressEndpoint& WithPackagingConfigurationId(Aws::String&& value) { SetPackagingConfigurationId(std::move(value)); return *this;}
/**
* The ID of the PackagingConfiguration being applied to the Asset.
*/
inline EgressEndpoint& WithPackagingConfigurationId(const char* value) { SetPackagingConfigurationId(value); return *this;}
/**
* The URL of the parent manifest for the repackaged Asset.
*/
inline const Aws::String& GetUrl() const{ return m_url; }
/**
* The URL of the parent manifest for the repackaged Asset.
*/
inline bool UrlHasBeenSet() const { return m_urlHasBeenSet; }
/**
* The URL of the parent manifest for the repackaged Asset.
*/
inline void SetUrl(const Aws::String& value) { m_urlHasBeenSet = true; m_url = value; }
/**
* The URL of the parent manifest for the repackaged Asset.
*/
inline void SetUrl(Aws::String&& value) { m_urlHasBeenSet = true; m_url = std::move(value); }
/**
* The URL of the parent manifest for the repackaged Asset.
*/
inline void SetUrl(const char* value) { m_urlHasBeenSet = true; m_url.assign(value); }
/**
* The URL of the parent manifest for the repackaged Asset.
*/
inline EgressEndpoint& WithUrl(const Aws::String& value) { SetUrl(value); return *this;}
/**
* The URL of the parent manifest for the repackaged Asset.
*/
inline EgressEndpoint& WithUrl(Aws::String&& value) { SetUrl(std::move(value)); return *this;}
/**
* The URL of the parent manifest for the repackaged Asset.
*/
inline EgressEndpoint& WithUrl(const char* value) { SetUrl(value); return *this;}
private:
Aws::String m_packagingConfigurationId;
bool m_packagingConfigurationIdHasBeenSet;
Aws::String m_url;
bool m_urlHasBeenSet;
};
} // namespace Model
} // namespace MediaPackageVod
} // namespace Aws

View File

@@ -0,0 +1,31 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/mediapackage-vod/MediaPackageVod_EXPORTS.h>
#include <aws/core/utils/memory/stl/AWSString.h>
namespace Aws
{
namespace MediaPackageVod
{
namespace Model
{
enum class EncryptionMethod
{
NOT_SET,
AES_128,
SAMPLE_AES
};
namespace EncryptionMethodMapper
{
AWS_MEDIAPACKAGEVOD_API EncryptionMethod GetEncryptionMethodForName(const Aws::String& name);
AWS_MEDIAPACKAGEVOD_API Aws::String GetNameForEncryptionMethod(EncryptionMethod value);
} // namespace EncryptionMethodMapper
} // namespace Model
} // namespace MediaPackageVod
} // namespace Aws

View File

@@ -0,0 +1,170 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/mediapackage-vod/MediaPackageVod_EXPORTS.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <aws/mediapackage-vod/model/EncryptionMethod.h>
#include <aws/mediapackage-vod/model/SpekeKeyProvider.h>
#include <utility>
namespace Aws
{
namespace Utils
{
namespace Json
{
class JsonValue;
class JsonView;
} // namespace Json
} // namespace Utils
namespace MediaPackageVod
{
namespace Model
{
/**
* An HTTP Live Streaming (HLS) encryption configuration.<p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/mediapackage-vod-2018-11-07/HlsEncryption">AWS
* API Reference</a></p>
*/
class AWS_MEDIAPACKAGEVOD_API HlsEncryption
{
public:
HlsEncryption();
HlsEncryption(Aws::Utils::Json::JsonView jsonValue);
HlsEncryption& operator=(Aws::Utils::Json::JsonView jsonValue);
Aws::Utils::Json::JsonValue Jsonize() const;
/**
* A constant initialization vector for encryption (optional).
When not specified
* the initialization vector will be periodically rotated.
*/
inline const Aws::String& GetConstantInitializationVector() const{ return m_constantInitializationVector; }
/**
* A constant initialization vector for encryption (optional).
When not specified
* the initialization vector will be periodically rotated.
*/
inline bool ConstantInitializationVectorHasBeenSet() const { return m_constantInitializationVectorHasBeenSet; }
/**
* A constant initialization vector for encryption (optional).
When not specified
* the initialization vector will be periodically rotated.
*/
inline void SetConstantInitializationVector(const Aws::String& value) { m_constantInitializationVectorHasBeenSet = true; m_constantInitializationVector = value; }
/**
* A constant initialization vector for encryption (optional).
When not specified
* the initialization vector will be periodically rotated.
*/
inline void SetConstantInitializationVector(Aws::String&& value) { m_constantInitializationVectorHasBeenSet = true; m_constantInitializationVector = std::move(value); }
/**
* A constant initialization vector for encryption (optional).
When not specified
* the initialization vector will be periodically rotated.
*/
inline void SetConstantInitializationVector(const char* value) { m_constantInitializationVectorHasBeenSet = true; m_constantInitializationVector.assign(value); }
/**
* A constant initialization vector for encryption (optional).
When not specified
* the initialization vector will be periodically rotated.
*/
inline HlsEncryption& WithConstantInitializationVector(const Aws::String& value) { SetConstantInitializationVector(value); return *this;}
/**
* A constant initialization vector for encryption (optional).
When not specified
* the initialization vector will be periodically rotated.
*/
inline HlsEncryption& WithConstantInitializationVector(Aws::String&& value) { SetConstantInitializationVector(std::move(value)); return *this;}
/**
* A constant initialization vector for encryption (optional).
When not specified
* the initialization vector will be periodically rotated.
*/
inline HlsEncryption& WithConstantInitializationVector(const char* value) { SetConstantInitializationVector(value); return *this;}
/**
* The encryption method to use.
*/
inline const EncryptionMethod& GetEncryptionMethod() const{ return m_encryptionMethod; }
/**
* The encryption method to use.
*/
inline bool EncryptionMethodHasBeenSet() const { return m_encryptionMethodHasBeenSet; }
/**
* The encryption method to use.
*/
inline void SetEncryptionMethod(const EncryptionMethod& value) { m_encryptionMethodHasBeenSet = true; m_encryptionMethod = value; }
/**
* The encryption method to use.
*/
inline void SetEncryptionMethod(EncryptionMethod&& value) { m_encryptionMethodHasBeenSet = true; m_encryptionMethod = std::move(value); }
/**
* The encryption method to use.
*/
inline HlsEncryption& WithEncryptionMethod(const EncryptionMethod& value) { SetEncryptionMethod(value); return *this;}
/**
* The encryption method to use.
*/
inline HlsEncryption& WithEncryptionMethod(EncryptionMethod&& value) { SetEncryptionMethod(std::move(value)); return *this;}
inline const SpekeKeyProvider& GetSpekeKeyProvider() const{ return m_spekeKeyProvider; }
inline bool SpekeKeyProviderHasBeenSet() const { return m_spekeKeyProviderHasBeenSet; }
inline void SetSpekeKeyProvider(const SpekeKeyProvider& value) { m_spekeKeyProviderHasBeenSet = true; m_spekeKeyProvider = value; }
inline void SetSpekeKeyProvider(SpekeKeyProvider&& value) { m_spekeKeyProviderHasBeenSet = true; m_spekeKeyProvider = std::move(value); }
inline HlsEncryption& WithSpekeKeyProvider(const SpekeKeyProvider& value) { SetSpekeKeyProvider(value); return *this;}
inline HlsEncryption& WithSpekeKeyProvider(SpekeKeyProvider&& value) { SetSpekeKeyProvider(std::move(value)); return *this;}
private:
Aws::String m_constantInitializationVector;
bool m_constantInitializationVectorHasBeenSet;
EncryptionMethod m_encryptionMethod;
bool m_encryptionMethodHasBeenSet;
SpekeKeyProvider m_spekeKeyProvider;
bool m_spekeKeyProviderHasBeenSet;
};
} // namespace Model
} // namespace MediaPackageVod
} // namespace Aws

View File

@@ -0,0 +1,348 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/mediapackage-vod/MediaPackageVod_EXPORTS.h>
#include <aws/mediapackage-vod/model/AdMarkers.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <aws/mediapackage-vod/model/StreamSelection.h>
#include <utility>
namespace Aws
{
namespace Utils
{
namespace Json
{
class JsonValue;
class JsonView;
} // namespace Json
} // namespace Utils
namespace MediaPackageVod
{
namespace Model
{
/**
* An HTTP Live Streaming (HLS) manifest configuration.<p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/mediapackage-vod-2018-11-07/HlsManifest">AWS
* API Reference</a></p>
*/
class AWS_MEDIAPACKAGEVOD_API HlsManifest
{
public:
HlsManifest();
HlsManifest(Aws::Utils::Json::JsonView jsonValue);
HlsManifest& operator=(Aws::Utils::Json::JsonView jsonValue);
Aws::Utils::Json::JsonValue Jsonize() const;
/**
* This setting controls how ad markers are included in the packaged
* OriginEndpoint.
"NONE" will omit all SCTE-35 ad markers from the
* output.
"PASSTHROUGH" causes the manifest to contain a copy of the SCTE-35
* ad
markers (comments) taken directly from the input HTTP Live Streaming (HLS)
* manifest.
"SCTE35_ENHANCED" generates ad markers and blackout tags based on
* SCTE-35
messages in the input source.
*/
inline const AdMarkers& GetAdMarkers() const{ return m_adMarkers; }
/**
* This setting controls how ad markers are included in the packaged
* OriginEndpoint.
"NONE" will omit all SCTE-35 ad markers from the
* output.
"PASSTHROUGH" causes the manifest to contain a copy of the SCTE-35
* ad
markers (comments) taken directly from the input HTTP Live Streaming (HLS)
* manifest.
"SCTE35_ENHANCED" generates ad markers and blackout tags based on
* SCTE-35
messages in the input source.
*/
inline bool AdMarkersHasBeenSet() const { return m_adMarkersHasBeenSet; }
/**
* This setting controls how ad markers are included in the packaged
* OriginEndpoint.
"NONE" will omit all SCTE-35 ad markers from the
* output.
"PASSTHROUGH" causes the manifest to contain a copy of the SCTE-35
* ad
markers (comments) taken directly from the input HTTP Live Streaming (HLS)
* manifest.
"SCTE35_ENHANCED" generates ad markers and blackout tags based on
* SCTE-35
messages in the input source.
*/
inline void SetAdMarkers(const AdMarkers& value) { m_adMarkersHasBeenSet = true; m_adMarkers = value; }
/**
* This setting controls how ad markers are included in the packaged
* OriginEndpoint.
"NONE" will omit all SCTE-35 ad markers from the
* output.
"PASSTHROUGH" causes the manifest to contain a copy of the SCTE-35
* ad
markers (comments) taken directly from the input HTTP Live Streaming (HLS)
* manifest.
"SCTE35_ENHANCED" generates ad markers and blackout tags based on
* SCTE-35
messages in the input source.
*/
inline void SetAdMarkers(AdMarkers&& value) { m_adMarkersHasBeenSet = true; m_adMarkers = std::move(value); }
/**
* This setting controls how ad markers are included in the packaged
* OriginEndpoint.
"NONE" will omit all SCTE-35 ad markers from the
* output.
"PASSTHROUGH" causes the manifest to contain a copy of the SCTE-35
* ad
markers (comments) taken directly from the input HTTP Live Streaming (HLS)
* manifest.
"SCTE35_ENHANCED" generates ad markers and blackout tags based on
* SCTE-35
messages in the input source.
*/
inline HlsManifest& WithAdMarkers(const AdMarkers& value) { SetAdMarkers(value); return *this;}
/**
* This setting controls how ad markers are included in the packaged
* OriginEndpoint.
"NONE" will omit all SCTE-35 ad markers from the
* output.
"PASSTHROUGH" causes the manifest to contain a copy of the SCTE-35
* ad
markers (comments) taken directly from the input HTTP Live Streaming (HLS)
* manifest.
"SCTE35_ENHANCED" generates ad markers and blackout tags based on
* SCTE-35
messages in the input source.
*/
inline HlsManifest& WithAdMarkers(AdMarkers&& value) { SetAdMarkers(std::move(value)); return *this;}
/**
* When enabled, an I-Frame only stream will be included in the output.
*/
inline bool GetIncludeIframeOnlyStream() const{ return m_includeIframeOnlyStream; }
/**
* When enabled, an I-Frame only stream will be included in the output.
*/
inline bool IncludeIframeOnlyStreamHasBeenSet() const { return m_includeIframeOnlyStreamHasBeenSet; }
/**
* When enabled, an I-Frame only stream will be included in the output.
*/
inline void SetIncludeIframeOnlyStream(bool value) { m_includeIframeOnlyStreamHasBeenSet = true; m_includeIframeOnlyStream = value; }
/**
* When enabled, an I-Frame only stream will be included in the output.
*/
inline HlsManifest& WithIncludeIframeOnlyStream(bool value) { SetIncludeIframeOnlyStream(value); return *this;}
/**
* An optional string to include in the name of the manifest.
*/
inline const Aws::String& GetManifestName() const{ return m_manifestName; }
/**
* An optional string to include in the name of the manifest.
*/
inline bool ManifestNameHasBeenSet() const { return m_manifestNameHasBeenSet; }
/**
* An optional string to include in the name of the manifest.
*/
inline void SetManifestName(const Aws::String& value) { m_manifestNameHasBeenSet = true; m_manifestName = value; }
/**
* An optional string to include in the name of the manifest.
*/
inline void SetManifestName(Aws::String&& value) { m_manifestNameHasBeenSet = true; m_manifestName = std::move(value); }
/**
* An optional string to include in the name of the manifest.
*/
inline void SetManifestName(const char* value) { m_manifestNameHasBeenSet = true; m_manifestName.assign(value); }
/**
* An optional string to include in the name of the manifest.
*/
inline HlsManifest& WithManifestName(const Aws::String& value) { SetManifestName(value); return *this;}
/**
* An optional string to include in the name of the manifest.
*/
inline HlsManifest& WithManifestName(Aws::String&& value) { SetManifestName(std::move(value)); return *this;}
/**
* An optional string to include in the name of the manifest.
*/
inline HlsManifest& WithManifestName(const char* value) { SetManifestName(value); return *this;}
/**
* The interval (in seconds) between each EXT-X-PROGRAM-DATE-TIME tag
inserted into
* manifests. Additionally, when an interval is specified
ID3Timed Metadata
* messages will be generated every 5 seconds using the
ingest time of the
* content.
If the interval is not specified, or set to 0, then
no
* EXT-X-PROGRAM-DATE-TIME tags will be inserted into manifests and no
ID3Timed
* Metadata messages will be generated. Note that irrespective
of this parameter,
* if any ID3 Timed Metadata is found in HTTP Live Streaming (HLS) input,
it will
* be passed through to HLS output.
*/
inline int GetProgramDateTimeIntervalSeconds() const{ return m_programDateTimeIntervalSeconds; }
/**
* The interval (in seconds) between each EXT-X-PROGRAM-DATE-TIME tag
inserted into
* manifests. Additionally, when an interval is specified
ID3Timed Metadata
* messages will be generated every 5 seconds using the
ingest time of the
* content.
If the interval is not specified, or set to 0, then
no
* EXT-X-PROGRAM-DATE-TIME tags will be inserted into manifests and no
ID3Timed
* Metadata messages will be generated. Note that irrespective
of this parameter,
* if any ID3 Timed Metadata is found in HTTP Live Streaming (HLS) input,
it will
* be passed through to HLS output.
*/
inline bool ProgramDateTimeIntervalSecondsHasBeenSet() const { return m_programDateTimeIntervalSecondsHasBeenSet; }
/**
* The interval (in seconds) between each EXT-X-PROGRAM-DATE-TIME tag
inserted into
* manifests. Additionally, when an interval is specified
ID3Timed Metadata
* messages will be generated every 5 seconds using the
ingest time of the
* content.
If the interval is not specified, or set to 0, then
no
* EXT-X-PROGRAM-DATE-TIME tags will be inserted into manifests and no
ID3Timed
* Metadata messages will be generated. Note that irrespective
of this parameter,
* if any ID3 Timed Metadata is found in HTTP Live Streaming (HLS) input,
it will
* be passed through to HLS output.
*/
inline void SetProgramDateTimeIntervalSeconds(int value) { m_programDateTimeIntervalSecondsHasBeenSet = true; m_programDateTimeIntervalSeconds = value; }
/**
* The interval (in seconds) between each EXT-X-PROGRAM-DATE-TIME tag
inserted into
* manifests. Additionally, when an interval is specified
ID3Timed Metadata
* messages will be generated every 5 seconds using the
ingest time of the
* content.
If the interval is not specified, or set to 0, then
no
* EXT-X-PROGRAM-DATE-TIME tags will be inserted into manifests and no
ID3Timed
* Metadata messages will be generated. Note that irrespective
of this parameter,
* if any ID3 Timed Metadata is found in HTTP Live Streaming (HLS) input,
it will
* be passed through to HLS output.
*/
inline HlsManifest& WithProgramDateTimeIntervalSeconds(int value) { SetProgramDateTimeIntervalSeconds(value); return *this;}
/**
* When enabled, the EXT-X-KEY tag will be repeated in output manifests.
*/
inline bool GetRepeatExtXKey() const{ return m_repeatExtXKey; }
/**
* When enabled, the EXT-X-KEY tag will be repeated in output manifests.
*/
inline bool RepeatExtXKeyHasBeenSet() const { return m_repeatExtXKeyHasBeenSet; }
/**
* When enabled, the EXT-X-KEY tag will be repeated in output manifests.
*/
inline void SetRepeatExtXKey(bool value) { m_repeatExtXKeyHasBeenSet = true; m_repeatExtXKey = value; }
/**
* When enabled, the EXT-X-KEY tag will be repeated in output manifests.
*/
inline HlsManifest& WithRepeatExtXKey(bool value) { SetRepeatExtXKey(value); return *this;}
inline const StreamSelection& GetStreamSelection() const{ return m_streamSelection; }
inline bool StreamSelectionHasBeenSet() const { return m_streamSelectionHasBeenSet; }
inline void SetStreamSelection(const StreamSelection& value) { m_streamSelectionHasBeenSet = true; m_streamSelection = value; }
inline void SetStreamSelection(StreamSelection&& value) { m_streamSelectionHasBeenSet = true; m_streamSelection = std::move(value); }
inline HlsManifest& WithStreamSelection(const StreamSelection& value) { SetStreamSelection(value); return *this;}
inline HlsManifest& WithStreamSelection(StreamSelection&& value) { SetStreamSelection(std::move(value)); return *this;}
private:
AdMarkers m_adMarkers;
bool m_adMarkersHasBeenSet;
bool m_includeIframeOnlyStream;
bool m_includeIframeOnlyStreamHasBeenSet;
Aws::String m_manifestName;
bool m_manifestNameHasBeenSet;
int m_programDateTimeIntervalSeconds;
bool m_programDateTimeIntervalSecondsHasBeenSet;
bool m_repeatExtXKey;
bool m_repeatExtXKeyHasBeenSet;
StreamSelection m_streamSelection;
bool m_streamSelectionHasBeenSet;
};
} // namespace Model
} // namespace MediaPackageVod
} // namespace Aws

View File

@@ -0,0 +1,172 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/mediapackage-vod/MediaPackageVod_EXPORTS.h>
#include <aws/mediapackage-vod/model/HlsEncryption.h>
#include <aws/core/utils/memory/stl/AWSVector.h>
#include <aws/mediapackage-vod/model/HlsManifest.h>
#include <utility>
namespace Aws
{
namespace Utils
{
namespace Json
{
class JsonValue;
class JsonView;
} // namespace Json
} // namespace Utils
namespace MediaPackageVod
{
namespace Model
{
/**
* An HTTP Live Streaming (HLS) packaging configuration.<p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/mediapackage-vod-2018-11-07/HlsPackage">AWS
* API Reference</a></p>
*/
class AWS_MEDIAPACKAGEVOD_API HlsPackage
{
public:
HlsPackage();
HlsPackage(Aws::Utils::Json::JsonView jsonValue);
HlsPackage& operator=(Aws::Utils::Json::JsonView jsonValue);
Aws::Utils::Json::JsonValue Jsonize() const;
inline const HlsEncryption& GetEncryption() const{ return m_encryption; }
inline bool EncryptionHasBeenSet() const { return m_encryptionHasBeenSet; }
inline void SetEncryption(const HlsEncryption& value) { m_encryptionHasBeenSet = true; m_encryption = value; }
inline void SetEncryption(HlsEncryption&& value) { m_encryptionHasBeenSet = true; m_encryption = std::move(value); }
inline HlsPackage& WithEncryption(const HlsEncryption& value) { SetEncryption(value); return *this;}
inline HlsPackage& WithEncryption(HlsEncryption&& value) { SetEncryption(std::move(value)); return *this;}
/**
* A list of HLS manifest configurations.
*/
inline const Aws::Vector<HlsManifest>& GetHlsManifests() const{ return m_hlsManifests; }
/**
* A list of HLS manifest configurations.
*/
inline bool HlsManifestsHasBeenSet() const { return m_hlsManifestsHasBeenSet; }
/**
* A list of HLS manifest configurations.
*/
inline void SetHlsManifests(const Aws::Vector<HlsManifest>& value) { m_hlsManifestsHasBeenSet = true; m_hlsManifests = value; }
/**
* A list of HLS manifest configurations.
*/
inline void SetHlsManifests(Aws::Vector<HlsManifest>&& value) { m_hlsManifestsHasBeenSet = true; m_hlsManifests = std::move(value); }
/**
* A list of HLS manifest configurations.
*/
inline HlsPackage& WithHlsManifests(const Aws::Vector<HlsManifest>& value) { SetHlsManifests(value); return *this;}
/**
* A list of HLS manifest configurations.
*/
inline HlsPackage& WithHlsManifests(Aws::Vector<HlsManifest>&& value) { SetHlsManifests(std::move(value)); return *this;}
/**
* A list of HLS manifest configurations.
*/
inline HlsPackage& AddHlsManifests(const HlsManifest& value) { m_hlsManifestsHasBeenSet = true; m_hlsManifests.push_back(value); return *this; }
/**
* A list of HLS manifest configurations.
*/
inline HlsPackage& AddHlsManifests(HlsManifest&& value) { m_hlsManifestsHasBeenSet = true; m_hlsManifests.push_back(std::move(value)); return *this; }
/**
* Duration (in seconds) of each fragment. Actual fragments will be
rounded to the
* nearest multiple of the source fragment duration.
*/
inline int GetSegmentDurationSeconds() const{ return m_segmentDurationSeconds; }
/**
* Duration (in seconds) of each fragment. Actual fragments will be
rounded to the
* nearest multiple of the source fragment duration.
*/
inline bool SegmentDurationSecondsHasBeenSet() const { return m_segmentDurationSecondsHasBeenSet; }
/**
* Duration (in seconds) of each fragment. Actual fragments will be
rounded to the
* nearest multiple of the source fragment duration.
*/
inline void SetSegmentDurationSeconds(int value) { m_segmentDurationSecondsHasBeenSet = true; m_segmentDurationSeconds = value; }
/**
* Duration (in seconds) of each fragment. Actual fragments will be
rounded to the
* nearest multiple of the source fragment duration.
*/
inline HlsPackage& WithSegmentDurationSeconds(int value) { SetSegmentDurationSeconds(value); return *this;}
/**
* When enabled, audio streams will be placed in rendition groups in the output.
*/
inline bool GetUseAudioRenditionGroup() const{ return m_useAudioRenditionGroup; }
/**
* When enabled, audio streams will be placed in rendition groups in the output.
*/
inline bool UseAudioRenditionGroupHasBeenSet() const { return m_useAudioRenditionGroupHasBeenSet; }
/**
* When enabled, audio streams will be placed in rendition groups in the output.
*/
inline void SetUseAudioRenditionGroup(bool value) { m_useAudioRenditionGroupHasBeenSet = true; m_useAudioRenditionGroup = value; }
/**
* When enabled, audio streams will be placed in rendition groups in the output.
*/
inline HlsPackage& WithUseAudioRenditionGroup(bool value) { SetUseAudioRenditionGroup(value); return *this;}
private:
HlsEncryption m_encryption;
bool m_encryptionHasBeenSet;
Aws::Vector<HlsManifest> m_hlsManifests;
bool m_hlsManifestsHasBeenSet;
int m_segmentDurationSeconds;
bool m_segmentDurationSecondsHasBeenSet;
bool m_useAudioRenditionGroup;
bool m_useAudioRenditionGroupHasBeenSet;
};
} // namespace Model
} // namespace MediaPackageVod
} // namespace Aws

View File

@@ -0,0 +1,157 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/mediapackage-vod/MediaPackageVod_EXPORTS.h>
#include <aws/mediapackage-vod/MediaPackageVodRequest.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <utility>
namespace Aws
{
namespace Http
{
class URI;
} //namespace Http
namespace MediaPackageVod
{
namespace Model
{
/**
*/
class AWS_MEDIAPACKAGEVOD_API ListAssetsRequest : public MediaPackageVodRequest
{
public:
ListAssetsRequest();
// Service request name is the Operation name which will send this request out,
// each operation should has unique request name, so that we can get operation's name from this request.
// Note: this is not true for response, multiple operations may have the same response name,
// so we can not get operation's name from response.
inline virtual const char* GetServiceRequestName() const override { return "ListAssets"; }
Aws::String SerializePayload() const override;
void AddQueryStringParameters(Aws::Http::URI& uri) const override;
/**
* Upper bound on number of records to return.
*/
inline int GetMaxResults() const{ return m_maxResults; }
/**
* Upper bound on number of records to return.
*/
inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
/**
* Upper bound on number of records to return.
*/
inline void SetMaxResults(int value) { m_maxResultsHasBeenSet = true; m_maxResults = value; }
/**
* Upper bound on number of records to return.
*/
inline ListAssetsRequest& WithMaxResults(int value) { SetMaxResults(value); return *this;}
/**
* A token used to resume pagination from the end of a previous request.
*/
inline const Aws::String& GetNextToken() const{ return m_nextToken; }
/**
* A token used to resume pagination from the end of a previous request.
*/
inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
/**
* A token used to resume pagination from the end of a previous request.
*/
inline void SetNextToken(const Aws::String& value) { m_nextTokenHasBeenSet = true; m_nextToken = value; }
/**
* A token used to resume pagination from the end of a previous request.
*/
inline void SetNextToken(Aws::String&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::move(value); }
/**
* A token used to resume pagination from the end of a previous request.
*/
inline void SetNextToken(const char* value) { m_nextTokenHasBeenSet = true; m_nextToken.assign(value); }
/**
* A token used to resume pagination from the end of a previous request.
*/
inline ListAssetsRequest& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;}
/**
* A token used to resume pagination from the end of a previous request.
*/
inline ListAssetsRequest& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;}
/**
* A token used to resume pagination from the end of a previous request.
*/
inline ListAssetsRequest& WithNextToken(const char* value) { SetNextToken(value); return *this;}
/**
* Returns Assets associated with the specified PackagingGroup.
*/
inline const Aws::String& GetPackagingGroupId() const{ return m_packagingGroupId; }
/**
* Returns Assets associated with the specified PackagingGroup.
*/
inline bool PackagingGroupIdHasBeenSet() const { return m_packagingGroupIdHasBeenSet; }
/**
* Returns Assets associated with the specified PackagingGroup.
*/
inline void SetPackagingGroupId(const Aws::String& value) { m_packagingGroupIdHasBeenSet = true; m_packagingGroupId = value; }
/**
* Returns Assets associated with the specified PackagingGroup.
*/
inline void SetPackagingGroupId(Aws::String&& value) { m_packagingGroupIdHasBeenSet = true; m_packagingGroupId = std::move(value); }
/**
* Returns Assets associated with the specified PackagingGroup.
*/
inline void SetPackagingGroupId(const char* value) { m_packagingGroupIdHasBeenSet = true; m_packagingGroupId.assign(value); }
/**
* Returns Assets associated with the specified PackagingGroup.
*/
inline ListAssetsRequest& WithPackagingGroupId(const Aws::String& value) { SetPackagingGroupId(value); return *this;}
/**
* Returns Assets associated with the specified PackagingGroup.
*/
inline ListAssetsRequest& WithPackagingGroupId(Aws::String&& value) { SetPackagingGroupId(std::move(value)); return *this;}
/**
* Returns Assets associated with the specified PackagingGroup.
*/
inline ListAssetsRequest& WithPackagingGroupId(const char* value) { SetPackagingGroupId(value); return *this;}
private:
int m_maxResults;
bool m_maxResultsHasBeenSet;
Aws::String m_nextToken;
bool m_nextTokenHasBeenSet;
Aws::String m_packagingGroupId;
bool m_packagingGroupIdHasBeenSet;
};
} // namespace Model
} // namespace MediaPackageVod
} // namespace Aws

View File

@@ -0,0 +1,117 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/mediapackage-vod/MediaPackageVod_EXPORTS.h>
#include <aws/core/utils/memory/stl/AWSVector.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <aws/mediapackage-vod/model/AssetShallow.h>
#include <utility>
namespace Aws
{
template<typename RESULT_TYPE>
class AmazonWebServiceResult;
namespace Utils
{
namespace Json
{
class JsonValue;
} // namespace Json
} // namespace Utils
namespace MediaPackageVod
{
namespace Model
{
class AWS_MEDIAPACKAGEVOD_API ListAssetsResult
{
public:
ListAssetsResult();
ListAssetsResult(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
ListAssetsResult& operator=(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
/**
* A list of MediaPackage VOD Asset resources.
*/
inline const Aws::Vector<AssetShallow>& GetAssets() const{ return m_assets; }
/**
* A list of MediaPackage VOD Asset resources.
*/
inline void SetAssets(const Aws::Vector<AssetShallow>& value) { m_assets = value; }
/**
* A list of MediaPackage VOD Asset resources.
*/
inline void SetAssets(Aws::Vector<AssetShallow>&& value) { m_assets = std::move(value); }
/**
* A list of MediaPackage VOD Asset resources.
*/
inline ListAssetsResult& WithAssets(const Aws::Vector<AssetShallow>& value) { SetAssets(value); return *this;}
/**
* A list of MediaPackage VOD Asset resources.
*/
inline ListAssetsResult& WithAssets(Aws::Vector<AssetShallow>&& value) { SetAssets(std::move(value)); return *this;}
/**
* A list of MediaPackage VOD Asset resources.
*/
inline ListAssetsResult& AddAssets(const AssetShallow& value) { m_assets.push_back(value); return *this; }
/**
* A list of MediaPackage VOD Asset resources.
*/
inline ListAssetsResult& AddAssets(AssetShallow&& value) { m_assets.push_back(std::move(value)); return *this; }
/**
* A token that can be used to resume pagination from the end of the collection.
*/
inline const Aws::String& GetNextToken() const{ return m_nextToken; }
/**
* A token that can be used to resume pagination from the end of the collection.
*/
inline void SetNextToken(const Aws::String& value) { m_nextToken = value; }
/**
* A token that can be used to resume pagination from the end of the collection.
*/
inline void SetNextToken(Aws::String&& value) { m_nextToken = std::move(value); }
/**
* A token that can be used to resume pagination from the end of the collection.
*/
inline void SetNextToken(const char* value) { m_nextToken.assign(value); }
/**
* A token that can be used to resume pagination from the end of the collection.
*/
inline ListAssetsResult& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;}
/**
* A token that can be used to resume pagination from the end of the collection.
*/
inline ListAssetsResult& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;}
/**
* A token that can be used to resume pagination from the end of the collection.
*/
inline ListAssetsResult& WithNextToken(const char* value) { SetNextToken(value); return *this;}
private:
Aws::Vector<AssetShallow> m_assets;
Aws::String m_nextToken;
};
} // namespace Model
} // namespace MediaPackageVod
} // namespace Aws

View File

@@ -0,0 +1,165 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/mediapackage-vod/MediaPackageVod_EXPORTS.h>
#include <aws/mediapackage-vod/MediaPackageVodRequest.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <utility>
namespace Aws
{
namespace Http
{
class URI;
} //namespace Http
namespace MediaPackageVod
{
namespace Model
{
/**
*/
class AWS_MEDIAPACKAGEVOD_API ListPackagingConfigurationsRequest : public MediaPackageVodRequest
{
public:
ListPackagingConfigurationsRequest();
// Service request name is the Operation name which will send this request out,
// each operation should has unique request name, so that we can get operation's name from this request.
// Note: this is not true for response, multiple operations may have the same response name,
// so we can not get operation's name from response.
inline virtual const char* GetServiceRequestName() const override { return "ListPackagingConfigurations"; }
Aws::String SerializePayload() const override;
void AddQueryStringParameters(Aws::Http::URI& uri) const override;
/**
* Upper bound on number of records to return.
*/
inline int GetMaxResults() const{ return m_maxResults; }
/**
* Upper bound on number of records to return.
*/
inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
/**
* Upper bound on number of records to return.
*/
inline void SetMaxResults(int value) { m_maxResultsHasBeenSet = true; m_maxResults = value; }
/**
* Upper bound on number of records to return.
*/
inline ListPackagingConfigurationsRequest& WithMaxResults(int value) { SetMaxResults(value); return *this;}
/**
* A token used to resume pagination from the end of a previous request.
*/
inline const Aws::String& GetNextToken() const{ return m_nextToken; }
/**
* A token used to resume pagination from the end of a previous request.
*/
inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
/**
* A token used to resume pagination from the end of a previous request.
*/
inline void SetNextToken(const Aws::String& value) { m_nextTokenHasBeenSet = true; m_nextToken = value; }
/**
* A token used to resume pagination from the end of a previous request.
*/
inline void SetNextToken(Aws::String&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::move(value); }
/**
* A token used to resume pagination from the end of a previous request.
*/
inline void SetNextToken(const char* value) { m_nextTokenHasBeenSet = true; m_nextToken.assign(value); }
/**
* A token used to resume pagination from the end of a previous request.
*/
inline ListPackagingConfigurationsRequest& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;}
/**
* A token used to resume pagination from the end of a previous request.
*/
inline ListPackagingConfigurationsRequest& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;}
/**
* A token used to resume pagination from the end of a previous request.
*/
inline ListPackagingConfigurationsRequest& WithNextToken(const char* value) { SetNextToken(value); return *this;}
/**
* Returns MediaPackage VOD PackagingConfigurations associated with the specified
* PackagingGroup.
*/
inline const Aws::String& GetPackagingGroupId() const{ return m_packagingGroupId; }
/**
* Returns MediaPackage VOD PackagingConfigurations associated with the specified
* PackagingGroup.
*/
inline bool PackagingGroupIdHasBeenSet() const { return m_packagingGroupIdHasBeenSet; }
/**
* Returns MediaPackage VOD PackagingConfigurations associated with the specified
* PackagingGroup.
*/
inline void SetPackagingGroupId(const Aws::String& value) { m_packagingGroupIdHasBeenSet = true; m_packagingGroupId = value; }
/**
* Returns MediaPackage VOD PackagingConfigurations associated with the specified
* PackagingGroup.
*/
inline void SetPackagingGroupId(Aws::String&& value) { m_packagingGroupIdHasBeenSet = true; m_packagingGroupId = std::move(value); }
/**
* Returns MediaPackage VOD PackagingConfigurations associated with the specified
* PackagingGroup.
*/
inline void SetPackagingGroupId(const char* value) { m_packagingGroupIdHasBeenSet = true; m_packagingGroupId.assign(value); }
/**
* Returns MediaPackage VOD PackagingConfigurations associated with the specified
* PackagingGroup.
*/
inline ListPackagingConfigurationsRequest& WithPackagingGroupId(const Aws::String& value) { SetPackagingGroupId(value); return *this;}
/**
* Returns MediaPackage VOD PackagingConfigurations associated with the specified
* PackagingGroup.
*/
inline ListPackagingConfigurationsRequest& WithPackagingGroupId(Aws::String&& value) { SetPackagingGroupId(std::move(value)); return *this;}
/**
* Returns MediaPackage VOD PackagingConfigurations associated with the specified
* PackagingGroup.
*/
inline ListPackagingConfigurationsRequest& WithPackagingGroupId(const char* value) { SetPackagingGroupId(value); return *this;}
private:
int m_maxResults;
bool m_maxResultsHasBeenSet;
Aws::String m_nextToken;
bool m_nextTokenHasBeenSet;
Aws::String m_packagingGroupId;
bool m_packagingGroupIdHasBeenSet;
};
} // namespace Model
} // namespace MediaPackageVod
} // namespace Aws

View File

@@ -0,0 +1,117 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/mediapackage-vod/MediaPackageVod_EXPORTS.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <aws/core/utils/memory/stl/AWSVector.h>
#include <aws/mediapackage-vod/model/PackagingConfiguration.h>
#include <utility>
namespace Aws
{
template<typename RESULT_TYPE>
class AmazonWebServiceResult;
namespace Utils
{
namespace Json
{
class JsonValue;
} // namespace Json
} // namespace Utils
namespace MediaPackageVod
{
namespace Model
{
class AWS_MEDIAPACKAGEVOD_API ListPackagingConfigurationsResult
{
public:
ListPackagingConfigurationsResult();
ListPackagingConfigurationsResult(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
ListPackagingConfigurationsResult& operator=(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
/**
* A token that can be used to resume pagination from the end of the collection.
*/
inline const Aws::String& GetNextToken() const{ return m_nextToken; }
/**
* A token that can be used to resume pagination from the end of the collection.
*/
inline void SetNextToken(const Aws::String& value) { m_nextToken = value; }
/**
* A token that can be used to resume pagination from the end of the collection.
*/
inline void SetNextToken(Aws::String&& value) { m_nextToken = std::move(value); }
/**
* A token that can be used to resume pagination from the end of the collection.
*/
inline void SetNextToken(const char* value) { m_nextToken.assign(value); }
/**
* A token that can be used to resume pagination from the end of the collection.
*/
inline ListPackagingConfigurationsResult& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;}
/**
* A token that can be used to resume pagination from the end of the collection.
*/
inline ListPackagingConfigurationsResult& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;}
/**
* A token that can be used to resume pagination from the end of the collection.
*/
inline ListPackagingConfigurationsResult& WithNextToken(const char* value) { SetNextToken(value); return *this;}
/**
* A list of MediaPackage VOD PackagingConfiguration resources.
*/
inline const Aws::Vector<PackagingConfiguration>& GetPackagingConfigurations() const{ return m_packagingConfigurations; }
/**
* A list of MediaPackage VOD PackagingConfiguration resources.
*/
inline void SetPackagingConfigurations(const Aws::Vector<PackagingConfiguration>& value) { m_packagingConfigurations = value; }
/**
* A list of MediaPackage VOD PackagingConfiguration resources.
*/
inline void SetPackagingConfigurations(Aws::Vector<PackagingConfiguration>&& value) { m_packagingConfigurations = std::move(value); }
/**
* A list of MediaPackage VOD PackagingConfiguration resources.
*/
inline ListPackagingConfigurationsResult& WithPackagingConfigurations(const Aws::Vector<PackagingConfiguration>& value) { SetPackagingConfigurations(value); return *this;}
/**
* A list of MediaPackage VOD PackagingConfiguration resources.
*/
inline ListPackagingConfigurationsResult& WithPackagingConfigurations(Aws::Vector<PackagingConfiguration>&& value) { SetPackagingConfigurations(std::move(value)); return *this;}
/**
* A list of MediaPackage VOD PackagingConfiguration resources.
*/
inline ListPackagingConfigurationsResult& AddPackagingConfigurations(const PackagingConfiguration& value) { m_packagingConfigurations.push_back(value); return *this; }
/**
* A list of MediaPackage VOD PackagingConfiguration resources.
*/
inline ListPackagingConfigurationsResult& AddPackagingConfigurations(PackagingConfiguration&& value) { m_packagingConfigurations.push_back(std::move(value)); return *this; }
private:
Aws::String m_nextToken;
Aws::Vector<PackagingConfiguration> m_packagingConfigurations;
};
} // namespace Model
} // namespace MediaPackageVod
} // namespace Aws

View File

@@ -0,0 +1,113 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/mediapackage-vod/MediaPackageVod_EXPORTS.h>
#include <aws/mediapackage-vod/MediaPackageVodRequest.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <utility>
namespace Aws
{
namespace Http
{
class URI;
} //namespace Http
namespace MediaPackageVod
{
namespace Model
{
/**
*/
class AWS_MEDIAPACKAGEVOD_API ListPackagingGroupsRequest : public MediaPackageVodRequest
{
public:
ListPackagingGroupsRequest();
// Service request name is the Operation name which will send this request out,
// each operation should has unique request name, so that we can get operation's name from this request.
// Note: this is not true for response, multiple operations may have the same response name,
// so we can not get operation's name from response.
inline virtual const char* GetServiceRequestName() const override { return "ListPackagingGroups"; }
Aws::String SerializePayload() const override;
void AddQueryStringParameters(Aws::Http::URI& uri) const override;
/**
* Upper bound on number of records to return.
*/
inline int GetMaxResults() const{ return m_maxResults; }
/**
* Upper bound on number of records to return.
*/
inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
/**
* Upper bound on number of records to return.
*/
inline void SetMaxResults(int value) { m_maxResultsHasBeenSet = true; m_maxResults = value; }
/**
* Upper bound on number of records to return.
*/
inline ListPackagingGroupsRequest& WithMaxResults(int value) { SetMaxResults(value); return *this;}
/**
* A token used to resume pagination from the end of a previous request.
*/
inline const Aws::String& GetNextToken() const{ return m_nextToken; }
/**
* A token used to resume pagination from the end of a previous request.
*/
inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
/**
* A token used to resume pagination from the end of a previous request.
*/
inline void SetNextToken(const Aws::String& value) { m_nextTokenHasBeenSet = true; m_nextToken = value; }
/**
* A token used to resume pagination from the end of a previous request.
*/
inline void SetNextToken(Aws::String&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::move(value); }
/**
* A token used to resume pagination from the end of a previous request.
*/
inline void SetNextToken(const char* value) { m_nextTokenHasBeenSet = true; m_nextToken.assign(value); }
/**
* A token used to resume pagination from the end of a previous request.
*/
inline ListPackagingGroupsRequest& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;}
/**
* A token used to resume pagination from the end of a previous request.
*/
inline ListPackagingGroupsRequest& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;}
/**
* A token used to resume pagination from the end of a previous request.
*/
inline ListPackagingGroupsRequest& WithNextToken(const char* value) { SetNextToken(value); return *this;}
private:
int m_maxResults;
bool m_maxResultsHasBeenSet;
Aws::String m_nextToken;
bool m_nextTokenHasBeenSet;
};
} // namespace Model
} // namespace MediaPackageVod
} // namespace Aws

View File

@@ -0,0 +1,117 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/mediapackage-vod/MediaPackageVod_EXPORTS.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <aws/core/utils/memory/stl/AWSVector.h>
#include <aws/mediapackage-vod/model/PackagingGroup.h>
#include <utility>
namespace Aws
{
template<typename RESULT_TYPE>
class AmazonWebServiceResult;
namespace Utils
{
namespace Json
{
class JsonValue;
} // namespace Json
} // namespace Utils
namespace MediaPackageVod
{
namespace Model
{
class AWS_MEDIAPACKAGEVOD_API ListPackagingGroupsResult
{
public:
ListPackagingGroupsResult();
ListPackagingGroupsResult(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
ListPackagingGroupsResult& operator=(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
/**
* A token that can be used to resume pagination from the end of the collection.
*/
inline const Aws::String& GetNextToken() const{ return m_nextToken; }
/**
* A token that can be used to resume pagination from the end of the collection.
*/
inline void SetNextToken(const Aws::String& value) { m_nextToken = value; }
/**
* A token that can be used to resume pagination from the end of the collection.
*/
inline void SetNextToken(Aws::String&& value) { m_nextToken = std::move(value); }
/**
* A token that can be used to resume pagination from the end of the collection.
*/
inline void SetNextToken(const char* value) { m_nextToken.assign(value); }
/**
* A token that can be used to resume pagination from the end of the collection.
*/
inline ListPackagingGroupsResult& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;}
/**
* A token that can be used to resume pagination from the end of the collection.
*/
inline ListPackagingGroupsResult& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;}
/**
* A token that can be used to resume pagination from the end of the collection.
*/
inline ListPackagingGroupsResult& WithNextToken(const char* value) { SetNextToken(value); return *this;}
/**
* A list of MediaPackage VOD PackagingGroup resources.
*/
inline const Aws::Vector<PackagingGroup>& GetPackagingGroups() const{ return m_packagingGroups; }
/**
* A list of MediaPackage VOD PackagingGroup resources.
*/
inline void SetPackagingGroups(const Aws::Vector<PackagingGroup>& value) { m_packagingGroups = value; }
/**
* A list of MediaPackage VOD PackagingGroup resources.
*/
inline void SetPackagingGroups(Aws::Vector<PackagingGroup>&& value) { m_packagingGroups = std::move(value); }
/**
* A list of MediaPackage VOD PackagingGroup resources.
*/
inline ListPackagingGroupsResult& WithPackagingGroups(const Aws::Vector<PackagingGroup>& value) { SetPackagingGroups(value); return *this;}
/**
* A list of MediaPackage VOD PackagingGroup resources.
*/
inline ListPackagingGroupsResult& WithPackagingGroups(Aws::Vector<PackagingGroup>&& value) { SetPackagingGroups(std::move(value)); return *this;}
/**
* A list of MediaPackage VOD PackagingGroup resources.
*/
inline ListPackagingGroupsResult& AddPackagingGroups(const PackagingGroup& value) { m_packagingGroups.push_back(value); return *this; }
/**
* A list of MediaPackage VOD PackagingGroup resources.
*/
inline ListPackagingGroupsResult& AddPackagingGroups(PackagingGroup&& value) { m_packagingGroups.push_back(std::move(value)); return *this; }
private:
Aws::String m_nextToken;
Aws::Vector<PackagingGroup> m_packagingGroups;
};
} // namespace Model
} // namespace MediaPackageVod
} // namespace Aws

View File

@@ -0,0 +1,91 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/mediapackage-vod/MediaPackageVod_EXPORTS.h>
#include <aws/mediapackage-vod/MediaPackageVodRequest.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <utility>
namespace Aws
{
namespace MediaPackageVod
{
namespace Model
{
/**
*/
class AWS_MEDIAPACKAGEVOD_API ListTagsForResourceRequest : public MediaPackageVodRequest
{
public:
ListTagsForResourceRequest();
// Service request name is the Operation name which will send this request out,
// each operation should has unique request name, so that we can get operation's name from this request.
// Note: this is not true for response, multiple operations may have the same response name,
// so we can not get operation's name from response.
inline virtual const char* GetServiceRequestName() const override { return "ListTagsForResource"; }
Aws::String SerializePayload() const override;
/**
* The Amazon Resource Name (ARN) for the resource. You can get this from the
* response to any request to the resource.
*/
inline const Aws::String& GetResourceArn() const{ return m_resourceArn; }
/**
* The Amazon Resource Name (ARN) for the resource. You can get this from the
* response to any request to the resource.
*/
inline bool ResourceArnHasBeenSet() const { return m_resourceArnHasBeenSet; }
/**
* The Amazon Resource Name (ARN) for the resource. You can get this from the
* response to any request to the resource.
*/
inline void SetResourceArn(const Aws::String& value) { m_resourceArnHasBeenSet = true; m_resourceArn = value; }
/**
* The Amazon Resource Name (ARN) for the resource. You can get this from the
* response to any request to the resource.
*/
inline void SetResourceArn(Aws::String&& value) { m_resourceArnHasBeenSet = true; m_resourceArn = std::move(value); }
/**
* The Amazon Resource Name (ARN) for the resource. You can get this from the
* response to any request to the resource.
*/
inline void SetResourceArn(const char* value) { m_resourceArnHasBeenSet = true; m_resourceArn.assign(value); }
/**
* The Amazon Resource Name (ARN) for the resource. You can get this from the
* response to any request to the resource.
*/
inline ListTagsForResourceRequest& WithResourceArn(const Aws::String& value) { SetResourceArn(value); return *this;}
/**
* The Amazon Resource Name (ARN) for the resource. You can get this from the
* response to any request to the resource.
*/
inline ListTagsForResourceRequest& WithResourceArn(Aws::String&& value) { SetResourceArn(std::move(value)); return *this;}
/**
* The Amazon Resource Name (ARN) for the resource. You can get this from the
* response to any request to the resource.
*/
inline ListTagsForResourceRequest& WithResourceArn(const char* value) { SetResourceArn(value); return *this;}
private:
Aws::String m_resourceArn;
bool m_resourceArnHasBeenSet;
};
} // namespace Model
} // namespace MediaPackageVod
} // namespace Aws

View File

@@ -0,0 +1,103 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/mediapackage-vod/MediaPackageVod_EXPORTS.h>
#include <aws/core/utils/memory/stl/AWSMap.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <utility>
namespace Aws
{
template<typename RESULT_TYPE>
class AmazonWebServiceResult;
namespace Utils
{
namespace Json
{
class JsonValue;
} // namespace Json
} // namespace Utils
namespace MediaPackageVod
{
namespace Model
{
class AWS_MEDIAPACKAGEVOD_API ListTagsForResourceResult
{
public:
ListTagsForResourceResult();
ListTagsForResourceResult(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
ListTagsForResourceResult& operator=(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
/**
* A collection of tags associated with a resource
*/
inline const Aws::Map<Aws::String, Aws::String>& GetTags() const{ return m_tags; }
/**
* A collection of tags associated with a resource
*/
inline void SetTags(const Aws::Map<Aws::String, Aws::String>& value) { m_tags = value; }
/**
* A collection of tags associated with a resource
*/
inline void SetTags(Aws::Map<Aws::String, Aws::String>&& value) { m_tags = std::move(value); }
/**
* A collection of tags associated with a resource
*/
inline ListTagsForResourceResult& WithTags(const Aws::Map<Aws::String, Aws::String>& value) { SetTags(value); return *this;}
/**
* A collection of tags associated with a resource
*/
inline ListTagsForResourceResult& WithTags(Aws::Map<Aws::String, Aws::String>&& value) { SetTags(std::move(value)); return *this;}
/**
* A collection of tags associated with a resource
*/
inline ListTagsForResourceResult& AddTags(const Aws::String& key, const Aws::String& value) { m_tags.emplace(key, value); return *this; }
/**
* A collection of tags associated with a resource
*/
inline ListTagsForResourceResult& AddTags(Aws::String&& key, const Aws::String& value) { m_tags.emplace(std::move(key), value); return *this; }
/**
* A collection of tags associated with a resource
*/
inline ListTagsForResourceResult& AddTags(const Aws::String& key, Aws::String&& value) { m_tags.emplace(key, std::move(value)); return *this; }
/**
* A collection of tags associated with a resource
*/
inline ListTagsForResourceResult& AddTags(Aws::String&& key, Aws::String&& value) { m_tags.emplace(std::move(key), std::move(value)); return *this; }
/**
* A collection of tags associated with a resource
*/
inline ListTagsForResourceResult& AddTags(const char* key, Aws::String&& value) { m_tags.emplace(key, std::move(value)); return *this; }
/**
* A collection of tags associated with a resource
*/
inline ListTagsForResourceResult& AddTags(Aws::String&& key, const char* value) { m_tags.emplace(std::move(key), value); return *this; }
/**
* A collection of tags associated with a resource
*/
inline ListTagsForResourceResult& AddTags(const char* key, const char* value) { m_tags.emplace(key, value); return *this; }
private:
Aws::Map<Aws::String, Aws::String> m_tags;
};
} // namespace Model
} // namespace MediaPackageVod
} // namespace Aws

View File

@@ -0,0 +1,31 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/mediapackage-vod/MediaPackageVod_EXPORTS.h>
#include <aws/core/utils/memory/stl/AWSString.h>
namespace Aws
{
namespace MediaPackageVod
{
namespace Model
{
enum class ManifestLayout
{
NOT_SET,
FULL,
COMPACT
};
namespace ManifestLayoutMapper
{
AWS_MEDIAPACKAGEVOD_API ManifestLayout GetManifestLayoutForName(const Aws::String& name);
AWS_MEDIAPACKAGEVOD_API Aws::String GetNameForManifestLayout(ManifestLayout value);
} // namespace ManifestLayoutMapper
} // namespace Model
} // namespace MediaPackageVod
} // namespace Aws

View File

@@ -0,0 +1,67 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/mediapackage-vod/MediaPackageVod_EXPORTS.h>
#include <aws/mediapackage-vod/model/SpekeKeyProvider.h>
#include <utility>
namespace Aws
{
namespace Utils
{
namespace Json
{
class JsonValue;
class JsonView;
} // namespace Json
} // namespace Utils
namespace MediaPackageVod
{
namespace Model
{
/**
* A Microsoft Smooth Streaming (MSS) encryption configuration.<p><h3>See
* Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/mediapackage-vod-2018-11-07/MssEncryption">AWS
* API Reference</a></p>
*/
class AWS_MEDIAPACKAGEVOD_API MssEncryption
{
public:
MssEncryption();
MssEncryption(Aws::Utils::Json::JsonView jsonValue);
MssEncryption& operator=(Aws::Utils::Json::JsonView jsonValue);
Aws::Utils::Json::JsonValue Jsonize() const;
inline const SpekeKeyProvider& GetSpekeKeyProvider() const{ return m_spekeKeyProvider; }
inline bool SpekeKeyProviderHasBeenSet() const { return m_spekeKeyProviderHasBeenSet; }
inline void SetSpekeKeyProvider(const SpekeKeyProvider& value) { m_spekeKeyProviderHasBeenSet = true; m_spekeKeyProvider = value; }
inline void SetSpekeKeyProvider(SpekeKeyProvider&& value) { m_spekeKeyProviderHasBeenSet = true; m_spekeKeyProvider = std::move(value); }
inline MssEncryption& WithSpekeKeyProvider(const SpekeKeyProvider& value) { SetSpekeKeyProvider(value); return *this;}
inline MssEncryption& WithSpekeKeyProvider(SpekeKeyProvider&& value) { SetSpekeKeyProvider(std::move(value)); return *this;}
private:
SpekeKeyProvider m_spekeKeyProvider;
bool m_spekeKeyProviderHasBeenSet;
};
} // namespace Model
} // namespace MediaPackageVod
} // namespace Aws

View File

@@ -0,0 +1,112 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/mediapackage-vod/MediaPackageVod_EXPORTS.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <aws/mediapackage-vod/model/StreamSelection.h>
#include <utility>
namespace Aws
{
namespace Utils
{
namespace Json
{
class JsonValue;
class JsonView;
} // namespace Json
} // namespace Utils
namespace MediaPackageVod
{
namespace Model
{
/**
* A Microsoft Smooth Streaming (MSS) manifest configuration.<p><h3>See Also:</h3>
* <a
* href="http://docs.aws.amazon.com/goto/WebAPI/mediapackage-vod-2018-11-07/MssManifest">AWS
* API Reference</a></p>
*/
class AWS_MEDIAPACKAGEVOD_API MssManifest
{
public:
MssManifest();
MssManifest(Aws::Utils::Json::JsonView jsonValue);
MssManifest& operator=(Aws::Utils::Json::JsonView jsonValue);
Aws::Utils::Json::JsonValue Jsonize() const;
/**
* An optional string to include in the name of the manifest.
*/
inline const Aws::String& GetManifestName() const{ return m_manifestName; }
/**
* An optional string to include in the name of the manifest.
*/
inline bool ManifestNameHasBeenSet() const { return m_manifestNameHasBeenSet; }
/**
* An optional string to include in the name of the manifest.
*/
inline void SetManifestName(const Aws::String& value) { m_manifestNameHasBeenSet = true; m_manifestName = value; }
/**
* An optional string to include in the name of the manifest.
*/
inline void SetManifestName(Aws::String&& value) { m_manifestNameHasBeenSet = true; m_manifestName = std::move(value); }
/**
* An optional string to include in the name of the manifest.
*/
inline void SetManifestName(const char* value) { m_manifestNameHasBeenSet = true; m_manifestName.assign(value); }
/**
* An optional string to include in the name of the manifest.
*/
inline MssManifest& WithManifestName(const Aws::String& value) { SetManifestName(value); return *this;}
/**
* An optional string to include in the name of the manifest.
*/
inline MssManifest& WithManifestName(Aws::String&& value) { SetManifestName(std::move(value)); return *this;}
/**
* An optional string to include in the name of the manifest.
*/
inline MssManifest& WithManifestName(const char* value) { SetManifestName(value); return *this;}
inline const StreamSelection& GetStreamSelection() const{ return m_streamSelection; }
inline bool StreamSelectionHasBeenSet() const { return m_streamSelectionHasBeenSet; }
inline void SetStreamSelection(const StreamSelection& value) { m_streamSelectionHasBeenSet = true; m_streamSelection = value; }
inline void SetStreamSelection(StreamSelection&& value) { m_streamSelectionHasBeenSet = true; m_streamSelection = std::move(value); }
inline MssManifest& WithStreamSelection(const StreamSelection& value) { SetStreamSelection(value); return *this;}
inline MssManifest& WithStreamSelection(StreamSelection&& value) { SetStreamSelection(std::move(value)); return *this;}
private:
Aws::String m_manifestName;
bool m_manifestNameHasBeenSet;
StreamSelection m_streamSelection;
bool m_streamSelectionHasBeenSet;
};
} // namespace Model
} // namespace MediaPackageVod
} // namespace Aws

View File

@@ -0,0 +1,137 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/mediapackage-vod/MediaPackageVod_EXPORTS.h>
#include <aws/mediapackage-vod/model/MssEncryption.h>
#include <aws/core/utils/memory/stl/AWSVector.h>
#include <aws/mediapackage-vod/model/MssManifest.h>
#include <utility>
namespace Aws
{
namespace Utils
{
namespace Json
{
class JsonValue;
class JsonView;
} // namespace Json
} // namespace Utils
namespace MediaPackageVod
{
namespace Model
{
/**
* A Microsoft Smooth Streaming (MSS) PackagingConfiguration.<p><h3>See Also:</h3>
* <a
* href="http://docs.aws.amazon.com/goto/WebAPI/mediapackage-vod-2018-11-07/MssPackage">AWS
* API Reference</a></p>
*/
class AWS_MEDIAPACKAGEVOD_API MssPackage
{
public:
MssPackage();
MssPackage(Aws::Utils::Json::JsonView jsonValue);
MssPackage& operator=(Aws::Utils::Json::JsonView jsonValue);
Aws::Utils::Json::JsonValue Jsonize() const;
inline const MssEncryption& GetEncryption() const{ return m_encryption; }
inline bool EncryptionHasBeenSet() const { return m_encryptionHasBeenSet; }
inline void SetEncryption(const MssEncryption& value) { m_encryptionHasBeenSet = true; m_encryption = value; }
inline void SetEncryption(MssEncryption&& value) { m_encryptionHasBeenSet = true; m_encryption = std::move(value); }
inline MssPackage& WithEncryption(const MssEncryption& value) { SetEncryption(value); return *this;}
inline MssPackage& WithEncryption(MssEncryption&& value) { SetEncryption(std::move(value)); return *this;}
/**
* A list of MSS manifest configurations.
*/
inline const Aws::Vector<MssManifest>& GetMssManifests() const{ return m_mssManifests; }
/**
* A list of MSS manifest configurations.
*/
inline bool MssManifestsHasBeenSet() const { return m_mssManifestsHasBeenSet; }
/**
* A list of MSS manifest configurations.
*/
inline void SetMssManifests(const Aws::Vector<MssManifest>& value) { m_mssManifestsHasBeenSet = true; m_mssManifests = value; }
/**
* A list of MSS manifest configurations.
*/
inline void SetMssManifests(Aws::Vector<MssManifest>&& value) { m_mssManifestsHasBeenSet = true; m_mssManifests = std::move(value); }
/**
* A list of MSS manifest configurations.
*/
inline MssPackage& WithMssManifests(const Aws::Vector<MssManifest>& value) { SetMssManifests(value); return *this;}
/**
* A list of MSS manifest configurations.
*/
inline MssPackage& WithMssManifests(Aws::Vector<MssManifest>&& value) { SetMssManifests(std::move(value)); return *this;}
/**
* A list of MSS manifest configurations.
*/
inline MssPackage& AddMssManifests(const MssManifest& value) { m_mssManifestsHasBeenSet = true; m_mssManifests.push_back(value); return *this; }
/**
* A list of MSS manifest configurations.
*/
inline MssPackage& AddMssManifests(MssManifest&& value) { m_mssManifestsHasBeenSet = true; m_mssManifests.push_back(std::move(value)); return *this; }
/**
* The duration (in seconds) of each segment.
*/
inline int GetSegmentDurationSeconds() const{ return m_segmentDurationSeconds; }
/**
* The duration (in seconds) of each segment.
*/
inline bool SegmentDurationSecondsHasBeenSet() const { return m_segmentDurationSecondsHasBeenSet; }
/**
* The duration (in seconds) of each segment.
*/
inline void SetSegmentDurationSeconds(int value) { m_segmentDurationSecondsHasBeenSet = true; m_segmentDurationSeconds = value; }
/**
* The duration (in seconds) of each segment.
*/
inline MssPackage& WithSegmentDurationSeconds(int value) { SetSegmentDurationSeconds(value); return *this;}
private:
MssEncryption m_encryption;
bool m_encryptionHasBeenSet;
Aws::Vector<MssManifest> m_mssManifests;
bool m_mssManifestsHasBeenSet;
int m_segmentDurationSeconds;
bool m_segmentDurationSecondsHasBeenSet;
};
} // namespace Model
} // namespace MediaPackageVod
} // namespace Aws

View File

@@ -0,0 +1,312 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/mediapackage-vod/MediaPackageVod_EXPORTS.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <aws/mediapackage-vod/model/CmafPackage.h>
#include <aws/mediapackage-vod/model/DashPackage.h>
#include <aws/mediapackage-vod/model/HlsPackage.h>
#include <aws/mediapackage-vod/model/MssPackage.h>
#include <aws/core/utils/memory/stl/AWSMap.h>
#include <utility>
namespace Aws
{
namespace Utils
{
namespace Json
{
class JsonValue;
class JsonView;
} // namespace Json
} // namespace Utils
namespace MediaPackageVod
{
namespace Model
{
/**
* A MediaPackage VOD PackagingConfiguration resource.<p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/mediapackage-vod-2018-11-07/PackagingConfiguration">AWS
* API Reference</a></p>
*/
class AWS_MEDIAPACKAGEVOD_API PackagingConfiguration
{
public:
PackagingConfiguration();
PackagingConfiguration(Aws::Utils::Json::JsonView jsonValue);
PackagingConfiguration& operator=(Aws::Utils::Json::JsonView jsonValue);
Aws::Utils::Json::JsonValue Jsonize() const;
/**
* The ARN of the PackagingConfiguration.
*/
inline const Aws::String& GetArn() const{ return m_arn; }
/**
* The ARN of the PackagingConfiguration.
*/
inline bool ArnHasBeenSet() const { return m_arnHasBeenSet; }
/**
* The ARN of the PackagingConfiguration.
*/
inline void SetArn(const Aws::String& value) { m_arnHasBeenSet = true; m_arn = value; }
/**
* The ARN of the PackagingConfiguration.
*/
inline void SetArn(Aws::String&& value) { m_arnHasBeenSet = true; m_arn = std::move(value); }
/**
* The ARN of the PackagingConfiguration.
*/
inline void SetArn(const char* value) { m_arnHasBeenSet = true; m_arn.assign(value); }
/**
* The ARN of the PackagingConfiguration.
*/
inline PackagingConfiguration& WithArn(const Aws::String& value) { SetArn(value); return *this;}
/**
* The ARN of the PackagingConfiguration.
*/
inline PackagingConfiguration& WithArn(Aws::String&& value) { SetArn(std::move(value)); return *this;}
/**
* The ARN of the PackagingConfiguration.
*/
inline PackagingConfiguration& WithArn(const char* value) { SetArn(value); return *this;}
inline const CmafPackage& GetCmafPackage() const{ return m_cmafPackage; }
inline bool CmafPackageHasBeenSet() const { return m_cmafPackageHasBeenSet; }
inline void SetCmafPackage(const CmafPackage& value) { m_cmafPackageHasBeenSet = true; m_cmafPackage = value; }
inline void SetCmafPackage(CmafPackage&& value) { m_cmafPackageHasBeenSet = true; m_cmafPackage = std::move(value); }
inline PackagingConfiguration& WithCmafPackage(const CmafPackage& value) { SetCmafPackage(value); return *this;}
inline PackagingConfiguration& WithCmafPackage(CmafPackage&& value) { SetCmafPackage(std::move(value)); return *this;}
inline const DashPackage& GetDashPackage() const{ return m_dashPackage; }
inline bool DashPackageHasBeenSet() const { return m_dashPackageHasBeenSet; }
inline void SetDashPackage(const DashPackage& value) { m_dashPackageHasBeenSet = true; m_dashPackage = value; }
inline void SetDashPackage(DashPackage&& value) { m_dashPackageHasBeenSet = true; m_dashPackage = std::move(value); }
inline PackagingConfiguration& WithDashPackage(const DashPackage& value) { SetDashPackage(value); return *this;}
inline PackagingConfiguration& WithDashPackage(DashPackage&& value) { SetDashPackage(std::move(value)); return *this;}
inline const HlsPackage& GetHlsPackage() const{ return m_hlsPackage; }
inline bool HlsPackageHasBeenSet() const { return m_hlsPackageHasBeenSet; }
inline void SetHlsPackage(const HlsPackage& value) { m_hlsPackageHasBeenSet = true; m_hlsPackage = value; }
inline void SetHlsPackage(HlsPackage&& value) { m_hlsPackageHasBeenSet = true; m_hlsPackage = std::move(value); }
inline PackagingConfiguration& WithHlsPackage(const HlsPackage& value) { SetHlsPackage(value); return *this;}
inline PackagingConfiguration& WithHlsPackage(HlsPackage&& value) { SetHlsPackage(std::move(value)); return *this;}
/**
* The ID of the PackagingConfiguration.
*/
inline const Aws::String& GetId() const{ return m_id; }
/**
* The ID of the PackagingConfiguration.
*/
inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
/**
* The ID of the PackagingConfiguration.
*/
inline void SetId(const Aws::String& value) { m_idHasBeenSet = true; m_id = value; }
/**
* The ID of the PackagingConfiguration.
*/
inline void SetId(Aws::String&& value) { m_idHasBeenSet = true; m_id = std::move(value); }
/**
* The ID of the PackagingConfiguration.
*/
inline void SetId(const char* value) { m_idHasBeenSet = true; m_id.assign(value); }
/**
* The ID of the PackagingConfiguration.
*/
inline PackagingConfiguration& WithId(const Aws::String& value) { SetId(value); return *this;}
/**
* The ID of the PackagingConfiguration.
*/
inline PackagingConfiguration& WithId(Aws::String&& value) { SetId(std::move(value)); return *this;}
/**
* The ID of the PackagingConfiguration.
*/
inline PackagingConfiguration& WithId(const char* value) { SetId(value); return *this;}
inline const MssPackage& GetMssPackage() const{ return m_mssPackage; }
inline bool MssPackageHasBeenSet() const { return m_mssPackageHasBeenSet; }
inline void SetMssPackage(const MssPackage& value) { m_mssPackageHasBeenSet = true; m_mssPackage = value; }
inline void SetMssPackage(MssPackage&& value) { m_mssPackageHasBeenSet = true; m_mssPackage = std::move(value); }
inline PackagingConfiguration& WithMssPackage(const MssPackage& value) { SetMssPackage(value); return *this;}
inline PackagingConfiguration& WithMssPackage(MssPackage&& value) { SetMssPackage(std::move(value)); return *this;}
/**
* The ID of a PackagingGroup.
*/
inline const Aws::String& GetPackagingGroupId() const{ return m_packagingGroupId; }
/**
* The ID of a PackagingGroup.
*/
inline bool PackagingGroupIdHasBeenSet() const { return m_packagingGroupIdHasBeenSet; }
/**
* The ID of a PackagingGroup.
*/
inline void SetPackagingGroupId(const Aws::String& value) { m_packagingGroupIdHasBeenSet = true; m_packagingGroupId = value; }
/**
* The ID of a PackagingGroup.
*/
inline void SetPackagingGroupId(Aws::String&& value) { m_packagingGroupIdHasBeenSet = true; m_packagingGroupId = std::move(value); }
/**
* The ID of a PackagingGroup.
*/
inline void SetPackagingGroupId(const char* value) { m_packagingGroupIdHasBeenSet = true; m_packagingGroupId.assign(value); }
/**
* The ID of a PackagingGroup.
*/
inline PackagingConfiguration& WithPackagingGroupId(const Aws::String& value) { SetPackagingGroupId(value); return *this;}
/**
* The ID of a PackagingGroup.
*/
inline PackagingConfiguration& WithPackagingGroupId(Aws::String&& value) { SetPackagingGroupId(std::move(value)); return *this;}
/**
* The ID of a PackagingGroup.
*/
inline PackagingConfiguration& WithPackagingGroupId(const char* value) { SetPackagingGroupId(value); return *this;}
inline const Aws::Map<Aws::String, Aws::String>& GetTags() const{ return m_tags; }
inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
inline void SetTags(const Aws::Map<Aws::String, Aws::String>& value) { m_tagsHasBeenSet = true; m_tags = value; }
inline void SetTags(Aws::Map<Aws::String, Aws::String>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
inline PackagingConfiguration& WithTags(const Aws::Map<Aws::String, Aws::String>& value) { SetTags(value); return *this;}
inline PackagingConfiguration& WithTags(Aws::Map<Aws::String, Aws::String>&& value) { SetTags(std::move(value)); return *this;}
inline PackagingConfiguration& AddTags(const Aws::String& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; }
inline PackagingConfiguration& AddTags(Aws::String&& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; }
inline PackagingConfiguration& AddTags(const Aws::String& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; }
inline PackagingConfiguration& AddTags(Aws::String&& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), std::move(value)); return *this; }
inline PackagingConfiguration& AddTags(const char* key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; }
inline PackagingConfiguration& AddTags(Aws::String&& key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; }
inline PackagingConfiguration& AddTags(const char* key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; }
private:
Aws::String m_arn;
bool m_arnHasBeenSet;
CmafPackage m_cmafPackage;
bool m_cmafPackageHasBeenSet;
DashPackage m_dashPackage;
bool m_dashPackageHasBeenSet;
HlsPackage m_hlsPackage;
bool m_hlsPackageHasBeenSet;
Aws::String m_id;
bool m_idHasBeenSet;
MssPackage m_mssPackage;
bool m_mssPackageHasBeenSet;
Aws::String m_packagingGroupId;
bool m_packagingGroupIdHasBeenSet;
Aws::Map<Aws::String, Aws::String> m_tags;
bool m_tagsHasBeenSet;
};
} // namespace Model
} // namespace MediaPackageVod
} // namespace Aws

View File

@@ -0,0 +1,243 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/mediapackage-vod/MediaPackageVod_EXPORTS.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <aws/mediapackage-vod/model/Authorization.h>
#include <aws/core/utils/memory/stl/AWSMap.h>
#include <utility>
namespace Aws
{
namespace Utils
{
namespace Json
{
class JsonValue;
class JsonView;
} // namespace Json
} // namespace Utils
namespace MediaPackageVod
{
namespace Model
{
/**
* A MediaPackage VOD PackagingGroup resource.<p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/mediapackage-vod-2018-11-07/PackagingGroup">AWS
* API Reference</a></p>
*/
class AWS_MEDIAPACKAGEVOD_API PackagingGroup
{
public:
PackagingGroup();
PackagingGroup(Aws::Utils::Json::JsonView jsonValue);
PackagingGroup& operator=(Aws::Utils::Json::JsonView jsonValue);
Aws::Utils::Json::JsonValue Jsonize() const;
/**
* The ARN of the PackagingGroup.
*/
inline const Aws::String& GetArn() const{ return m_arn; }
/**
* The ARN of the PackagingGroup.
*/
inline bool ArnHasBeenSet() const { return m_arnHasBeenSet; }
/**
* The ARN of the PackagingGroup.
*/
inline void SetArn(const Aws::String& value) { m_arnHasBeenSet = true; m_arn = value; }
/**
* The ARN of the PackagingGroup.
*/
inline void SetArn(Aws::String&& value) { m_arnHasBeenSet = true; m_arn = std::move(value); }
/**
* The ARN of the PackagingGroup.
*/
inline void SetArn(const char* value) { m_arnHasBeenSet = true; m_arn.assign(value); }
/**
* The ARN of the PackagingGroup.
*/
inline PackagingGroup& WithArn(const Aws::String& value) { SetArn(value); return *this;}
/**
* The ARN of the PackagingGroup.
*/
inline PackagingGroup& WithArn(Aws::String&& value) { SetArn(std::move(value)); return *this;}
/**
* The ARN of the PackagingGroup.
*/
inline PackagingGroup& WithArn(const char* value) { SetArn(value); return *this;}
inline const Authorization& GetAuthorization() const{ return m_authorization; }
inline bool AuthorizationHasBeenSet() const { return m_authorizationHasBeenSet; }
inline void SetAuthorization(const Authorization& value) { m_authorizationHasBeenSet = true; m_authorization = value; }
inline void SetAuthorization(Authorization&& value) { m_authorizationHasBeenSet = true; m_authorization = std::move(value); }
inline PackagingGroup& WithAuthorization(const Authorization& value) { SetAuthorization(value); return *this;}
inline PackagingGroup& WithAuthorization(Authorization&& value) { SetAuthorization(std::move(value)); return *this;}
/**
* The fully qualified domain name for Assets in the PackagingGroup.
*/
inline const Aws::String& GetDomainName() const{ return m_domainName; }
/**
* The fully qualified domain name for Assets in the PackagingGroup.
*/
inline bool DomainNameHasBeenSet() const { return m_domainNameHasBeenSet; }
/**
* The fully qualified domain name for Assets in the PackagingGroup.
*/
inline void SetDomainName(const Aws::String& value) { m_domainNameHasBeenSet = true; m_domainName = value; }
/**
* The fully qualified domain name for Assets in the PackagingGroup.
*/
inline void SetDomainName(Aws::String&& value) { m_domainNameHasBeenSet = true; m_domainName = std::move(value); }
/**
* The fully qualified domain name for Assets in the PackagingGroup.
*/
inline void SetDomainName(const char* value) { m_domainNameHasBeenSet = true; m_domainName.assign(value); }
/**
* The fully qualified domain name for Assets in the PackagingGroup.
*/
inline PackagingGroup& WithDomainName(const Aws::String& value) { SetDomainName(value); return *this;}
/**
* The fully qualified domain name for Assets in the PackagingGroup.
*/
inline PackagingGroup& WithDomainName(Aws::String&& value) { SetDomainName(std::move(value)); return *this;}
/**
* The fully qualified domain name for Assets in the PackagingGroup.
*/
inline PackagingGroup& WithDomainName(const char* value) { SetDomainName(value); return *this;}
/**
* The ID of the PackagingGroup.
*/
inline const Aws::String& GetId() const{ return m_id; }
/**
* The ID of the PackagingGroup.
*/
inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
/**
* The ID of the PackagingGroup.
*/
inline void SetId(const Aws::String& value) { m_idHasBeenSet = true; m_id = value; }
/**
* The ID of the PackagingGroup.
*/
inline void SetId(Aws::String&& value) { m_idHasBeenSet = true; m_id = std::move(value); }
/**
* The ID of the PackagingGroup.
*/
inline void SetId(const char* value) { m_idHasBeenSet = true; m_id.assign(value); }
/**
* The ID of the PackagingGroup.
*/
inline PackagingGroup& WithId(const Aws::String& value) { SetId(value); return *this;}
/**
* The ID of the PackagingGroup.
*/
inline PackagingGroup& WithId(Aws::String&& value) { SetId(std::move(value)); return *this;}
/**
* The ID of the PackagingGroup.
*/
inline PackagingGroup& WithId(const char* value) { SetId(value); return *this;}
inline const Aws::Map<Aws::String, Aws::String>& GetTags() const{ return m_tags; }
inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
inline void SetTags(const Aws::Map<Aws::String, Aws::String>& value) { m_tagsHasBeenSet = true; m_tags = value; }
inline void SetTags(Aws::Map<Aws::String, Aws::String>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
inline PackagingGroup& WithTags(const Aws::Map<Aws::String, Aws::String>& value) { SetTags(value); return *this;}
inline PackagingGroup& WithTags(Aws::Map<Aws::String, Aws::String>&& value) { SetTags(std::move(value)); return *this;}
inline PackagingGroup& AddTags(const Aws::String& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; }
inline PackagingGroup& AddTags(Aws::String&& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; }
inline PackagingGroup& AddTags(const Aws::String& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; }
inline PackagingGroup& AddTags(Aws::String&& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), std::move(value)); return *this; }
inline PackagingGroup& AddTags(const char* key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; }
inline PackagingGroup& AddTags(Aws::String&& key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; }
inline PackagingGroup& AddTags(const char* key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; }
private:
Aws::String m_arn;
bool m_arnHasBeenSet;
Authorization m_authorization;
bool m_authorizationHasBeenSet;
Aws::String m_domainName;
bool m_domainNameHasBeenSet;
Aws::String m_id;
bool m_idHasBeenSet;
Aws::Map<Aws::String, Aws::String> m_tags;
bool m_tagsHasBeenSet;
};
} // namespace Model
} // namespace MediaPackageVod
} // namespace Aws

View File

@@ -0,0 +1,31 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/mediapackage-vod/MediaPackageVod_EXPORTS.h>
#include <aws/core/utils/memory/stl/AWSString.h>
namespace Aws
{
namespace MediaPackageVod
{
namespace Model
{
enum class Profile
{
NOT_SET,
NONE,
HBBTV_1_5
};
namespace ProfileMapper
{
AWS_MEDIAPACKAGEVOD_API Profile GetProfileForName(const Aws::String& name);
AWS_MEDIAPACKAGEVOD_API Aws::String GetNameForProfile(Profile value);
} // namespace ProfileMapper
} // namespace Model
} // namespace MediaPackageVod
} // namespace Aws

View File

@@ -0,0 +1,32 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/mediapackage-vod/MediaPackageVod_EXPORTS.h>
#include <aws/core/utils/memory/stl/AWSString.h>
namespace Aws
{
namespace MediaPackageVod
{
namespace Model
{
enum class SegmentTemplateFormat
{
NOT_SET,
NUMBER_WITH_TIMELINE,
TIME_WITH_TIMELINE,
NUMBER_WITH_DURATION
};
namespace SegmentTemplateFormatMapper
{
AWS_MEDIAPACKAGEVOD_API SegmentTemplateFormat GetSegmentTemplateFormatForName(const Aws::String& name);
AWS_MEDIAPACKAGEVOD_API Aws::String GetNameForSegmentTemplateFormat(SegmentTemplateFormat value);
} // namespace SegmentTemplateFormatMapper
} // namespace Model
} // namespace MediaPackageVod
} // namespace Aws

View File

@@ -0,0 +1,208 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/mediapackage-vod/MediaPackageVod_EXPORTS.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <aws/core/utils/memory/stl/AWSVector.h>
#include <utility>
namespace Aws
{
namespace Utils
{
namespace Json
{
class JsonValue;
class JsonView;
} // namespace Json
} // namespace Utils
namespace MediaPackageVod
{
namespace Model
{
/**
* A configuration for accessing an external Secure Packager and Encoder Key
* Exchange (SPEKE) service that will provide encryption keys.<p><h3>See Also:</h3>
* <a
* href="http://docs.aws.amazon.com/goto/WebAPI/mediapackage-vod-2018-11-07/SpekeKeyProvider">AWS
* API Reference</a></p>
*/
class AWS_MEDIAPACKAGEVOD_API SpekeKeyProvider
{
public:
SpekeKeyProvider();
SpekeKeyProvider(Aws::Utils::Json::JsonView jsonValue);
SpekeKeyProvider& operator=(Aws::Utils::Json::JsonView jsonValue);
Aws::Utils::Json::JsonValue Jsonize() const;
/**
* An Amazon Resource Name (ARN) of an IAM role that AWS Elemental
MediaPackage
* will assume when accessing the key provider service.
*/
inline const Aws::String& GetRoleArn() const{ return m_roleArn; }
/**
* An Amazon Resource Name (ARN) of an IAM role that AWS Elemental
MediaPackage
* will assume when accessing the key provider service.
*/
inline bool RoleArnHasBeenSet() const { return m_roleArnHasBeenSet; }
/**
* An Amazon Resource Name (ARN) of an IAM role that AWS Elemental
MediaPackage
* will assume when accessing the key provider service.
*/
inline void SetRoleArn(const Aws::String& value) { m_roleArnHasBeenSet = true; m_roleArn = value; }
/**
* An Amazon Resource Name (ARN) of an IAM role that AWS Elemental
MediaPackage
* will assume when accessing the key provider service.
*/
inline void SetRoleArn(Aws::String&& value) { m_roleArnHasBeenSet = true; m_roleArn = std::move(value); }
/**
* An Amazon Resource Name (ARN) of an IAM role that AWS Elemental
MediaPackage
* will assume when accessing the key provider service.
*/
inline void SetRoleArn(const char* value) { m_roleArnHasBeenSet = true; m_roleArn.assign(value); }
/**
* An Amazon Resource Name (ARN) of an IAM role that AWS Elemental
MediaPackage
* will assume when accessing the key provider service.
*/
inline SpekeKeyProvider& WithRoleArn(const Aws::String& value) { SetRoleArn(value); return *this;}
/**
* An Amazon Resource Name (ARN) of an IAM role that AWS Elemental
MediaPackage
* will assume when accessing the key provider service.
*/
inline SpekeKeyProvider& WithRoleArn(Aws::String&& value) { SetRoleArn(std::move(value)); return *this;}
/**
* An Amazon Resource Name (ARN) of an IAM role that AWS Elemental
MediaPackage
* will assume when accessing the key provider service.
*/
inline SpekeKeyProvider& WithRoleArn(const char* value) { SetRoleArn(value); return *this;}
/**
* The system IDs to include in key requests.
*/
inline const Aws::Vector<Aws::String>& GetSystemIds() const{ return m_systemIds; }
/**
* The system IDs to include in key requests.
*/
inline bool SystemIdsHasBeenSet() const { return m_systemIdsHasBeenSet; }
/**
* The system IDs to include in key requests.
*/
inline void SetSystemIds(const Aws::Vector<Aws::String>& value) { m_systemIdsHasBeenSet = true; m_systemIds = value; }
/**
* The system IDs to include in key requests.
*/
inline void SetSystemIds(Aws::Vector<Aws::String>&& value) { m_systemIdsHasBeenSet = true; m_systemIds = std::move(value); }
/**
* The system IDs to include in key requests.
*/
inline SpekeKeyProvider& WithSystemIds(const Aws::Vector<Aws::String>& value) { SetSystemIds(value); return *this;}
/**
* The system IDs to include in key requests.
*/
inline SpekeKeyProvider& WithSystemIds(Aws::Vector<Aws::String>&& value) { SetSystemIds(std::move(value)); return *this;}
/**
* The system IDs to include in key requests.
*/
inline SpekeKeyProvider& AddSystemIds(const Aws::String& value) { m_systemIdsHasBeenSet = true; m_systemIds.push_back(value); return *this; }
/**
* The system IDs to include in key requests.
*/
inline SpekeKeyProvider& AddSystemIds(Aws::String&& value) { m_systemIdsHasBeenSet = true; m_systemIds.push_back(std::move(value)); return *this; }
/**
* The system IDs to include in key requests.
*/
inline SpekeKeyProvider& AddSystemIds(const char* value) { m_systemIdsHasBeenSet = true; m_systemIds.push_back(value); return *this; }
/**
* The URL of the external key provider service.
*/
inline const Aws::String& GetUrl() const{ return m_url; }
/**
* The URL of the external key provider service.
*/
inline bool UrlHasBeenSet() const { return m_urlHasBeenSet; }
/**
* The URL of the external key provider service.
*/
inline void SetUrl(const Aws::String& value) { m_urlHasBeenSet = true; m_url = value; }
/**
* The URL of the external key provider service.
*/
inline void SetUrl(Aws::String&& value) { m_urlHasBeenSet = true; m_url = std::move(value); }
/**
* The URL of the external key provider service.
*/
inline void SetUrl(const char* value) { m_urlHasBeenSet = true; m_url.assign(value); }
/**
* The URL of the external key provider service.
*/
inline SpekeKeyProvider& WithUrl(const Aws::String& value) { SetUrl(value); return *this;}
/**
* The URL of the external key provider service.
*/
inline SpekeKeyProvider& WithUrl(Aws::String&& value) { SetUrl(std::move(value)); return *this;}
/**
* The URL of the external key provider service.
*/
inline SpekeKeyProvider& WithUrl(const char* value) { SetUrl(value); return *this;}
private:
Aws::String m_roleArn;
bool m_roleArnHasBeenSet;
Aws::Vector<Aws::String> m_systemIds;
bool m_systemIdsHasBeenSet;
Aws::String m_url;
bool m_urlHasBeenSet;
};
} // namespace Model
} // namespace MediaPackageVod
} // namespace Aws

View File

@@ -0,0 +1,32 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/mediapackage-vod/MediaPackageVod_EXPORTS.h>
#include <aws/core/utils/memory/stl/AWSString.h>
namespace Aws
{
namespace MediaPackageVod
{
namespace Model
{
enum class StreamOrder
{
NOT_SET,
ORIGINAL,
VIDEO_BITRATE_ASCENDING,
VIDEO_BITRATE_DESCENDING
};
namespace StreamOrderMapper
{
AWS_MEDIAPACKAGEVOD_API StreamOrder GetStreamOrderForName(const Aws::String& name);
AWS_MEDIAPACKAGEVOD_API Aws::String GetNameForStreamOrder(StreamOrder value);
} // namespace StreamOrderMapper
} // namespace Model
} // namespace MediaPackageVod
} // namespace Aws

View File

@@ -0,0 +1,126 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/mediapackage-vod/MediaPackageVod_EXPORTS.h>
#include <aws/mediapackage-vod/model/StreamOrder.h>
#include <utility>
namespace Aws
{
namespace Utils
{
namespace Json
{
class JsonValue;
class JsonView;
} // namespace Json
} // namespace Utils
namespace MediaPackageVod
{
namespace Model
{
/**
* A StreamSelection configuration.<p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/mediapackage-vod-2018-11-07/StreamSelection">AWS
* API Reference</a></p>
*/
class AWS_MEDIAPACKAGEVOD_API StreamSelection
{
public:
StreamSelection();
StreamSelection(Aws::Utils::Json::JsonView jsonValue);
StreamSelection& operator=(Aws::Utils::Json::JsonView jsonValue);
Aws::Utils::Json::JsonValue Jsonize() const;
/**
* The maximum video bitrate (bps) to include in output.
*/
inline int GetMaxVideoBitsPerSecond() const{ return m_maxVideoBitsPerSecond; }
/**
* The maximum video bitrate (bps) to include in output.
*/
inline bool MaxVideoBitsPerSecondHasBeenSet() const { return m_maxVideoBitsPerSecondHasBeenSet; }
/**
* The maximum video bitrate (bps) to include in output.
*/
inline void SetMaxVideoBitsPerSecond(int value) { m_maxVideoBitsPerSecondHasBeenSet = true; m_maxVideoBitsPerSecond = value; }
/**
* The maximum video bitrate (bps) to include in output.
*/
inline StreamSelection& WithMaxVideoBitsPerSecond(int value) { SetMaxVideoBitsPerSecond(value); return *this;}
/**
* The minimum video bitrate (bps) to include in output.
*/
inline int GetMinVideoBitsPerSecond() const{ return m_minVideoBitsPerSecond; }
/**
* The minimum video bitrate (bps) to include in output.
*/
inline bool MinVideoBitsPerSecondHasBeenSet() const { return m_minVideoBitsPerSecondHasBeenSet; }
/**
* The minimum video bitrate (bps) to include in output.
*/
inline void SetMinVideoBitsPerSecond(int value) { m_minVideoBitsPerSecondHasBeenSet = true; m_minVideoBitsPerSecond = value; }
/**
* The minimum video bitrate (bps) to include in output.
*/
inline StreamSelection& WithMinVideoBitsPerSecond(int value) { SetMinVideoBitsPerSecond(value); return *this;}
/**
* A directive that determines the order of streams in the output.
*/
inline const StreamOrder& GetStreamOrder() const{ return m_streamOrder; }
/**
* A directive that determines the order of streams in the output.
*/
inline bool StreamOrderHasBeenSet() const { return m_streamOrderHasBeenSet; }
/**
* A directive that determines the order of streams in the output.
*/
inline void SetStreamOrder(const StreamOrder& value) { m_streamOrderHasBeenSet = true; m_streamOrder = value; }
/**
* A directive that determines the order of streams in the output.
*/
inline void SetStreamOrder(StreamOrder&& value) { m_streamOrderHasBeenSet = true; m_streamOrder = std::move(value); }
/**
* A directive that determines the order of streams in the output.
*/
inline StreamSelection& WithStreamOrder(const StreamOrder& value) { SetStreamOrder(value); return *this;}
/**
* A directive that determines the order of streams in the output.
*/
inline StreamSelection& WithStreamOrder(StreamOrder&& value) { SetStreamOrder(std::move(value)); return *this;}
private:
int m_maxVideoBitsPerSecond;
bool m_maxVideoBitsPerSecondHasBeenSet;
int m_minVideoBitsPerSecond;
bool m_minVideoBitsPerSecondHasBeenSet;
StreamOrder m_streamOrder;
bool m_streamOrderHasBeenSet;
};
} // namespace Model
} // namespace MediaPackageVod
} // namespace Aws

View File

@@ -0,0 +1,161 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/mediapackage-vod/MediaPackageVod_EXPORTS.h>
#include <aws/mediapackage-vod/MediaPackageVodRequest.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <aws/core/utils/memory/stl/AWSMap.h>
#include <utility>
namespace Aws
{
namespace MediaPackageVod
{
namespace Model
{
/**
*/
class AWS_MEDIAPACKAGEVOD_API TagResourceRequest : public MediaPackageVodRequest
{
public:
TagResourceRequest();
// Service request name is the Operation name which will send this request out,
// each operation should has unique request name, so that we can get operation's name from this request.
// Note: this is not true for response, multiple operations may have the same response name,
// so we can not get operation's name from response.
inline virtual const char* GetServiceRequestName() const override { return "TagResource"; }
Aws::String SerializePayload() const override;
/**
* The Amazon Resource Name (ARN) for the resource. You can get this from the
* response to any request to the resource.
*/
inline const Aws::String& GetResourceArn() const{ return m_resourceArn; }
/**
* The Amazon Resource Name (ARN) for the resource. You can get this from the
* response to any request to the resource.
*/
inline bool ResourceArnHasBeenSet() const { return m_resourceArnHasBeenSet; }
/**
* The Amazon Resource Name (ARN) for the resource. You can get this from the
* response to any request to the resource.
*/
inline void SetResourceArn(const Aws::String& value) { m_resourceArnHasBeenSet = true; m_resourceArn = value; }
/**
* The Amazon Resource Name (ARN) for the resource. You can get this from the
* response to any request to the resource.
*/
inline void SetResourceArn(Aws::String&& value) { m_resourceArnHasBeenSet = true; m_resourceArn = std::move(value); }
/**
* The Amazon Resource Name (ARN) for the resource. You can get this from the
* response to any request to the resource.
*/
inline void SetResourceArn(const char* value) { m_resourceArnHasBeenSet = true; m_resourceArn.assign(value); }
/**
* The Amazon Resource Name (ARN) for the resource. You can get this from the
* response to any request to the resource.
*/
inline TagResourceRequest& WithResourceArn(const Aws::String& value) { SetResourceArn(value); return *this;}
/**
* The Amazon Resource Name (ARN) for the resource. You can get this from the
* response to any request to the resource.
*/
inline TagResourceRequest& WithResourceArn(Aws::String&& value) { SetResourceArn(std::move(value)); return *this;}
/**
* The Amazon Resource Name (ARN) for the resource. You can get this from the
* response to any request to the resource.
*/
inline TagResourceRequest& WithResourceArn(const char* value) { SetResourceArn(value); return *this;}
/**
* A collection of tags associated with a resource
*/
inline const Aws::Map<Aws::String, Aws::String>& GetTags() const{ return m_tags; }
/**
* A collection of tags associated with a resource
*/
inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
/**
* A collection of tags associated with a resource
*/
inline void SetTags(const Aws::Map<Aws::String, Aws::String>& value) { m_tagsHasBeenSet = true; m_tags = value; }
/**
* A collection of tags associated with a resource
*/
inline void SetTags(Aws::Map<Aws::String, Aws::String>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
/**
* A collection of tags associated with a resource
*/
inline TagResourceRequest& WithTags(const Aws::Map<Aws::String, Aws::String>& value) { SetTags(value); return *this;}
/**
* A collection of tags associated with a resource
*/
inline TagResourceRequest& WithTags(Aws::Map<Aws::String, Aws::String>&& value) { SetTags(std::move(value)); return *this;}
/**
* A collection of tags associated with a resource
*/
inline TagResourceRequest& AddTags(const Aws::String& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; }
/**
* A collection of tags associated with a resource
*/
inline TagResourceRequest& AddTags(Aws::String&& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; }
/**
* A collection of tags associated with a resource
*/
inline TagResourceRequest& AddTags(const Aws::String& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; }
/**
* A collection of tags associated with a resource
*/
inline TagResourceRequest& AddTags(Aws::String&& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), std::move(value)); return *this; }
/**
* A collection of tags associated with a resource
*/
inline TagResourceRequest& AddTags(const char* key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; }
/**
* A collection of tags associated with a resource
*/
inline TagResourceRequest& AddTags(Aws::String&& key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; }
/**
* A collection of tags associated with a resource
*/
inline TagResourceRequest& AddTags(const char* key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; }
private:
Aws::String m_resourceArn;
bool m_resourceArnHasBeenSet;
Aws::Map<Aws::String, Aws::String> m_tags;
bool m_tagsHasBeenSet;
};
} // namespace Model
} // namespace MediaPackageVod
} // namespace Aws

View File

@@ -0,0 +1,147 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/mediapackage-vod/MediaPackageVod_EXPORTS.h>
#include <aws/mediapackage-vod/MediaPackageVodRequest.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <aws/core/utils/memory/stl/AWSVector.h>
#include <utility>
namespace Aws
{
namespace Http
{
class URI;
} //namespace Http
namespace MediaPackageVod
{
namespace Model
{
/**
*/
class AWS_MEDIAPACKAGEVOD_API UntagResourceRequest : public MediaPackageVodRequest
{
public:
UntagResourceRequest();
// Service request name is the Operation name which will send this request out,
// each operation should has unique request name, so that we can get operation's name from this request.
// Note: this is not true for response, multiple operations may have the same response name,
// so we can not get operation's name from response.
inline virtual const char* GetServiceRequestName() const override { return "UntagResource"; }
Aws::String SerializePayload() const override;
void AddQueryStringParameters(Aws::Http::URI& uri) const override;
/**
* The Amazon Resource Name (ARN) for the resource. You can get this from the
* response to any request to the resource.
*/
inline const Aws::String& GetResourceArn() const{ return m_resourceArn; }
/**
* The Amazon Resource Name (ARN) for the resource. You can get this from the
* response to any request to the resource.
*/
inline bool ResourceArnHasBeenSet() const { return m_resourceArnHasBeenSet; }
/**
* The Amazon Resource Name (ARN) for the resource. You can get this from the
* response to any request to the resource.
*/
inline void SetResourceArn(const Aws::String& value) { m_resourceArnHasBeenSet = true; m_resourceArn = value; }
/**
* The Amazon Resource Name (ARN) for the resource. You can get this from the
* response to any request to the resource.
*/
inline void SetResourceArn(Aws::String&& value) { m_resourceArnHasBeenSet = true; m_resourceArn = std::move(value); }
/**
* The Amazon Resource Name (ARN) for the resource. You can get this from the
* response to any request to the resource.
*/
inline void SetResourceArn(const char* value) { m_resourceArnHasBeenSet = true; m_resourceArn.assign(value); }
/**
* The Amazon Resource Name (ARN) for the resource. You can get this from the
* response to any request to the resource.
*/
inline UntagResourceRequest& WithResourceArn(const Aws::String& value) { SetResourceArn(value); return *this;}
/**
* The Amazon Resource Name (ARN) for the resource. You can get this from the
* response to any request to the resource.
*/
inline UntagResourceRequest& WithResourceArn(Aws::String&& value) { SetResourceArn(std::move(value)); return *this;}
/**
* The Amazon Resource Name (ARN) for the resource. You can get this from the
* response to any request to the resource.
*/
inline UntagResourceRequest& WithResourceArn(const char* value) { SetResourceArn(value); return *this;}
/**
* A comma-separated list of the tag keys to remove from the resource.
*/
inline const Aws::Vector<Aws::String>& GetTagKeys() const{ return m_tagKeys; }
/**
* A comma-separated list of the tag keys to remove from the resource.
*/
inline bool TagKeysHasBeenSet() const { return m_tagKeysHasBeenSet; }
/**
* A comma-separated list of the tag keys to remove from the resource.
*/
inline void SetTagKeys(const Aws::Vector<Aws::String>& value) { m_tagKeysHasBeenSet = true; m_tagKeys = value; }
/**
* A comma-separated list of the tag keys to remove from the resource.
*/
inline void SetTagKeys(Aws::Vector<Aws::String>&& value) { m_tagKeysHasBeenSet = true; m_tagKeys = std::move(value); }
/**
* A comma-separated list of the tag keys to remove from the resource.
*/
inline UntagResourceRequest& WithTagKeys(const Aws::Vector<Aws::String>& value) { SetTagKeys(value); return *this;}
/**
* A comma-separated list of the tag keys to remove from the resource.
*/
inline UntagResourceRequest& WithTagKeys(Aws::Vector<Aws::String>&& value) { SetTagKeys(std::move(value)); return *this;}
/**
* A comma-separated list of the tag keys to remove from the resource.
*/
inline UntagResourceRequest& AddTagKeys(const Aws::String& value) { m_tagKeysHasBeenSet = true; m_tagKeys.push_back(value); return *this; }
/**
* A comma-separated list of the tag keys to remove from the resource.
*/
inline UntagResourceRequest& AddTagKeys(Aws::String&& value) { m_tagKeysHasBeenSet = true; m_tagKeys.push_back(std::move(value)); return *this; }
/**
* A comma-separated list of the tag keys to remove from the resource.
*/
inline UntagResourceRequest& AddTagKeys(const char* value) { m_tagKeysHasBeenSet = true; m_tagKeys.push_back(value); return *this; }
private:
Aws::String m_resourceArn;
bool m_resourceArnHasBeenSet;
Aws::Vector<Aws::String> m_tagKeys;
bool m_tagKeysHasBeenSet;
};
} // namespace Model
} // namespace MediaPackageVod
} // namespace Aws

View File

@@ -0,0 +1,110 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/mediapackage-vod/MediaPackageVod_EXPORTS.h>
#include <aws/mediapackage-vod/MediaPackageVodRequest.h>
#include <aws/mediapackage-vod/model/Authorization.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <utility>
namespace Aws
{
namespace MediaPackageVod
{
namespace Model
{
/**
* A MediaPackage VOD PackagingGroup resource configuration.<p><h3>See Also:</h3>
* <a
* href="http://docs.aws.amazon.com/goto/WebAPI/mediapackage-vod-2018-11-07/UpdatePackagingGroupRequest">AWS
* API Reference</a></p>
*/
class AWS_MEDIAPACKAGEVOD_API UpdatePackagingGroupRequest : public MediaPackageVodRequest
{
public:
UpdatePackagingGroupRequest();
// Service request name is the Operation name which will send this request out,
// each operation should has unique request name, so that we can get operation's name from this request.
// Note: this is not true for response, multiple operations may have the same response name,
// so we can not get operation's name from response.
inline virtual const char* GetServiceRequestName() const override { return "UpdatePackagingGroup"; }
Aws::String SerializePayload() const override;
inline const Authorization& GetAuthorization() const{ return m_authorization; }
inline bool AuthorizationHasBeenSet() const { return m_authorizationHasBeenSet; }
inline void SetAuthorization(const Authorization& value) { m_authorizationHasBeenSet = true; m_authorization = value; }
inline void SetAuthorization(Authorization&& value) { m_authorizationHasBeenSet = true; m_authorization = std::move(value); }
inline UpdatePackagingGroupRequest& WithAuthorization(const Authorization& value) { SetAuthorization(value); return *this;}
inline UpdatePackagingGroupRequest& WithAuthorization(Authorization&& value) { SetAuthorization(std::move(value)); return *this;}
/**
* The ID of a MediaPackage VOD PackagingGroup resource.
*/
inline const Aws::String& GetId() const{ return m_id; }
/**
* The ID of a MediaPackage VOD PackagingGroup resource.
*/
inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
/**
* The ID of a MediaPackage VOD PackagingGroup resource.
*/
inline void SetId(const Aws::String& value) { m_idHasBeenSet = true; m_id = value; }
/**
* The ID of a MediaPackage VOD PackagingGroup resource.
*/
inline void SetId(Aws::String&& value) { m_idHasBeenSet = true; m_id = std::move(value); }
/**
* The ID of a MediaPackage VOD PackagingGroup resource.
*/
inline void SetId(const char* value) { m_idHasBeenSet = true; m_id.assign(value); }
/**
* The ID of a MediaPackage VOD PackagingGroup resource.
*/
inline UpdatePackagingGroupRequest& WithId(const Aws::String& value) { SetId(value); return *this;}
/**
* The ID of a MediaPackage VOD PackagingGroup resource.
*/
inline UpdatePackagingGroupRequest& WithId(Aws::String&& value) { SetId(std::move(value)); return *this;}
/**
* The ID of a MediaPackage VOD PackagingGroup resource.
*/
inline UpdatePackagingGroupRequest& WithId(const char* value) { SetId(value); return *this;}
private:
Authorization m_authorization;
bool m_authorizationHasBeenSet;
Aws::String m_id;
bool m_idHasBeenSet;
};
} // namespace Model
} // namespace MediaPackageVod
} // namespace Aws

View File

@@ -0,0 +1,212 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/mediapackage-vod/MediaPackageVod_EXPORTS.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <aws/mediapackage-vod/model/Authorization.h>
#include <aws/core/utils/memory/stl/AWSMap.h>
#include <utility>
namespace Aws
{
template<typename RESULT_TYPE>
class AmazonWebServiceResult;
namespace Utils
{
namespace Json
{
class JsonValue;
} // namespace Json
} // namespace Utils
namespace MediaPackageVod
{
namespace Model
{
class AWS_MEDIAPACKAGEVOD_API UpdatePackagingGroupResult
{
public:
UpdatePackagingGroupResult();
UpdatePackagingGroupResult(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
UpdatePackagingGroupResult& operator=(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
/**
* The ARN of the PackagingGroup.
*/
inline const Aws::String& GetArn() const{ return m_arn; }
/**
* The ARN of the PackagingGroup.
*/
inline void SetArn(const Aws::String& value) { m_arn = value; }
/**
* The ARN of the PackagingGroup.
*/
inline void SetArn(Aws::String&& value) { m_arn = std::move(value); }
/**
* The ARN of the PackagingGroup.
*/
inline void SetArn(const char* value) { m_arn.assign(value); }
/**
* The ARN of the PackagingGroup.
*/
inline UpdatePackagingGroupResult& WithArn(const Aws::String& value) { SetArn(value); return *this;}
/**
* The ARN of the PackagingGroup.
*/
inline UpdatePackagingGroupResult& WithArn(Aws::String&& value) { SetArn(std::move(value)); return *this;}
/**
* The ARN of the PackagingGroup.
*/
inline UpdatePackagingGroupResult& WithArn(const char* value) { SetArn(value); return *this;}
inline const Authorization& GetAuthorization() const{ return m_authorization; }
inline void SetAuthorization(const Authorization& value) { m_authorization = value; }
inline void SetAuthorization(Authorization&& value) { m_authorization = std::move(value); }
inline UpdatePackagingGroupResult& WithAuthorization(const Authorization& value) { SetAuthorization(value); return *this;}
inline UpdatePackagingGroupResult& WithAuthorization(Authorization&& value) { SetAuthorization(std::move(value)); return *this;}
/**
* The fully qualified domain name for Assets in the PackagingGroup.
*/
inline const Aws::String& GetDomainName() const{ return m_domainName; }
/**
* The fully qualified domain name for Assets in the PackagingGroup.
*/
inline void SetDomainName(const Aws::String& value) { m_domainName = value; }
/**
* The fully qualified domain name for Assets in the PackagingGroup.
*/
inline void SetDomainName(Aws::String&& value) { m_domainName = std::move(value); }
/**
* The fully qualified domain name for Assets in the PackagingGroup.
*/
inline void SetDomainName(const char* value) { m_domainName.assign(value); }
/**
* The fully qualified domain name for Assets in the PackagingGroup.
*/
inline UpdatePackagingGroupResult& WithDomainName(const Aws::String& value) { SetDomainName(value); return *this;}
/**
* The fully qualified domain name for Assets in the PackagingGroup.
*/
inline UpdatePackagingGroupResult& WithDomainName(Aws::String&& value) { SetDomainName(std::move(value)); return *this;}
/**
* The fully qualified domain name for Assets in the PackagingGroup.
*/
inline UpdatePackagingGroupResult& WithDomainName(const char* value) { SetDomainName(value); return *this;}
/**
* The ID of the PackagingGroup.
*/
inline const Aws::String& GetId() const{ return m_id; }
/**
* The ID of the PackagingGroup.
*/
inline void SetId(const Aws::String& value) { m_id = value; }
/**
* The ID of the PackagingGroup.
*/
inline void SetId(Aws::String&& value) { m_id = std::move(value); }
/**
* The ID of the PackagingGroup.
*/
inline void SetId(const char* value) { m_id.assign(value); }
/**
* The ID of the PackagingGroup.
*/
inline UpdatePackagingGroupResult& WithId(const Aws::String& value) { SetId(value); return *this;}
/**
* The ID of the PackagingGroup.
*/
inline UpdatePackagingGroupResult& WithId(Aws::String&& value) { SetId(std::move(value)); return *this;}
/**
* The ID of the PackagingGroup.
*/
inline UpdatePackagingGroupResult& WithId(const char* value) { SetId(value); return *this;}
inline const Aws::Map<Aws::String, Aws::String>& GetTags() const{ return m_tags; }
inline void SetTags(const Aws::Map<Aws::String, Aws::String>& value) { m_tags = value; }
inline void SetTags(Aws::Map<Aws::String, Aws::String>&& value) { m_tags = std::move(value); }
inline UpdatePackagingGroupResult& WithTags(const Aws::Map<Aws::String, Aws::String>& value) { SetTags(value); return *this;}
inline UpdatePackagingGroupResult& WithTags(Aws::Map<Aws::String, Aws::String>&& value) { SetTags(std::move(value)); return *this;}
inline UpdatePackagingGroupResult& AddTags(const Aws::String& key, const Aws::String& value) { m_tags.emplace(key, value); return *this; }
inline UpdatePackagingGroupResult& AddTags(Aws::String&& key, const Aws::String& value) { m_tags.emplace(std::move(key), value); return *this; }
inline UpdatePackagingGroupResult& AddTags(const Aws::String& key, Aws::String&& value) { m_tags.emplace(key, std::move(value)); return *this; }
inline UpdatePackagingGroupResult& AddTags(Aws::String&& key, Aws::String&& value) { m_tags.emplace(std::move(key), std::move(value)); return *this; }
inline UpdatePackagingGroupResult& AddTags(const char* key, Aws::String&& value) { m_tags.emplace(key, std::move(value)); return *this; }
inline UpdatePackagingGroupResult& AddTags(Aws::String&& key, const char* value) { m_tags.emplace(std::move(key), value); return *this; }
inline UpdatePackagingGroupResult& AddTags(const char* key, const char* value) { m_tags.emplace(key, value); return *this; }
private:
Aws::String m_arn;
Authorization m_authorization;
Aws::String m_domainName;
Aws::String m_id;
Aws::Map<Aws::String, Aws::String> m_tags;
};
} // namespace Model
} // namespace MediaPackageVod
} // namespace Aws

View File

@@ -0,0 +1,30 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/mediapackage-vod/MediaPackageVod_EXPORTS.h>
#include <aws/core/utils/memory/stl/AWSString.h>
namespace Aws
{
namespace MediaPackageVod
{
namespace Model
{
enum class __PeriodTriggersElement
{
NOT_SET,
ADS
};
namespace __PeriodTriggersElementMapper
{
AWS_MEDIAPACKAGEVOD_API __PeriodTriggersElement Get__PeriodTriggersElementForName(const Aws::String& name);
AWS_MEDIAPACKAGEVOD_API Aws::String GetNameFor__PeriodTriggersElement(__PeriodTriggersElement value);
} // namespace __PeriodTriggersElementMapper
} // namespace Model
} // namespace MediaPackageVod
} // namespace Aws

View File

@@ -0,0 +1,609 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#include <aws/core/utils/Outcome.h>
#include <aws/core/auth/AWSAuthSigner.h>
#include <aws/core/client/CoreErrors.h>
#include <aws/core/client/RetryStrategy.h>
#include <aws/core/http/HttpClient.h>
#include <aws/core/http/HttpResponse.h>
#include <aws/core/http/HttpClientFactory.h>
#include <aws/core/auth/AWSCredentialsProviderChain.h>
#include <aws/core/utils/json/JsonSerializer.h>
#include <aws/core/utils/memory/stl/AWSStringStream.h>
#include <aws/core/utils/threading/Executor.h>
#include <aws/core/utils/DNS.h>
#include <aws/core/utils/logging/LogMacros.h>
#include <aws/mediapackage-vod/MediaPackageVodClient.h>
#include <aws/mediapackage-vod/MediaPackageVodEndpoint.h>
#include <aws/mediapackage-vod/MediaPackageVodErrorMarshaller.h>
#include <aws/mediapackage-vod/model/CreateAssetRequest.h>
#include <aws/mediapackage-vod/model/CreatePackagingConfigurationRequest.h>
#include <aws/mediapackage-vod/model/CreatePackagingGroupRequest.h>
#include <aws/mediapackage-vod/model/DeleteAssetRequest.h>
#include <aws/mediapackage-vod/model/DeletePackagingConfigurationRequest.h>
#include <aws/mediapackage-vod/model/DeletePackagingGroupRequest.h>
#include <aws/mediapackage-vod/model/DescribeAssetRequest.h>
#include <aws/mediapackage-vod/model/DescribePackagingConfigurationRequest.h>
#include <aws/mediapackage-vod/model/DescribePackagingGroupRequest.h>
#include <aws/mediapackage-vod/model/ListAssetsRequest.h>
#include <aws/mediapackage-vod/model/ListPackagingConfigurationsRequest.h>
#include <aws/mediapackage-vod/model/ListPackagingGroupsRequest.h>
#include <aws/mediapackage-vod/model/ListTagsForResourceRequest.h>
#include <aws/mediapackage-vod/model/TagResourceRequest.h>
#include <aws/mediapackage-vod/model/UntagResourceRequest.h>
#include <aws/mediapackage-vod/model/UpdatePackagingGroupRequest.h>
using namespace Aws;
using namespace Aws::Auth;
using namespace Aws::Client;
using namespace Aws::MediaPackageVod;
using namespace Aws::MediaPackageVod::Model;
using namespace Aws::Http;
using namespace Aws::Utils::Json;
static const char* SERVICE_NAME = "mediapackage-vod";
static const char* ALLOCATION_TAG = "MediaPackageVodClient";
MediaPackageVodClient::MediaPackageVodClient(const Client::ClientConfiguration& clientConfiguration) :
BASECLASS(clientConfiguration,
Aws::MakeShared<AWSAuthV4Signer>(ALLOCATION_TAG, Aws::MakeShared<DefaultAWSCredentialsProviderChain>(ALLOCATION_TAG),
SERVICE_NAME, Aws::Region::ComputeSignerRegion(clientConfiguration.region)),
Aws::MakeShared<MediaPackageVodErrorMarshaller>(ALLOCATION_TAG)),
m_executor(clientConfiguration.executor)
{
init(clientConfiguration);
}
MediaPackageVodClient::MediaPackageVodClient(const AWSCredentials& credentials, const Client::ClientConfiguration& clientConfiguration) :
BASECLASS(clientConfiguration,
Aws::MakeShared<AWSAuthV4Signer>(ALLOCATION_TAG, Aws::MakeShared<SimpleAWSCredentialsProvider>(ALLOCATION_TAG, credentials),
SERVICE_NAME, Aws::Region::ComputeSignerRegion(clientConfiguration.region)),
Aws::MakeShared<MediaPackageVodErrorMarshaller>(ALLOCATION_TAG)),
m_executor(clientConfiguration.executor)
{
init(clientConfiguration);
}
MediaPackageVodClient::MediaPackageVodClient(const std::shared_ptr<AWSCredentialsProvider>& credentialsProvider,
const Client::ClientConfiguration& clientConfiguration) :
BASECLASS(clientConfiguration,
Aws::MakeShared<AWSAuthV4Signer>(ALLOCATION_TAG, credentialsProvider,
SERVICE_NAME, Aws::Region::ComputeSignerRegion(clientConfiguration.region)),
Aws::MakeShared<MediaPackageVodErrorMarshaller>(ALLOCATION_TAG)),
m_executor(clientConfiguration.executor)
{
init(clientConfiguration);
}
MediaPackageVodClient::~MediaPackageVodClient()
{
}
void MediaPackageVodClient::init(const ClientConfiguration& config)
{
SetServiceClientName("MediaPackage Vod");
m_configScheme = SchemeMapper::ToString(config.scheme);
if (config.endpointOverride.empty())
{
m_uri = m_configScheme + "://" + MediaPackageVodEndpoint::ForRegion(config.region, config.useDualStack);
}
else
{
OverrideEndpoint(config.endpointOverride);
}
}
void MediaPackageVodClient::OverrideEndpoint(const Aws::String& endpoint)
{
if (endpoint.compare(0, 7, "http://") == 0 || endpoint.compare(0, 8, "https://") == 0)
{
m_uri = endpoint;
}
else
{
m_uri = m_configScheme + "://" + endpoint;
}
}
CreateAssetOutcome MediaPackageVodClient::CreateAsset(const CreateAssetRequest& request) const
{
Aws::Http::URI uri = m_uri;
Aws::StringStream ss;
ss << "/assets";
uri.SetPath(uri.GetPath() + ss.str());
return CreateAssetOutcome(MakeRequest(uri, request, Aws::Http::HttpMethod::HTTP_POST, Aws::Auth::SIGV4_SIGNER));
}
CreateAssetOutcomeCallable MediaPackageVodClient::CreateAssetCallable(const CreateAssetRequest& request) const
{
auto task = Aws::MakeShared< std::packaged_task< CreateAssetOutcome() > >(ALLOCATION_TAG, [this, request](){ return this->CreateAsset(request); } );
auto packagedFunction = [task]() { (*task)(); };
m_executor->Submit(packagedFunction);
return task->get_future();
}
void MediaPackageVodClient::CreateAssetAsync(const CreateAssetRequest& request, const CreateAssetResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context) const
{
m_executor->Submit( [this, request, handler, context](){ this->CreateAssetAsyncHelper( request, handler, context ); } );
}
void MediaPackageVodClient::CreateAssetAsyncHelper(const CreateAssetRequest& request, const CreateAssetResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context) const
{
handler(this, request, CreateAsset(request), context);
}
CreatePackagingConfigurationOutcome MediaPackageVodClient::CreatePackagingConfiguration(const CreatePackagingConfigurationRequest& request) const
{
Aws::Http::URI uri = m_uri;
Aws::StringStream ss;
ss << "/packaging_configurations";
uri.SetPath(uri.GetPath() + ss.str());
return CreatePackagingConfigurationOutcome(MakeRequest(uri, request, Aws::Http::HttpMethod::HTTP_POST, Aws::Auth::SIGV4_SIGNER));
}
CreatePackagingConfigurationOutcomeCallable MediaPackageVodClient::CreatePackagingConfigurationCallable(const CreatePackagingConfigurationRequest& request) const
{
auto task = Aws::MakeShared< std::packaged_task< CreatePackagingConfigurationOutcome() > >(ALLOCATION_TAG, [this, request](){ return this->CreatePackagingConfiguration(request); } );
auto packagedFunction = [task]() { (*task)(); };
m_executor->Submit(packagedFunction);
return task->get_future();
}
void MediaPackageVodClient::CreatePackagingConfigurationAsync(const CreatePackagingConfigurationRequest& request, const CreatePackagingConfigurationResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context) const
{
m_executor->Submit( [this, request, handler, context](){ this->CreatePackagingConfigurationAsyncHelper( request, handler, context ); } );
}
void MediaPackageVodClient::CreatePackagingConfigurationAsyncHelper(const CreatePackagingConfigurationRequest& request, const CreatePackagingConfigurationResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context) const
{
handler(this, request, CreatePackagingConfiguration(request), context);
}
CreatePackagingGroupOutcome MediaPackageVodClient::CreatePackagingGroup(const CreatePackagingGroupRequest& request) const
{
Aws::Http::URI uri = m_uri;
Aws::StringStream ss;
ss << "/packaging_groups";
uri.SetPath(uri.GetPath() + ss.str());
return CreatePackagingGroupOutcome(MakeRequest(uri, request, Aws::Http::HttpMethod::HTTP_POST, Aws::Auth::SIGV4_SIGNER));
}
CreatePackagingGroupOutcomeCallable MediaPackageVodClient::CreatePackagingGroupCallable(const CreatePackagingGroupRequest& request) const
{
auto task = Aws::MakeShared< std::packaged_task< CreatePackagingGroupOutcome() > >(ALLOCATION_TAG, [this, request](){ return this->CreatePackagingGroup(request); } );
auto packagedFunction = [task]() { (*task)(); };
m_executor->Submit(packagedFunction);
return task->get_future();
}
void MediaPackageVodClient::CreatePackagingGroupAsync(const CreatePackagingGroupRequest& request, const CreatePackagingGroupResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context) const
{
m_executor->Submit( [this, request, handler, context](){ this->CreatePackagingGroupAsyncHelper( request, handler, context ); } );
}
void MediaPackageVodClient::CreatePackagingGroupAsyncHelper(const CreatePackagingGroupRequest& request, const CreatePackagingGroupResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context) const
{
handler(this, request, CreatePackagingGroup(request), context);
}
DeleteAssetOutcome MediaPackageVodClient::DeleteAsset(const DeleteAssetRequest& request) const
{
if (!request.IdHasBeenSet())
{
AWS_LOGSTREAM_ERROR("DeleteAsset", "Required field: Id, is not set");
return DeleteAssetOutcome(Aws::Client::AWSError<MediaPackageVodErrors>(MediaPackageVodErrors::MISSING_PARAMETER, "MISSING_PARAMETER", "Missing required field [Id]", false));
}
Aws::Http::URI uri = m_uri;
Aws::StringStream ss;
ss << "/assets/";
ss << request.GetId();
uri.SetPath(uri.GetPath() + ss.str());
return DeleteAssetOutcome(MakeRequest(uri, request, Aws::Http::HttpMethod::HTTP_DELETE, Aws::Auth::SIGV4_SIGNER));
}
DeleteAssetOutcomeCallable MediaPackageVodClient::DeleteAssetCallable(const DeleteAssetRequest& request) const
{
auto task = Aws::MakeShared< std::packaged_task< DeleteAssetOutcome() > >(ALLOCATION_TAG, [this, request](){ return this->DeleteAsset(request); } );
auto packagedFunction = [task]() { (*task)(); };
m_executor->Submit(packagedFunction);
return task->get_future();
}
void MediaPackageVodClient::DeleteAssetAsync(const DeleteAssetRequest& request, const DeleteAssetResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context) const
{
m_executor->Submit( [this, request, handler, context](){ this->DeleteAssetAsyncHelper( request, handler, context ); } );
}
void MediaPackageVodClient::DeleteAssetAsyncHelper(const DeleteAssetRequest& request, const DeleteAssetResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context) const
{
handler(this, request, DeleteAsset(request), context);
}
DeletePackagingConfigurationOutcome MediaPackageVodClient::DeletePackagingConfiguration(const DeletePackagingConfigurationRequest& request) const
{
if (!request.IdHasBeenSet())
{
AWS_LOGSTREAM_ERROR("DeletePackagingConfiguration", "Required field: Id, is not set");
return DeletePackagingConfigurationOutcome(Aws::Client::AWSError<MediaPackageVodErrors>(MediaPackageVodErrors::MISSING_PARAMETER, "MISSING_PARAMETER", "Missing required field [Id]", false));
}
Aws::Http::URI uri = m_uri;
Aws::StringStream ss;
ss << "/packaging_configurations/";
ss << request.GetId();
uri.SetPath(uri.GetPath() + ss.str());
return DeletePackagingConfigurationOutcome(MakeRequest(uri, request, Aws::Http::HttpMethod::HTTP_DELETE, Aws::Auth::SIGV4_SIGNER));
}
DeletePackagingConfigurationOutcomeCallable MediaPackageVodClient::DeletePackagingConfigurationCallable(const DeletePackagingConfigurationRequest& request) const
{
auto task = Aws::MakeShared< std::packaged_task< DeletePackagingConfigurationOutcome() > >(ALLOCATION_TAG, [this, request](){ return this->DeletePackagingConfiguration(request); } );
auto packagedFunction = [task]() { (*task)(); };
m_executor->Submit(packagedFunction);
return task->get_future();
}
void MediaPackageVodClient::DeletePackagingConfigurationAsync(const DeletePackagingConfigurationRequest& request, const DeletePackagingConfigurationResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context) const
{
m_executor->Submit( [this, request, handler, context](){ this->DeletePackagingConfigurationAsyncHelper( request, handler, context ); } );
}
void MediaPackageVodClient::DeletePackagingConfigurationAsyncHelper(const DeletePackagingConfigurationRequest& request, const DeletePackagingConfigurationResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context) const
{
handler(this, request, DeletePackagingConfiguration(request), context);
}
DeletePackagingGroupOutcome MediaPackageVodClient::DeletePackagingGroup(const DeletePackagingGroupRequest& request) const
{
if (!request.IdHasBeenSet())
{
AWS_LOGSTREAM_ERROR("DeletePackagingGroup", "Required field: Id, is not set");
return DeletePackagingGroupOutcome(Aws::Client::AWSError<MediaPackageVodErrors>(MediaPackageVodErrors::MISSING_PARAMETER, "MISSING_PARAMETER", "Missing required field [Id]", false));
}
Aws::Http::URI uri = m_uri;
Aws::StringStream ss;
ss << "/packaging_groups/";
ss << request.GetId();
uri.SetPath(uri.GetPath() + ss.str());
return DeletePackagingGroupOutcome(MakeRequest(uri, request, Aws::Http::HttpMethod::HTTP_DELETE, Aws::Auth::SIGV4_SIGNER));
}
DeletePackagingGroupOutcomeCallable MediaPackageVodClient::DeletePackagingGroupCallable(const DeletePackagingGroupRequest& request) const
{
auto task = Aws::MakeShared< std::packaged_task< DeletePackagingGroupOutcome() > >(ALLOCATION_TAG, [this, request](){ return this->DeletePackagingGroup(request); } );
auto packagedFunction = [task]() { (*task)(); };
m_executor->Submit(packagedFunction);
return task->get_future();
}
void MediaPackageVodClient::DeletePackagingGroupAsync(const DeletePackagingGroupRequest& request, const DeletePackagingGroupResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context) const
{
m_executor->Submit( [this, request, handler, context](){ this->DeletePackagingGroupAsyncHelper( request, handler, context ); } );
}
void MediaPackageVodClient::DeletePackagingGroupAsyncHelper(const DeletePackagingGroupRequest& request, const DeletePackagingGroupResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context) const
{
handler(this, request, DeletePackagingGroup(request), context);
}
DescribeAssetOutcome MediaPackageVodClient::DescribeAsset(const DescribeAssetRequest& request) const
{
if (!request.IdHasBeenSet())
{
AWS_LOGSTREAM_ERROR("DescribeAsset", "Required field: Id, is not set");
return DescribeAssetOutcome(Aws::Client::AWSError<MediaPackageVodErrors>(MediaPackageVodErrors::MISSING_PARAMETER, "MISSING_PARAMETER", "Missing required field [Id]", false));
}
Aws::Http::URI uri = m_uri;
Aws::StringStream ss;
ss << "/assets/";
ss << request.GetId();
uri.SetPath(uri.GetPath() + ss.str());
return DescribeAssetOutcome(MakeRequest(uri, request, Aws::Http::HttpMethod::HTTP_GET, Aws::Auth::SIGV4_SIGNER));
}
DescribeAssetOutcomeCallable MediaPackageVodClient::DescribeAssetCallable(const DescribeAssetRequest& request) const
{
auto task = Aws::MakeShared< std::packaged_task< DescribeAssetOutcome() > >(ALLOCATION_TAG, [this, request](){ return this->DescribeAsset(request); } );
auto packagedFunction = [task]() { (*task)(); };
m_executor->Submit(packagedFunction);
return task->get_future();
}
void MediaPackageVodClient::DescribeAssetAsync(const DescribeAssetRequest& request, const DescribeAssetResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context) const
{
m_executor->Submit( [this, request, handler, context](){ this->DescribeAssetAsyncHelper( request, handler, context ); } );
}
void MediaPackageVodClient::DescribeAssetAsyncHelper(const DescribeAssetRequest& request, const DescribeAssetResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context) const
{
handler(this, request, DescribeAsset(request), context);
}
DescribePackagingConfigurationOutcome MediaPackageVodClient::DescribePackagingConfiguration(const DescribePackagingConfigurationRequest& request) const
{
if (!request.IdHasBeenSet())
{
AWS_LOGSTREAM_ERROR("DescribePackagingConfiguration", "Required field: Id, is not set");
return DescribePackagingConfigurationOutcome(Aws::Client::AWSError<MediaPackageVodErrors>(MediaPackageVodErrors::MISSING_PARAMETER, "MISSING_PARAMETER", "Missing required field [Id]", false));
}
Aws::Http::URI uri = m_uri;
Aws::StringStream ss;
ss << "/packaging_configurations/";
ss << request.GetId();
uri.SetPath(uri.GetPath() + ss.str());
return DescribePackagingConfigurationOutcome(MakeRequest(uri, request, Aws::Http::HttpMethod::HTTP_GET, Aws::Auth::SIGV4_SIGNER));
}
DescribePackagingConfigurationOutcomeCallable MediaPackageVodClient::DescribePackagingConfigurationCallable(const DescribePackagingConfigurationRequest& request) const
{
auto task = Aws::MakeShared< std::packaged_task< DescribePackagingConfigurationOutcome() > >(ALLOCATION_TAG, [this, request](){ return this->DescribePackagingConfiguration(request); } );
auto packagedFunction = [task]() { (*task)(); };
m_executor->Submit(packagedFunction);
return task->get_future();
}
void MediaPackageVodClient::DescribePackagingConfigurationAsync(const DescribePackagingConfigurationRequest& request, const DescribePackagingConfigurationResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context) const
{
m_executor->Submit( [this, request, handler, context](){ this->DescribePackagingConfigurationAsyncHelper( request, handler, context ); } );
}
void MediaPackageVodClient::DescribePackagingConfigurationAsyncHelper(const DescribePackagingConfigurationRequest& request, const DescribePackagingConfigurationResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context) const
{
handler(this, request, DescribePackagingConfiguration(request), context);
}
DescribePackagingGroupOutcome MediaPackageVodClient::DescribePackagingGroup(const DescribePackagingGroupRequest& request) const
{
if (!request.IdHasBeenSet())
{
AWS_LOGSTREAM_ERROR("DescribePackagingGroup", "Required field: Id, is not set");
return DescribePackagingGroupOutcome(Aws::Client::AWSError<MediaPackageVodErrors>(MediaPackageVodErrors::MISSING_PARAMETER, "MISSING_PARAMETER", "Missing required field [Id]", false));
}
Aws::Http::URI uri = m_uri;
Aws::StringStream ss;
ss << "/packaging_groups/";
ss << request.GetId();
uri.SetPath(uri.GetPath() + ss.str());
return DescribePackagingGroupOutcome(MakeRequest(uri, request, Aws::Http::HttpMethod::HTTP_GET, Aws::Auth::SIGV4_SIGNER));
}
DescribePackagingGroupOutcomeCallable MediaPackageVodClient::DescribePackagingGroupCallable(const DescribePackagingGroupRequest& request) const
{
auto task = Aws::MakeShared< std::packaged_task< DescribePackagingGroupOutcome() > >(ALLOCATION_TAG, [this, request](){ return this->DescribePackagingGroup(request); } );
auto packagedFunction = [task]() { (*task)(); };
m_executor->Submit(packagedFunction);
return task->get_future();
}
void MediaPackageVodClient::DescribePackagingGroupAsync(const DescribePackagingGroupRequest& request, const DescribePackagingGroupResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context) const
{
m_executor->Submit( [this, request, handler, context](){ this->DescribePackagingGroupAsyncHelper( request, handler, context ); } );
}
void MediaPackageVodClient::DescribePackagingGroupAsyncHelper(const DescribePackagingGroupRequest& request, const DescribePackagingGroupResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context) const
{
handler(this, request, DescribePackagingGroup(request), context);
}
ListAssetsOutcome MediaPackageVodClient::ListAssets(const ListAssetsRequest& request) const
{
Aws::Http::URI uri = m_uri;
Aws::StringStream ss;
ss << "/assets";
uri.SetPath(uri.GetPath() + ss.str());
return ListAssetsOutcome(MakeRequest(uri, request, Aws::Http::HttpMethod::HTTP_GET, Aws::Auth::SIGV4_SIGNER));
}
ListAssetsOutcomeCallable MediaPackageVodClient::ListAssetsCallable(const ListAssetsRequest& request) const
{
auto task = Aws::MakeShared< std::packaged_task< ListAssetsOutcome() > >(ALLOCATION_TAG, [this, request](){ return this->ListAssets(request); } );
auto packagedFunction = [task]() { (*task)(); };
m_executor->Submit(packagedFunction);
return task->get_future();
}
void MediaPackageVodClient::ListAssetsAsync(const ListAssetsRequest& request, const ListAssetsResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context) const
{
m_executor->Submit( [this, request, handler, context](){ this->ListAssetsAsyncHelper( request, handler, context ); } );
}
void MediaPackageVodClient::ListAssetsAsyncHelper(const ListAssetsRequest& request, const ListAssetsResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context) const
{
handler(this, request, ListAssets(request), context);
}
ListPackagingConfigurationsOutcome MediaPackageVodClient::ListPackagingConfigurations(const ListPackagingConfigurationsRequest& request) const
{
Aws::Http::URI uri = m_uri;
Aws::StringStream ss;
ss << "/packaging_configurations";
uri.SetPath(uri.GetPath() + ss.str());
return ListPackagingConfigurationsOutcome(MakeRequest(uri, request, Aws::Http::HttpMethod::HTTP_GET, Aws::Auth::SIGV4_SIGNER));
}
ListPackagingConfigurationsOutcomeCallable MediaPackageVodClient::ListPackagingConfigurationsCallable(const ListPackagingConfigurationsRequest& request) const
{
auto task = Aws::MakeShared< std::packaged_task< ListPackagingConfigurationsOutcome() > >(ALLOCATION_TAG, [this, request](){ return this->ListPackagingConfigurations(request); } );
auto packagedFunction = [task]() { (*task)(); };
m_executor->Submit(packagedFunction);
return task->get_future();
}
void MediaPackageVodClient::ListPackagingConfigurationsAsync(const ListPackagingConfigurationsRequest& request, const ListPackagingConfigurationsResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context) const
{
m_executor->Submit( [this, request, handler, context](){ this->ListPackagingConfigurationsAsyncHelper( request, handler, context ); } );
}
void MediaPackageVodClient::ListPackagingConfigurationsAsyncHelper(const ListPackagingConfigurationsRequest& request, const ListPackagingConfigurationsResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context) const
{
handler(this, request, ListPackagingConfigurations(request), context);
}
ListPackagingGroupsOutcome MediaPackageVodClient::ListPackagingGroups(const ListPackagingGroupsRequest& request) const
{
Aws::Http::URI uri = m_uri;
Aws::StringStream ss;
ss << "/packaging_groups";
uri.SetPath(uri.GetPath() + ss.str());
return ListPackagingGroupsOutcome(MakeRequest(uri, request, Aws::Http::HttpMethod::HTTP_GET, Aws::Auth::SIGV4_SIGNER));
}
ListPackagingGroupsOutcomeCallable MediaPackageVodClient::ListPackagingGroupsCallable(const ListPackagingGroupsRequest& request) const
{
auto task = Aws::MakeShared< std::packaged_task< ListPackagingGroupsOutcome() > >(ALLOCATION_TAG, [this, request](){ return this->ListPackagingGroups(request); } );
auto packagedFunction = [task]() { (*task)(); };
m_executor->Submit(packagedFunction);
return task->get_future();
}
void MediaPackageVodClient::ListPackagingGroupsAsync(const ListPackagingGroupsRequest& request, const ListPackagingGroupsResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context) const
{
m_executor->Submit( [this, request, handler, context](){ this->ListPackagingGroupsAsyncHelper( request, handler, context ); } );
}
void MediaPackageVodClient::ListPackagingGroupsAsyncHelper(const ListPackagingGroupsRequest& request, const ListPackagingGroupsResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context) const
{
handler(this, request, ListPackagingGroups(request), context);
}
ListTagsForResourceOutcome MediaPackageVodClient::ListTagsForResource(const ListTagsForResourceRequest& request) const
{
if (!request.ResourceArnHasBeenSet())
{
AWS_LOGSTREAM_ERROR("ListTagsForResource", "Required field: ResourceArn, is not set");
return ListTagsForResourceOutcome(Aws::Client::AWSError<MediaPackageVodErrors>(MediaPackageVodErrors::MISSING_PARAMETER, "MISSING_PARAMETER", "Missing required field [ResourceArn]", false));
}
Aws::Http::URI uri = m_uri;
Aws::StringStream ss;
ss << "/tags/";
ss << request.GetResourceArn();
uri.SetPath(uri.GetPath() + ss.str());
return ListTagsForResourceOutcome(MakeRequest(uri, request, Aws::Http::HttpMethod::HTTP_GET, Aws::Auth::SIGV4_SIGNER));
}
ListTagsForResourceOutcomeCallable MediaPackageVodClient::ListTagsForResourceCallable(const ListTagsForResourceRequest& request) const
{
auto task = Aws::MakeShared< std::packaged_task< ListTagsForResourceOutcome() > >(ALLOCATION_TAG, [this, request](){ return this->ListTagsForResource(request); } );
auto packagedFunction = [task]() { (*task)(); };
m_executor->Submit(packagedFunction);
return task->get_future();
}
void MediaPackageVodClient::ListTagsForResourceAsync(const ListTagsForResourceRequest& request, const ListTagsForResourceResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context) const
{
m_executor->Submit( [this, request, handler, context](){ this->ListTagsForResourceAsyncHelper( request, handler, context ); } );
}
void MediaPackageVodClient::ListTagsForResourceAsyncHelper(const ListTagsForResourceRequest& request, const ListTagsForResourceResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context) const
{
handler(this, request, ListTagsForResource(request), context);
}
TagResourceOutcome MediaPackageVodClient::TagResource(const TagResourceRequest& request) const
{
if (!request.ResourceArnHasBeenSet())
{
AWS_LOGSTREAM_ERROR("TagResource", "Required field: ResourceArn, is not set");
return TagResourceOutcome(Aws::Client::AWSError<MediaPackageVodErrors>(MediaPackageVodErrors::MISSING_PARAMETER, "MISSING_PARAMETER", "Missing required field [ResourceArn]", false));
}
Aws::Http::URI uri = m_uri;
Aws::StringStream ss;
ss << "/tags/";
ss << request.GetResourceArn();
uri.SetPath(uri.GetPath() + ss.str());
return TagResourceOutcome(MakeRequest(uri, request, Aws::Http::HttpMethod::HTTP_POST, Aws::Auth::SIGV4_SIGNER));
}
TagResourceOutcomeCallable MediaPackageVodClient::TagResourceCallable(const TagResourceRequest& request) const
{
auto task = Aws::MakeShared< std::packaged_task< TagResourceOutcome() > >(ALLOCATION_TAG, [this, request](){ return this->TagResource(request); } );
auto packagedFunction = [task]() { (*task)(); };
m_executor->Submit(packagedFunction);
return task->get_future();
}
void MediaPackageVodClient::TagResourceAsync(const TagResourceRequest& request, const TagResourceResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context) const
{
m_executor->Submit( [this, request, handler, context](){ this->TagResourceAsyncHelper( request, handler, context ); } );
}
void MediaPackageVodClient::TagResourceAsyncHelper(const TagResourceRequest& request, const TagResourceResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context) const
{
handler(this, request, TagResource(request), context);
}
UntagResourceOutcome MediaPackageVodClient::UntagResource(const UntagResourceRequest& request) const
{
if (!request.ResourceArnHasBeenSet())
{
AWS_LOGSTREAM_ERROR("UntagResource", "Required field: ResourceArn, is not set");
return UntagResourceOutcome(Aws::Client::AWSError<MediaPackageVodErrors>(MediaPackageVodErrors::MISSING_PARAMETER, "MISSING_PARAMETER", "Missing required field [ResourceArn]", false));
}
if (!request.TagKeysHasBeenSet())
{
AWS_LOGSTREAM_ERROR("UntagResource", "Required field: TagKeys, is not set");
return UntagResourceOutcome(Aws::Client::AWSError<MediaPackageVodErrors>(MediaPackageVodErrors::MISSING_PARAMETER, "MISSING_PARAMETER", "Missing required field [TagKeys]", false));
}
Aws::Http::URI uri = m_uri;
Aws::StringStream ss;
ss << "/tags/";
ss << request.GetResourceArn();
uri.SetPath(uri.GetPath() + ss.str());
return UntagResourceOutcome(MakeRequest(uri, request, Aws::Http::HttpMethod::HTTP_DELETE, Aws::Auth::SIGV4_SIGNER));
}
UntagResourceOutcomeCallable MediaPackageVodClient::UntagResourceCallable(const UntagResourceRequest& request) const
{
auto task = Aws::MakeShared< std::packaged_task< UntagResourceOutcome() > >(ALLOCATION_TAG, [this, request](){ return this->UntagResource(request); } );
auto packagedFunction = [task]() { (*task)(); };
m_executor->Submit(packagedFunction);
return task->get_future();
}
void MediaPackageVodClient::UntagResourceAsync(const UntagResourceRequest& request, const UntagResourceResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context) const
{
m_executor->Submit( [this, request, handler, context](){ this->UntagResourceAsyncHelper( request, handler, context ); } );
}
void MediaPackageVodClient::UntagResourceAsyncHelper(const UntagResourceRequest& request, const UntagResourceResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context) const
{
handler(this, request, UntagResource(request), context);
}
UpdatePackagingGroupOutcome MediaPackageVodClient::UpdatePackagingGroup(const UpdatePackagingGroupRequest& request) const
{
if (!request.IdHasBeenSet())
{
AWS_LOGSTREAM_ERROR("UpdatePackagingGroup", "Required field: Id, is not set");
return UpdatePackagingGroupOutcome(Aws::Client::AWSError<MediaPackageVodErrors>(MediaPackageVodErrors::MISSING_PARAMETER, "MISSING_PARAMETER", "Missing required field [Id]", false));
}
Aws::Http::URI uri = m_uri;
Aws::StringStream ss;
ss << "/packaging_groups/";
ss << request.GetId();
uri.SetPath(uri.GetPath() + ss.str());
return UpdatePackagingGroupOutcome(MakeRequest(uri, request, Aws::Http::HttpMethod::HTTP_PUT, Aws::Auth::SIGV4_SIGNER));
}
UpdatePackagingGroupOutcomeCallable MediaPackageVodClient::UpdatePackagingGroupCallable(const UpdatePackagingGroupRequest& request) const
{
auto task = Aws::MakeShared< std::packaged_task< UpdatePackagingGroupOutcome() > >(ALLOCATION_TAG, [this, request](){ return this->UpdatePackagingGroup(request); } );
auto packagedFunction = [task]() { (*task)(); };
m_executor->Submit(packagedFunction);
return task->get_future();
}
void MediaPackageVodClient::UpdatePackagingGroupAsync(const UpdatePackagingGroupRequest& request, const UpdatePackagingGroupResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context) const
{
m_executor->Submit( [this, request, handler, context](){ this->UpdatePackagingGroupAsyncHelper( request, handler, context ); } );
}
void MediaPackageVodClient::UpdatePackagingGroupAsyncHelper(const UpdatePackagingGroupRequest& request, const UpdatePackagingGroupResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context) const
{
handler(this, request, UpdatePackagingGroup(request), context);
}

View File

@@ -0,0 +1,64 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#include <aws/mediapackage-vod/MediaPackageVodEndpoint.h>
#include <aws/core/utils/memory/stl/AWSStringStream.h>
#include <aws/core/utils/HashingUtils.h>
using namespace Aws;
using namespace Aws::MediaPackageVod;
namespace Aws
{
namespace MediaPackageVod
{
namespace MediaPackageVodEndpoint
{
static const int CN_NORTH_1_HASH = Aws::Utils::HashingUtils::HashString("cn-north-1");
static const int CN_NORTHWEST_1_HASH = Aws::Utils::HashingUtils::HashString("cn-northwest-1");
static const int US_ISO_EAST_1_HASH = Aws::Utils::HashingUtils::HashString("us-iso-east-1");
static const int US_ISOB_EAST_1_HASH = Aws::Utils::HashingUtils::HashString("us-isob-east-1");
Aws::String ForRegion(const Aws::String& regionName, bool useDualStack)
{
// Fallback to us-east-1 if global endpoint does not exists.
Aws::String region = regionName == Aws::Region::AWS_GLOBAL ? Aws::Region::US_EAST_1 : regionName;
auto hash = Aws::Utils::HashingUtils::HashString(region.c_str());
Aws::StringStream ss;
ss << "mediapackage-vod" << ".";
if(useDualStack)
{
ss << "dualstack.";
}
ss << region;
if (hash == CN_NORTH_1_HASH || hash == CN_NORTHWEST_1_HASH)
{
ss << ".amazonaws.com.cn";
}
else if (hash == US_ISO_EAST_1_HASH)
{
ss << ".c2s.ic.gov";
}
else if (hash == US_ISOB_EAST_1_HASH)
{
ss << ".sc2s.sgov.gov";
}
else
{
ss << ".amazonaws.com";
}
return ss.str();
}
} // namespace MediaPackageVodEndpoint
} // namespace MediaPackageVod
} // namespace Aws

View File

@@ -0,0 +1,22 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#include <aws/core/client/AWSError.h>
#include <aws/mediapackage-vod/MediaPackageVodErrorMarshaller.h>
#include <aws/mediapackage-vod/MediaPackageVodErrors.h>
using namespace Aws::Client;
using namespace Aws::MediaPackageVod;
AWSError<CoreErrors> MediaPackageVodErrorMarshaller::FindErrorByName(const char* errorName) const
{
AWSError<CoreErrors> error = MediaPackageVodErrorMapper::GetErrorForName(errorName);
if(error.GetErrorType() != CoreErrors::UNKNOWN)
{
return error;
}
return AWSErrorMarshaller::FindErrorByName(errorName);
}

View File

@@ -0,0 +1,57 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#include <aws/core/client/AWSError.h>
#include <aws/core/utils/HashingUtils.h>
#include <aws/mediapackage-vod/MediaPackageVodErrors.h>
using namespace Aws::Client;
using namespace Aws::Utils;
using namespace Aws::MediaPackageVod;
namespace Aws
{
namespace MediaPackageVod
{
namespace MediaPackageVodErrorMapper
{
static const int NOT_FOUND_HASH = HashingUtils::HashString("NotFoundException");
static const int FORBIDDEN_HASH = HashingUtils::HashString("ForbiddenException");
static const int TOO_MANY_REQUESTS_HASH = HashingUtils::HashString("TooManyRequestsException");
static const int UNPROCESSABLE_ENTITY_HASH = HashingUtils::HashString("UnprocessableEntityException");
static const int INTERNAL_SERVER_ERROR_HASH = HashingUtils::HashString("InternalServerErrorException");
AWSError<CoreErrors> GetErrorForName(const char* errorName)
{
int hashCode = HashingUtils::HashString(errorName);
if (hashCode == NOT_FOUND_HASH)
{
return AWSError<CoreErrors>(static_cast<CoreErrors>(MediaPackageVodErrors::NOT_FOUND), false);
}
else if (hashCode == FORBIDDEN_HASH)
{
return AWSError<CoreErrors>(static_cast<CoreErrors>(MediaPackageVodErrors::FORBIDDEN), false);
}
else if (hashCode == TOO_MANY_REQUESTS_HASH)
{
return AWSError<CoreErrors>(static_cast<CoreErrors>(MediaPackageVodErrors::TOO_MANY_REQUESTS), true);
}
else if (hashCode == UNPROCESSABLE_ENTITY_HASH)
{
return AWSError<CoreErrors>(static_cast<CoreErrors>(MediaPackageVodErrors::UNPROCESSABLE_ENTITY), false);
}
else if (hashCode == INTERNAL_SERVER_ERROR_HASH)
{
return AWSError<CoreErrors>(static_cast<CoreErrors>(MediaPackageVodErrors::INTERNAL_SERVER_ERROR), false);
}
return AWSError<CoreErrors>(CoreErrors::UNKNOWN, false);
}
} // namespace MediaPackageVodErrorMapper
} // namespace MediaPackageVod
} // namespace Aws

View File

@@ -0,0 +1,77 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#include <aws/mediapackage-vod/model/AdMarkers.h>
#include <aws/core/utils/HashingUtils.h>
#include <aws/core/Globals.h>
#include <aws/core/utils/EnumParseOverflowContainer.h>
using namespace Aws::Utils;
namespace Aws
{
namespace MediaPackageVod
{
namespace Model
{
namespace AdMarkersMapper
{
static const int NONE_HASH = HashingUtils::HashString("NONE");
static const int SCTE35_ENHANCED_HASH = HashingUtils::HashString("SCTE35_ENHANCED");
static const int PASSTHROUGH_HASH = HashingUtils::HashString("PASSTHROUGH");
AdMarkers GetAdMarkersForName(const Aws::String& name)
{
int hashCode = HashingUtils::HashString(name.c_str());
if (hashCode == NONE_HASH)
{
return AdMarkers::NONE;
}
else if (hashCode == SCTE35_ENHANCED_HASH)
{
return AdMarkers::SCTE35_ENHANCED;
}
else if (hashCode == PASSTHROUGH_HASH)
{
return AdMarkers::PASSTHROUGH;
}
EnumParseOverflowContainer* overflowContainer = Aws::GetEnumOverflowContainer();
if(overflowContainer)
{
overflowContainer->StoreOverflow(hashCode, name);
return static_cast<AdMarkers>(hashCode);
}
return AdMarkers::NOT_SET;
}
Aws::String GetNameForAdMarkers(AdMarkers enumValue)
{
switch(enumValue)
{
case AdMarkers::NONE:
return "NONE";
case AdMarkers::SCTE35_ENHANCED:
return "SCTE35_ENHANCED";
case AdMarkers::PASSTHROUGH:
return "PASSTHROUGH";
default:
EnumParseOverflowContainer* overflowContainer = Aws::GetEnumOverflowContainer();
if(overflowContainer)
{
return overflowContainer->RetrieveOverflow(static_cast<int>(enumValue));
}
return {};
}
}
} // namespace AdMarkersMapper
} // namespace Model
} // namespace MediaPackageVod
} // namespace Aws

View File

@@ -0,0 +1,172 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#include <aws/mediapackage-vod/model/AssetShallow.h>
#include <aws/core/utils/json/JsonSerializer.h>
#include <utility>
using namespace Aws::Utils::Json;
using namespace Aws::Utils;
namespace Aws
{
namespace MediaPackageVod
{
namespace Model
{
AssetShallow::AssetShallow() :
m_arnHasBeenSet(false),
m_createdAtHasBeenSet(false),
m_idHasBeenSet(false),
m_packagingGroupIdHasBeenSet(false),
m_resourceIdHasBeenSet(false),
m_sourceArnHasBeenSet(false),
m_sourceRoleArnHasBeenSet(false),
m_tagsHasBeenSet(false)
{
}
AssetShallow::AssetShallow(JsonView jsonValue) :
m_arnHasBeenSet(false),
m_createdAtHasBeenSet(false),
m_idHasBeenSet(false),
m_packagingGroupIdHasBeenSet(false),
m_resourceIdHasBeenSet(false),
m_sourceArnHasBeenSet(false),
m_sourceRoleArnHasBeenSet(false),
m_tagsHasBeenSet(false)
{
*this = jsonValue;
}
AssetShallow& AssetShallow::operator =(JsonView jsonValue)
{
if(jsonValue.ValueExists("arn"))
{
m_arn = jsonValue.GetString("arn");
m_arnHasBeenSet = true;
}
if(jsonValue.ValueExists("createdAt"))
{
m_createdAt = jsonValue.GetString("createdAt");
m_createdAtHasBeenSet = true;
}
if(jsonValue.ValueExists("id"))
{
m_id = jsonValue.GetString("id");
m_idHasBeenSet = true;
}
if(jsonValue.ValueExists("packagingGroupId"))
{
m_packagingGroupId = jsonValue.GetString("packagingGroupId");
m_packagingGroupIdHasBeenSet = true;
}
if(jsonValue.ValueExists("resourceId"))
{
m_resourceId = jsonValue.GetString("resourceId");
m_resourceIdHasBeenSet = true;
}
if(jsonValue.ValueExists("sourceArn"))
{
m_sourceArn = jsonValue.GetString("sourceArn");
m_sourceArnHasBeenSet = true;
}
if(jsonValue.ValueExists("sourceRoleArn"))
{
m_sourceRoleArn = jsonValue.GetString("sourceRoleArn");
m_sourceRoleArnHasBeenSet = true;
}
if(jsonValue.ValueExists("tags"))
{
Aws::Map<Aws::String, JsonView> tagsJsonMap = jsonValue.GetObject("tags").GetAllObjects();
for(auto& tagsItem : tagsJsonMap)
{
m_tags[tagsItem.first] = tagsItem.second.AsString();
}
m_tagsHasBeenSet = true;
}
return *this;
}
JsonValue AssetShallow::Jsonize() const
{
JsonValue payload;
if(m_arnHasBeenSet)
{
payload.WithString("arn", m_arn);
}
if(m_createdAtHasBeenSet)
{
payload.WithString("createdAt", m_createdAt);
}
if(m_idHasBeenSet)
{
payload.WithString("id", m_id);
}
if(m_packagingGroupIdHasBeenSet)
{
payload.WithString("packagingGroupId", m_packagingGroupId);
}
if(m_resourceIdHasBeenSet)
{
payload.WithString("resourceId", m_resourceId);
}
if(m_sourceArnHasBeenSet)
{
payload.WithString("sourceArn", m_sourceArn);
}
if(m_sourceRoleArnHasBeenSet)
{
payload.WithString("sourceRoleArn", m_sourceRoleArn);
}
if(m_tagsHasBeenSet)
{
JsonValue tagsJsonMap;
for(auto& tagsItem : m_tags)
{
tagsJsonMap.WithString(tagsItem.first, tagsItem.second);
}
payload.WithObject("tags", std::move(tagsJsonMap));
}
return payload;
}
} // namespace Model
} // namespace MediaPackageVod
} // 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/mediapackage-vod/model/Authorization.h>
#include <aws/core/utils/json/JsonSerializer.h>
#include <utility>
using namespace Aws::Utils::Json;
using namespace Aws::Utils;
namespace Aws
{
namespace MediaPackageVod
{
namespace Model
{
Authorization::Authorization() :
m_cdnIdentifierSecretHasBeenSet(false),
m_secretsRoleArnHasBeenSet(false)
{
}
Authorization::Authorization(JsonView jsonValue) :
m_cdnIdentifierSecretHasBeenSet(false),
m_secretsRoleArnHasBeenSet(false)
{
*this = jsonValue;
}
Authorization& Authorization::operator =(JsonView jsonValue)
{
if(jsonValue.ValueExists("cdnIdentifierSecret"))
{
m_cdnIdentifierSecret = jsonValue.GetString("cdnIdentifierSecret");
m_cdnIdentifierSecretHasBeenSet = true;
}
if(jsonValue.ValueExists("secretsRoleArn"))
{
m_secretsRoleArn = jsonValue.GetString("secretsRoleArn");
m_secretsRoleArnHasBeenSet = true;
}
return *this;
}
JsonValue Authorization::Jsonize() const
{
JsonValue payload;
if(m_cdnIdentifierSecretHasBeenSet)
{
payload.WithString("cdnIdentifierSecret", m_cdnIdentifierSecret);
}
if(m_secretsRoleArnHasBeenSet)
{
payload.WithString("secretsRoleArn", m_secretsRoleArn);
}
return payload;
}
} // namespace Model
} // namespace MediaPackageVod
} // 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/mediapackage-vod/model/CmafEncryption.h>
#include <aws/core/utils/json/JsonSerializer.h>
#include <utility>
using namespace Aws::Utils::Json;
using namespace Aws::Utils;
namespace Aws
{
namespace MediaPackageVod
{
namespace Model
{
CmafEncryption::CmafEncryption() :
m_spekeKeyProviderHasBeenSet(false)
{
}
CmafEncryption::CmafEncryption(JsonView jsonValue) :
m_spekeKeyProviderHasBeenSet(false)
{
*this = jsonValue;
}
CmafEncryption& CmafEncryption::operator =(JsonView jsonValue)
{
if(jsonValue.ValueExists("spekeKeyProvider"))
{
m_spekeKeyProvider = jsonValue.GetObject("spekeKeyProvider");
m_spekeKeyProviderHasBeenSet = true;
}
return *this;
}
JsonValue CmafEncryption::Jsonize() const
{
JsonValue payload;
if(m_spekeKeyProviderHasBeenSet)
{
payload.WithObject("spekeKeyProvider", m_spekeKeyProvider.Jsonize());
}
return payload;
}
} // namespace Model
} // namespace MediaPackageVod
} // namespace Aws

View File

@@ -0,0 +1,99 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#include <aws/mediapackage-vod/model/CmafPackage.h>
#include <aws/core/utils/json/JsonSerializer.h>
#include <utility>
using namespace Aws::Utils::Json;
using namespace Aws::Utils;
namespace Aws
{
namespace MediaPackageVod
{
namespace Model
{
CmafPackage::CmafPackage() :
m_encryptionHasBeenSet(false),
m_hlsManifestsHasBeenSet(false),
m_segmentDurationSeconds(0),
m_segmentDurationSecondsHasBeenSet(false)
{
}
CmafPackage::CmafPackage(JsonView jsonValue) :
m_encryptionHasBeenSet(false),
m_hlsManifestsHasBeenSet(false),
m_segmentDurationSeconds(0),
m_segmentDurationSecondsHasBeenSet(false)
{
*this = jsonValue;
}
CmafPackage& CmafPackage::operator =(JsonView jsonValue)
{
if(jsonValue.ValueExists("encryption"))
{
m_encryption = jsonValue.GetObject("encryption");
m_encryptionHasBeenSet = true;
}
if(jsonValue.ValueExists("hlsManifests"))
{
Array<JsonView> hlsManifestsJsonList = jsonValue.GetArray("hlsManifests");
for(unsigned hlsManifestsIndex = 0; hlsManifestsIndex < hlsManifestsJsonList.GetLength(); ++hlsManifestsIndex)
{
m_hlsManifests.push_back(hlsManifestsJsonList[hlsManifestsIndex].AsObject());
}
m_hlsManifestsHasBeenSet = true;
}
if(jsonValue.ValueExists("segmentDurationSeconds"))
{
m_segmentDurationSeconds = jsonValue.GetInteger("segmentDurationSeconds");
m_segmentDurationSecondsHasBeenSet = true;
}
return *this;
}
JsonValue CmafPackage::Jsonize() const
{
JsonValue payload;
if(m_encryptionHasBeenSet)
{
payload.WithObject("encryption", m_encryption.Jsonize());
}
if(m_hlsManifestsHasBeenSet)
{
Array<JsonValue> hlsManifestsJsonList(m_hlsManifests.size());
for(unsigned hlsManifestsIndex = 0; hlsManifestsIndex < hlsManifestsJsonList.GetLength(); ++hlsManifestsIndex)
{
hlsManifestsJsonList[hlsManifestsIndex].AsObject(m_hlsManifests[hlsManifestsIndex].Jsonize());
}
payload.WithArray("hlsManifests", std::move(hlsManifestsJsonList));
}
if(m_segmentDurationSecondsHasBeenSet)
{
payload.WithInteger("segmentDurationSeconds", m_segmentDurationSeconds);
}
return payload;
}
} // namespace Model
} // namespace MediaPackageVod
} // namespace Aws

View File

@@ -0,0 +1,75 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#include <aws/mediapackage-vod/model/CreateAssetRequest.h>
#include <aws/core/utils/json/JsonSerializer.h>
#include <utility>
using namespace Aws::MediaPackageVod::Model;
using namespace Aws::Utils::Json;
using namespace Aws::Utils;
CreateAssetRequest::CreateAssetRequest() :
m_idHasBeenSet(false),
m_packagingGroupIdHasBeenSet(false),
m_resourceIdHasBeenSet(false),
m_sourceArnHasBeenSet(false),
m_sourceRoleArnHasBeenSet(false),
m_tagsHasBeenSet(false)
{
}
Aws::String CreateAssetRequest::SerializePayload() const
{
JsonValue payload;
if(m_idHasBeenSet)
{
payload.WithString("id", m_id);
}
if(m_packagingGroupIdHasBeenSet)
{
payload.WithString("packagingGroupId", m_packagingGroupId);
}
if(m_resourceIdHasBeenSet)
{
payload.WithString("resourceId", m_resourceId);
}
if(m_sourceArnHasBeenSet)
{
payload.WithString("sourceArn", m_sourceArn);
}
if(m_sourceRoleArnHasBeenSet)
{
payload.WithString("sourceRoleArn", m_sourceRoleArn);
}
if(m_tagsHasBeenSet)
{
JsonValue tagsJsonMap;
for(auto& tagsItem : m_tags)
{
tagsJsonMap.WithString(tagsItem.first, tagsItem.second);
}
payload.WithObject("tags", std::move(tagsJsonMap));
}
return payload.View().WriteReadable();
}

View File

@@ -0,0 +1,94 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#include <aws/mediapackage-vod/model/CreateAssetResult.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::MediaPackageVod::Model;
using namespace Aws::Utils::Json;
using namespace Aws::Utils;
using namespace Aws;
CreateAssetResult::CreateAssetResult()
{
}
CreateAssetResult::CreateAssetResult(const Aws::AmazonWebServiceResult<JsonValue>& result)
{
*this = result;
}
CreateAssetResult& CreateAssetResult::operator =(const Aws::AmazonWebServiceResult<JsonValue>& result)
{
JsonView jsonValue = result.GetPayload().View();
if(jsonValue.ValueExists("arn"))
{
m_arn = jsonValue.GetString("arn");
}
if(jsonValue.ValueExists("createdAt"))
{
m_createdAt = jsonValue.GetString("createdAt");
}
if(jsonValue.ValueExists("egressEndpoints"))
{
Array<JsonView> egressEndpointsJsonList = jsonValue.GetArray("egressEndpoints");
for(unsigned egressEndpointsIndex = 0; egressEndpointsIndex < egressEndpointsJsonList.GetLength(); ++egressEndpointsIndex)
{
m_egressEndpoints.push_back(egressEndpointsJsonList[egressEndpointsIndex].AsObject());
}
}
if(jsonValue.ValueExists("id"))
{
m_id = jsonValue.GetString("id");
}
if(jsonValue.ValueExists("packagingGroupId"))
{
m_packagingGroupId = jsonValue.GetString("packagingGroupId");
}
if(jsonValue.ValueExists("resourceId"))
{
m_resourceId = jsonValue.GetString("resourceId");
}
if(jsonValue.ValueExists("sourceArn"))
{
m_sourceArn = jsonValue.GetString("sourceArn");
}
if(jsonValue.ValueExists("sourceRoleArn"))
{
m_sourceRoleArn = jsonValue.GetString("sourceRoleArn");
}
if(jsonValue.ValueExists("tags"))
{
Aws::Map<Aws::String, JsonView> tagsJsonMap = jsonValue.GetObject("tags").GetAllObjects();
for(auto& tagsItem : tagsJsonMap)
{
m_tags[tagsItem.first] = tagsItem.second.AsString();
}
}
return *this;
}

View File

@@ -0,0 +1,82 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#include <aws/mediapackage-vod/model/CreatePackagingConfigurationRequest.h>
#include <aws/core/utils/json/JsonSerializer.h>
#include <utility>
using namespace Aws::MediaPackageVod::Model;
using namespace Aws::Utils::Json;
using namespace Aws::Utils;
CreatePackagingConfigurationRequest::CreatePackagingConfigurationRequest() :
m_cmafPackageHasBeenSet(false),
m_dashPackageHasBeenSet(false),
m_hlsPackageHasBeenSet(false),
m_idHasBeenSet(false),
m_mssPackageHasBeenSet(false),
m_packagingGroupIdHasBeenSet(false),
m_tagsHasBeenSet(false)
{
}
Aws::String CreatePackagingConfigurationRequest::SerializePayload() const
{
JsonValue payload;
if(m_cmafPackageHasBeenSet)
{
payload.WithObject("cmafPackage", m_cmafPackage.Jsonize());
}
if(m_dashPackageHasBeenSet)
{
payload.WithObject("dashPackage", m_dashPackage.Jsonize());
}
if(m_hlsPackageHasBeenSet)
{
payload.WithObject("hlsPackage", m_hlsPackage.Jsonize());
}
if(m_idHasBeenSet)
{
payload.WithString("id", m_id);
}
if(m_mssPackageHasBeenSet)
{
payload.WithObject("mssPackage", m_mssPackage.Jsonize());
}
if(m_packagingGroupIdHasBeenSet)
{
payload.WithString("packagingGroupId", m_packagingGroupId);
}
if(m_tagsHasBeenSet)
{
JsonValue tagsJsonMap;
for(auto& tagsItem : m_tags)
{
tagsJsonMap.WithString(tagsItem.first, tagsItem.second);
}
payload.WithObject("tags", std::move(tagsJsonMap));
}
return payload.View().WriteReadable();
}

View File

@@ -0,0 +1,85 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#include <aws/mediapackage-vod/model/CreatePackagingConfigurationResult.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::MediaPackageVod::Model;
using namespace Aws::Utils::Json;
using namespace Aws::Utils;
using namespace Aws;
CreatePackagingConfigurationResult::CreatePackagingConfigurationResult()
{
}
CreatePackagingConfigurationResult::CreatePackagingConfigurationResult(const Aws::AmazonWebServiceResult<JsonValue>& result)
{
*this = result;
}
CreatePackagingConfigurationResult& CreatePackagingConfigurationResult::operator =(const Aws::AmazonWebServiceResult<JsonValue>& result)
{
JsonView jsonValue = result.GetPayload().View();
if(jsonValue.ValueExists("arn"))
{
m_arn = jsonValue.GetString("arn");
}
if(jsonValue.ValueExists("cmafPackage"))
{
m_cmafPackage = jsonValue.GetObject("cmafPackage");
}
if(jsonValue.ValueExists("dashPackage"))
{
m_dashPackage = jsonValue.GetObject("dashPackage");
}
if(jsonValue.ValueExists("hlsPackage"))
{
m_hlsPackage = jsonValue.GetObject("hlsPackage");
}
if(jsonValue.ValueExists("id"))
{
m_id = jsonValue.GetString("id");
}
if(jsonValue.ValueExists("mssPackage"))
{
m_mssPackage = jsonValue.GetObject("mssPackage");
}
if(jsonValue.ValueExists("packagingGroupId"))
{
m_packagingGroupId = jsonValue.GetString("packagingGroupId");
}
if(jsonValue.ValueExists("tags"))
{
Aws::Map<Aws::String, JsonView> tagsJsonMap = jsonValue.GetObject("tags").GetAllObjects();
for(auto& tagsItem : tagsJsonMap)
{
m_tags[tagsItem.first] = tagsItem.second.AsString();
}
}
return *this;
}

View File

@@ -0,0 +1,54 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#include <aws/mediapackage-vod/model/CreatePackagingGroupRequest.h>
#include <aws/core/utils/json/JsonSerializer.h>
#include <utility>
using namespace Aws::MediaPackageVod::Model;
using namespace Aws::Utils::Json;
using namespace Aws::Utils;
CreatePackagingGroupRequest::CreatePackagingGroupRequest() :
m_authorizationHasBeenSet(false),
m_idHasBeenSet(false),
m_tagsHasBeenSet(false)
{
}
Aws::String CreatePackagingGroupRequest::SerializePayload() const
{
JsonValue payload;
if(m_authorizationHasBeenSet)
{
payload.WithObject("authorization", m_authorization.Jsonize());
}
if(m_idHasBeenSet)
{
payload.WithString("id", m_id);
}
if(m_tagsHasBeenSet)
{
JsonValue tagsJsonMap;
for(auto& tagsItem : m_tags)
{
tagsJsonMap.WithString(tagsItem.first, tagsItem.second);
}
payload.WithObject("tags", std::move(tagsJsonMap));
}
return payload.View().WriteReadable();
}

View File

@@ -0,0 +1,67 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#include <aws/mediapackage-vod/model/CreatePackagingGroupResult.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::MediaPackageVod::Model;
using namespace Aws::Utils::Json;
using namespace Aws::Utils;
using namespace Aws;
CreatePackagingGroupResult::CreatePackagingGroupResult()
{
}
CreatePackagingGroupResult::CreatePackagingGroupResult(const Aws::AmazonWebServiceResult<JsonValue>& result)
{
*this = result;
}
CreatePackagingGroupResult& CreatePackagingGroupResult::operator =(const Aws::AmazonWebServiceResult<JsonValue>& result)
{
JsonView jsonValue = result.GetPayload().View();
if(jsonValue.ValueExists("arn"))
{
m_arn = jsonValue.GetString("arn");
}
if(jsonValue.ValueExists("authorization"))
{
m_authorization = jsonValue.GetObject("authorization");
}
if(jsonValue.ValueExists("domainName"))
{
m_domainName = jsonValue.GetString("domainName");
}
if(jsonValue.ValueExists("id"))
{
m_id = jsonValue.GetString("id");
}
if(jsonValue.ValueExists("tags"))
{
Aws::Map<Aws::String, JsonView> tagsJsonMap = jsonValue.GetObject("tags").GetAllObjects();
for(auto& tagsItem : tagsJsonMap)
{
m_tags[tagsItem.first] = tagsItem.second.AsString();
}
}
return *this;
}

View File

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

View File

@@ -0,0 +1,123 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#include <aws/mediapackage-vod/model/DashManifest.h>
#include <aws/core/utils/json/JsonSerializer.h>
#include <utility>
using namespace Aws::Utils::Json;
using namespace Aws::Utils;
namespace Aws
{
namespace MediaPackageVod
{
namespace Model
{
DashManifest::DashManifest() :
m_manifestLayout(ManifestLayout::NOT_SET),
m_manifestLayoutHasBeenSet(false),
m_manifestNameHasBeenSet(false),
m_minBufferTimeSeconds(0),
m_minBufferTimeSecondsHasBeenSet(false),
m_profile(Profile::NOT_SET),
m_profileHasBeenSet(false),
m_streamSelectionHasBeenSet(false)
{
}
DashManifest::DashManifest(JsonView jsonValue) :
m_manifestLayout(ManifestLayout::NOT_SET),
m_manifestLayoutHasBeenSet(false),
m_manifestNameHasBeenSet(false),
m_minBufferTimeSeconds(0),
m_minBufferTimeSecondsHasBeenSet(false),
m_profile(Profile::NOT_SET),
m_profileHasBeenSet(false),
m_streamSelectionHasBeenSet(false)
{
*this = jsonValue;
}
DashManifest& DashManifest::operator =(JsonView jsonValue)
{
if(jsonValue.ValueExists("manifestLayout"))
{
m_manifestLayout = ManifestLayoutMapper::GetManifestLayoutForName(jsonValue.GetString("manifestLayout"));
m_manifestLayoutHasBeenSet = true;
}
if(jsonValue.ValueExists("manifestName"))
{
m_manifestName = jsonValue.GetString("manifestName");
m_manifestNameHasBeenSet = true;
}
if(jsonValue.ValueExists("minBufferTimeSeconds"))
{
m_minBufferTimeSeconds = jsonValue.GetInteger("minBufferTimeSeconds");
m_minBufferTimeSecondsHasBeenSet = true;
}
if(jsonValue.ValueExists("profile"))
{
m_profile = ProfileMapper::GetProfileForName(jsonValue.GetString("profile"));
m_profileHasBeenSet = true;
}
if(jsonValue.ValueExists("streamSelection"))
{
m_streamSelection = jsonValue.GetObject("streamSelection");
m_streamSelectionHasBeenSet = true;
}
return *this;
}
JsonValue DashManifest::Jsonize() const
{
JsonValue payload;
if(m_manifestLayoutHasBeenSet)
{
payload.WithString("manifestLayout", ManifestLayoutMapper::GetNameForManifestLayout(m_manifestLayout));
}
if(m_manifestNameHasBeenSet)
{
payload.WithString("manifestName", m_manifestName);
}
if(m_minBufferTimeSecondsHasBeenSet)
{
payload.WithInteger("minBufferTimeSeconds", m_minBufferTimeSeconds);
}
if(m_profileHasBeenSet)
{
payload.WithString("profile", ProfileMapper::GetNameForProfile(m_profile));
}
if(m_streamSelectionHasBeenSet)
{
payload.WithObject("streamSelection", m_streamSelection.Jsonize());
}
return payload;
}
} // namespace Model
} // namespace MediaPackageVod
} // namespace Aws

View File

@@ -0,0 +1,138 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#include <aws/mediapackage-vod/model/DashPackage.h>
#include <aws/core/utils/json/JsonSerializer.h>
#include <utility>
using namespace Aws::Utils::Json;
using namespace Aws::Utils;
namespace Aws
{
namespace MediaPackageVod
{
namespace Model
{
DashPackage::DashPackage() :
m_dashManifestsHasBeenSet(false),
m_encryptionHasBeenSet(false),
m_periodTriggersHasBeenSet(false),
m_segmentDurationSeconds(0),
m_segmentDurationSecondsHasBeenSet(false),
m_segmentTemplateFormat(SegmentTemplateFormat::NOT_SET),
m_segmentTemplateFormatHasBeenSet(false)
{
}
DashPackage::DashPackage(JsonView jsonValue) :
m_dashManifestsHasBeenSet(false),
m_encryptionHasBeenSet(false),
m_periodTriggersHasBeenSet(false),
m_segmentDurationSeconds(0),
m_segmentDurationSecondsHasBeenSet(false),
m_segmentTemplateFormat(SegmentTemplateFormat::NOT_SET),
m_segmentTemplateFormatHasBeenSet(false)
{
*this = jsonValue;
}
DashPackage& DashPackage::operator =(JsonView jsonValue)
{
if(jsonValue.ValueExists("dashManifests"))
{
Array<JsonView> dashManifestsJsonList = jsonValue.GetArray("dashManifests");
for(unsigned dashManifestsIndex = 0; dashManifestsIndex < dashManifestsJsonList.GetLength(); ++dashManifestsIndex)
{
m_dashManifests.push_back(dashManifestsJsonList[dashManifestsIndex].AsObject());
}
m_dashManifestsHasBeenSet = true;
}
if(jsonValue.ValueExists("encryption"))
{
m_encryption = jsonValue.GetObject("encryption");
m_encryptionHasBeenSet = true;
}
if(jsonValue.ValueExists("periodTriggers"))
{
Array<JsonView> periodTriggersJsonList = jsonValue.GetArray("periodTriggers");
for(unsigned periodTriggersIndex = 0; periodTriggersIndex < periodTriggersJsonList.GetLength(); ++periodTriggersIndex)
{
m_periodTriggers.push_back(__PeriodTriggersElementMapper::Get__PeriodTriggersElementForName(periodTriggersJsonList[periodTriggersIndex].AsString()));
}
m_periodTriggersHasBeenSet = true;
}
if(jsonValue.ValueExists("segmentDurationSeconds"))
{
m_segmentDurationSeconds = jsonValue.GetInteger("segmentDurationSeconds");
m_segmentDurationSecondsHasBeenSet = true;
}
if(jsonValue.ValueExists("segmentTemplateFormat"))
{
m_segmentTemplateFormat = SegmentTemplateFormatMapper::GetSegmentTemplateFormatForName(jsonValue.GetString("segmentTemplateFormat"));
m_segmentTemplateFormatHasBeenSet = true;
}
return *this;
}
JsonValue DashPackage::Jsonize() const
{
JsonValue payload;
if(m_dashManifestsHasBeenSet)
{
Array<JsonValue> dashManifestsJsonList(m_dashManifests.size());
for(unsigned dashManifestsIndex = 0; dashManifestsIndex < dashManifestsJsonList.GetLength(); ++dashManifestsIndex)
{
dashManifestsJsonList[dashManifestsIndex].AsObject(m_dashManifests[dashManifestsIndex].Jsonize());
}
payload.WithArray("dashManifests", std::move(dashManifestsJsonList));
}
if(m_encryptionHasBeenSet)
{
payload.WithObject("encryption", m_encryption.Jsonize());
}
if(m_periodTriggersHasBeenSet)
{
Array<JsonValue> periodTriggersJsonList(m_periodTriggers.size());
for(unsigned periodTriggersIndex = 0; periodTriggersIndex < periodTriggersJsonList.GetLength(); ++periodTriggersIndex)
{
periodTriggersJsonList[periodTriggersIndex].AsString(__PeriodTriggersElementMapper::GetNameFor__PeriodTriggersElement(m_periodTriggers[periodTriggersIndex]));
}
payload.WithArray("periodTriggers", std::move(periodTriggersJsonList));
}
if(m_segmentDurationSecondsHasBeenSet)
{
payload.WithInteger("segmentDurationSeconds", m_segmentDurationSeconds);
}
if(m_segmentTemplateFormatHasBeenSet)
{
payload.WithString("segmentTemplateFormat", SegmentTemplateFormatMapper::GetNameForSegmentTemplateFormat(m_segmentTemplateFormat));
}
return payload;
}
} // namespace Model
} // namespace MediaPackageVod
} // 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/mediapackage-vod/model/DeleteAssetRequest.h>
#include <aws/core/utils/json/JsonSerializer.h>
#include <utility>
using namespace Aws::MediaPackageVod::Model;
using namespace Aws::Utils::Json;
using namespace Aws::Utils;
DeleteAssetRequest::DeleteAssetRequest() :
m_idHasBeenSet(false)
{
}
Aws::String DeleteAssetRequest::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/mediapackage-vod/model/DeleteAssetResult.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::MediaPackageVod::Model;
using namespace Aws::Utils::Json;
using namespace Aws::Utils;
using namespace Aws;
DeleteAssetResult::DeleteAssetResult()
{
}
DeleteAssetResult::DeleteAssetResult(const Aws::AmazonWebServiceResult<JsonValue>& result)
{
*this = result;
}
DeleteAssetResult& DeleteAssetResult::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/mediapackage-vod/model/DeletePackagingConfigurationRequest.h>
#include <aws/core/utils/json/JsonSerializer.h>
#include <utility>
using namespace Aws::MediaPackageVod::Model;
using namespace Aws::Utils::Json;
using namespace Aws::Utils;
DeletePackagingConfigurationRequest::DeletePackagingConfigurationRequest() :
m_idHasBeenSet(false)
{
}
Aws::String DeletePackagingConfigurationRequest::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/mediapackage-vod/model/DeletePackagingConfigurationResult.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::MediaPackageVod::Model;
using namespace Aws::Utils::Json;
using namespace Aws::Utils;
using namespace Aws;
DeletePackagingConfigurationResult::DeletePackagingConfigurationResult()
{
}
DeletePackagingConfigurationResult::DeletePackagingConfigurationResult(const Aws::AmazonWebServiceResult<JsonValue>& result)
{
*this = result;
}
DeletePackagingConfigurationResult& DeletePackagingConfigurationResult::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/mediapackage-vod/model/DeletePackagingGroupRequest.h>
#include <aws/core/utils/json/JsonSerializer.h>
#include <utility>
using namespace Aws::MediaPackageVod::Model;
using namespace Aws::Utils::Json;
using namespace Aws::Utils;
DeletePackagingGroupRequest::DeletePackagingGroupRequest() :
m_idHasBeenSet(false)
{
}
Aws::String DeletePackagingGroupRequest::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/mediapackage-vod/model/DeletePackagingGroupResult.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::MediaPackageVod::Model;
using namespace Aws::Utils::Json;
using namespace Aws::Utils;
using namespace Aws;
DeletePackagingGroupResult::DeletePackagingGroupResult()
{
}
DeletePackagingGroupResult::DeletePackagingGroupResult(const Aws::AmazonWebServiceResult<JsonValue>& result)
{
*this = result;
}
DeletePackagingGroupResult& DeletePackagingGroupResult::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/mediapackage-vod/model/DescribeAssetRequest.h>
#include <aws/core/utils/json/JsonSerializer.h>
#include <utility>
using namespace Aws::MediaPackageVod::Model;
using namespace Aws::Utils::Json;
using namespace Aws::Utils;
DescribeAssetRequest::DescribeAssetRequest() :
m_idHasBeenSet(false)
{
}
Aws::String DescribeAssetRequest::SerializePayload() const
{
return {};
}

View File

@@ -0,0 +1,94 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#include <aws/mediapackage-vod/model/DescribeAssetResult.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::MediaPackageVod::Model;
using namespace Aws::Utils::Json;
using namespace Aws::Utils;
using namespace Aws;
DescribeAssetResult::DescribeAssetResult()
{
}
DescribeAssetResult::DescribeAssetResult(const Aws::AmazonWebServiceResult<JsonValue>& result)
{
*this = result;
}
DescribeAssetResult& DescribeAssetResult::operator =(const Aws::AmazonWebServiceResult<JsonValue>& result)
{
JsonView jsonValue = result.GetPayload().View();
if(jsonValue.ValueExists("arn"))
{
m_arn = jsonValue.GetString("arn");
}
if(jsonValue.ValueExists("createdAt"))
{
m_createdAt = jsonValue.GetString("createdAt");
}
if(jsonValue.ValueExists("egressEndpoints"))
{
Array<JsonView> egressEndpointsJsonList = jsonValue.GetArray("egressEndpoints");
for(unsigned egressEndpointsIndex = 0; egressEndpointsIndex < egressEndpointsJsonList.GetLength(); ++egressEndpointsIndex)
{
m_egressEndpoints.push_back(egressEndpointsJsonList[egressEndpointsIndex].AsObject());
}
}
if(jsonValue.ValueExists("id"))
{
m_id = jsonValue.GetString("id");
}
if(jsonValue.ValueExists("packagingGroupId"))
{
m_packagingGroupId = jsonValue.GetString("packagingGroupId");
}
if(jsonValue.ValueExists("resourceId"))
{
m_resourceId = jsonValue.GetString("resourceId");
}
if(jsonValue.ValueExists("sourceArn"))
{
m_sourceArn = jsonValue.GetString("sourceArn");
}
if(jsonValue.ValueExists("sourceRoleArn"))
{
m_sourceRoleArn = jsonValue.GetString("sourceRoleArn");
}
if(jsonValue.ValueExists("tags"))
{
Aws::Map<Aws::String, JsonView> tagsJsonMap = jsonValue.GetObject("tags").GetAllObjects();
for(auto& tagsItem : tagsJsonMap)
{
m_tags[tagsItem.first] = tagsItem.second.AsString();
}
}
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/mediapackage-vod/model/DescribePackagingConfigurationRequest.h>
#include <aws/core/utils/json/JsonSerializer.h>
#include <utility>
using namespace Aws::MediaPackageVod::Model;
using namespace Aws::Utils::Json;
using namespace Aws::Utils;
DescribePackagingConfigurationRequest::DescribePackagingConfigurationRequest() :
m_idHasBeenSet(false)
{
}
Aws::String DescribePackagingConfigurationRequest::SerializePayload() const
{
return {};
}

View File

@@ -0,0 +1,85 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#include <aws/mediapackage-vod/model/DescribePackagingConfigurationResult.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::MediaPackageVod::Model;
using namespace Aws::Utils::Json;
using namespace Aws::Utils;
using namespace Aws;
DescribePackagingConfigurationResult::DescribePackagingConfigurationResult()
{
}
DescribePackagingConfigurationResult::DescribePackagingConfigurationResult(const Aws::AmazonWebServiceResult<JsonValue>& result)
{
*this = result;
}
DescribePackagingConfigurationResult& DescribePackagingConfigurationResult::operator =(const Aws::AmazonWebServiceResult<JsonValue>& result)
{
JsonView jsonValue = result.GetPayload().View();
if(jsonValue.ValueExists("arn"))
{
m_arn = jsonValue.GetString("arn");
}
if(jsonValue.ValueExists("cmafPackage"))
{
m_cmafPackage = jsonValue.GetObject("cmafPackage");
}
if(jsonValue.ValueExists("dashPackage"))
{
m_dashPackage = jsonValue.GetObject("dashPackage");
}
if(jsonValue.ValueExists("hlsPackage"))
{
m_hlsPackage = jsonValue.GetObject("hlsPackage");
}
if(jsonValue.ValueExists("id"))
{
m_id = jsonValue.GetString("id");
}
if(jsonValue.ValueExists("mssPackage"))
{
m_mssPackage = jsonValue.GetObject("mssPackage");
}
if(jsonValue.ValueExists("packagingGroupId"))
{
m_packagingGroupId = jsonValue.GetString("packagingGroupId");
}
if(jsonValue.ValueExists("tags"))
{
Aws::Map<Aws::String, JsonView> tagsJsonMap = jsonValue.GetObject("tags").GetAllObjects();
for(auto& tagsItem : tagsJsonMap)
{
m_tags[tagsItem.first] = tagsItem.second.AsString();
}
}
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/mediapackage-vod/model/DescribePackagingGroupRequest.h>
#include <aws/core/utils/json/JsonSerializer.h>
#include <utility>
using namespace Aws::MediaPackageVod::Model;
using namespace Aws::Utils::Json;
using namespace Aws::Utils;
DescribePackagingGroupRequest::DescribePackagingGroupRequest() :
m_idHasBeenSet(false)
{
}
Aws::String DescribePackagingGroupRequest::SerializePayload() const
{
return {};
}

View File

@@ -0,0 +1,67 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#include <aws/mediapackage-vod/model/DescribePackagingGroupResult.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::MediaPackageVod::Model;
using namespace Aws::Utils::Json;
using namespace Aws::Utils;
using namespace Aws;
DescribePackagingGroupResult::DescribePackagingGroupResult()
{
}
DescribePackagingGroupResult::DescribePackagingGroupResult(const Aws::AmazonWebServiceResult<JsonValue>& result)
{
*this = result;
}
DescribePackagingGroupResult& DescribePackagingGroupResult::operator =(const Aws::AmazonWebServiceResult<JsonValue>& result)
{
JsonView jsonValue = result.GetPayload().View();
if(jsonValue.ValueExists("arn"))
{
m_arn = jsonValue.GetString("arn");
}
if(jsonValue.ValueExists("authorization"))
{
m_authorization = jsonValue.GetObject("authorization");
}
if(jsonValue.ValueExists("domainName"))
{
m_domainName = jsonValue.GetString("domainName");
}
if(jsonValue.ValueExists("id"))
{
m_id = jsonValue.GetString("id");
}
if(jsonValue.ValueExists("tags"))
{
Aws::Map<Aws::String, JsonView> tagsJsonMap = jsonValue.GetObject("tags").GetAllObjects();
for(auto& tagsItem : tagsJsonMap)
{
m_tags[tagsItem.first] = tagsItem.second.AsString();
}
}
return *this;
}

View File

@@ -0,0 +1,74 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#include <aws/mediapackage-vod/model/EgressEndpoint.h>
#include <aws/core/utils/json/JsonSerializer.h>
#include <utility>
using namespace Aws::Utils::Json;
using namespace Aws::Utils;
namespace Aws
{
namespace MediaPackageVod
{
namespace Model
{
EgressEndpoint::EgressEndpoint() :
m_packagingConfigurationIdHasBeenSet(false),
m_urlHasBeenSet(false)
{
}
EgressEndpoint::EgressEndpoint(JsonView jsonValue) :
m_packagingConfigurationIdHasBeenSet(false),
m_urlHasBeenSet(false)
{
*this = jsonValue;
}
EgressEndpoint& EgressEndpoint::operator =(JsonView jsonValue)
{
if(jsonValue.ValueExists("packagingConfigurationId"))
{
m_packagingConfigurationId = jsonValue.GetString("packagingConfigurationId");
m_packagingConfigurationIdHasBeenSet = true;
}
if(jsonValue.ValueExists("url"))
{
m_url = jsonValue.GetString("url");
m_urlHasBeenSet = true;
}
return *this;
}
JsonValue EgressEndpoint::Jsonize() const
{
JsonValue payload;
if(m_packagingConfigurationIdHasBeenSet)
{
payload.WithString("packagingConfigurationId", m_packagingConfigurationId);
}
if(m_urlHasBeenSet)
{
payload.WithString("url", m_url);
}
return payload;
}
} // namespace Model
} // namespace MediaPackageVod
} // namespace Aws

View File

@@ -0,0 +1,70 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#include <aws/mediapackage-vod/model/EncryptionMethod.h>
#include <aws/core/utils/HashingUtils.h>
#include <aws/core/Globals.h>
#include <aws/core/utils/EnumParseOverflowContainer.h>
using namespace Aws::Utils;
namespace Aws
{
namespace MediaPackageVod
{
namespace Model
{
namespace EncryptionMethodMapper
{
static const int AES_128_HASH = HashingUtils::HashString("AES_128");
static const int SAMPLE_AES_HASH = HashingUtils::HashString("SAMPLE_AES");
EncryptionMethod GetEncryptionMethodForName(const Aws::String& name)
{
int hashCode = HashingUtils::HashString(name.c_str());
if (hashCode == AES_128_HASH)
{
return EncryptionMethod::AES_128;
}
else if (hashCode == SAMPLE_AES_HASH)
{
return EncryptionMethod::SAMPLE_AES;
}
EnumParseOverflowContainer* overflowContainer = Aws::GetEnumOverflowContainer();
if(overflowContainer)
{
overflowContainer->StoreOverflow(hashCode, name);
return static_cast<EncryptionMethod>(hashCode);
}
return EncryptionMethod::NOT_SET;
}
Aws::String GetNameForEncryptionMethod(EncryptionMethod enumValue)
{
switch(enumValue)
{
case EncryptionMethod::AES_128:
return "AES_128";
case EncryptionMethod::SAMPLE_AES:
return "SAMPLE_AES";
default:
EnumParseOverflowContainer* overflowContainer = Aws::GetEnumOverflowContainer();
if(overflowContainer)
{
return overflowContainer->RetrieveOverflow(static_cast<int>(enumValue));
}
return {};
}
}
} // namespace EncryptionMethodMapper
} // namespace Model
} // namespace MediaPackageVod
} // namespace Aws

View File

@@ -0,0 +1,90 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#include <aws/mediapackage-vod/model/HlsEncryption.h>
#include <aws/core/utils/json/JsonSerializer.h>
#include <utility>
using namespace Aws::Utils::Json;
using namespace Aws::Utils;
namespace Aws
{
namespace MediaPackageVod
{
namespace Model
{
HlsEncryption::HlsEncryption() :
m_constantInitializationVectorHasBeenSet(false),
m_encryptionMethod(EncryptionMethod::NOT_SET),
m_encryptionMethodHasBeenSet(false),
m_spekeKeyProviderHasBeenSet(false)
{
}
HlsEncryption::HlsEncryption(JsonView jsonValue) :
m_constantInitializationVectorHasBeenSet(false),
m_encryptionMethod(EncryptionMethod::NOT_SET),
m_encryptionMethodHasBeenSet(false),
m_spekeKeyProviderHasBeenSet(false)
{
*this = jsonValue;
}
HlsEncryption& HlsEncryption::operator =(JsonView jsonValue)
{
if(jsonValue.ValueExists("constantInitializationVector"))
{
m_constantInitializationVector = jsonValue.GetString("constantInitializationVector");
m_constantInitializationVectorHasBeenSet = true;
}
if(jsonValue.ValueExists("encryptionMethod"))
{
m_encryptionMethod = EncryptionMethodMapper::GetEncryptionMethodForName(jsonValue.GetString("encryptionMethod"));
m_encryptionMethodHasBeenSet = true;
}
if(jsonValue.ValueExists("spekeKeyProvider"))
{
m_spekeKeyProvider = jsonValue.GetObject("spekeKeyProvider");
m_spekeKeyProviderHasBeenSet = true;
}
return *this;
}
JsonValue HlsEncryption::Jsonize() const
{
JsonValue payload;
if(m_constantInitializationVectorHasBeenSet)
{
payload.WithString("constantInitializationVector", m_constantInitializationVector);
}
if(m_encryptionMethodHasBeenSet)
{
payload.WithString("encryptionMethod", EncryptionMethodMapper::GetNameForEncryptionMethod(m_encryptionMethod));
}
if(m_spekeKeyProviderHasBeenSet)
{
payload.WithObject("spekeKeyProvider", m_spekeKeyProvider.Jsonize());
}
return payload;
}
} // namespace Model
} // namespace MediaPackageVod
} // namespace Aws

View File

@@ -0,0 +1,141 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#include <aws/mediapackage-vod/model/HlsManifest.h>
#include <aws/core/utils/json/JsonSerializer.h>
#include <utility>
using namespace Aws::Utils::Json;
using namespace Aws::Utils;
namespace Aws
{
namespace MediaPackageVod
{
namespace Model
{
HlsManifest::HlsManifest() :
m_adMarkers(AdMarkers::NOT_SET),
m_adMarkersHasBeenSet(false),
m_includeIframeOnlyStream(false),
m_includeIframeOnlyStreamHasBeenSet(false),
m_manifestNameHasBeenSet(false),
m_programDateTimeIntervalSeconds(0),
m_programDateTimeIntervalSecondsHasBeenSet(false),
m_repeatExtXKey(false),
m_repeatExtXKeyHasBeenSet(false),
m_streamSelectionHasBeenSet(false)
{
}
HlsManifest::HlsManifest(JsonView jsonValue) :
m_adMarkers(AdMarkers::NOT_SET),
m_adMarkersHasBeenSet(false),
m_includeIframeOnlyStream(false),
m_includeIframeOnlyStreamHasBeenSet(false),
m_manifestNameHasBeenSet(false),
m_programDateTimeIntervalSeconds(0),
m_programDateTimeIntervalSecondsHasBeenSet(false),
m_repeatExtXKey(false),
m_repeatExtXKeyHasBeenSet(false),
m_streamSelectionHasBeenSet(false)
{
*this = jsonValue;
}
HlsManifest& HlsManifest::operator =(JsonView jsonValue)
{
if(jsonValue.ValueExists("adMarkers"))
{
m_adMarkers = AdMarkersMapper::GetAdMarkersForName(jsonValue.GetString("adMarkers"));
m_adMarkersHasBeenSet = true;
}
if(jsonValue.ValueExists("includeIframeOnlyStream"))
{
m_includeIframeOnlyStream = jsonValue.GetBool("includeIframeOnlyStream");
m_includeIframeOnlyStreamHasBeenSet = true;
}
if(jsonValue.ValueExists("manifestName"))
{
m_manifestName = jsonValue.GetString("manifestName");
m_manifestNameHasBeenSet = true;
}
if(jsonValue.ValueExists("programDateTimeIntervalSeconds"))
{
m_programDateTimeIntervalSeconds = jsonValue.GetInteger("programDateTimeIntervalSeconds");
m_programDateTimeIntervalSecondsHasBeenSet = true;
}
if(jsonValue.ValueExists("repeatExtXKey"))
{
m_repeatExtXKey = jsonValue.GetBool("repeatExtXKey");
m_repeatExtXKeyHasBeenSet = true;
}
if(jsonValue.ValueExists("streamSelection"))
{
m_streamSelection = jsonValue.GetObject("streamSelection");
m_streamSelectionHasBeenSet = true;
}
return *this;
}
JsonValue HlsManifest::Jsonize() const
{
JsonValue payload;
if(m_adMarkersHasBeenSet)
{
payload.WithString("adMarkers", AdMarkersMapper::GetNameForAdMarkers(m_adMarkers));
}
if(m_includeIframeOnlyStreamHasBeenSet)
{
payload.WithBool("includeIframeOnlyStream", m_includeIframeOnlyStream);
}
if(m_manifestNameHasBeenSet)
{
payload.WithString("manifestName", m_manifestName);
}
if(m_programDateTimeIntervalSecondsHasBeenSet)
{
payload.WithInteger("programDateTimeIntervalSeconds", m_programDateTimeIntervalSeconds);
}
if(m_repeatExtXKeyHasBeenSet)
{
payload.WithBool("repeatExtXKey", m_repeatExtXKey);
}
if(m_streamSelectionHasBeenSet)
{
payload.WithObject("streamSelection", m_streamSelection.Jsonize());
}
return payload;
}
} // namespace Model
} // namespace MediaPackageVod
} // namespace Aws

View File

@@ -0,0 +1,116 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#include <aws/mediapackage-vod/model/HlsPackage.h>
#include <aws/core/utils/json/JsonSerializer.h>
#include <utility>
using namespace Aws::Utils::Json;
using namespace Aws::Utils;
namespace Aws
{
namespace MediaPackageVod
{
namespace Model
{
HlsPackage::HlsPackage() :
m_encryptionHasBeenSet(false),
m_hlsManifestsHasBeenSet(false),
m_segmentDurationSeconds(0),
m_segmentDurationSecondsHasBeenSet(false),
m_useAudioRenditionGroup(false),
m_useAudioRenditionGroupHasBeenSet(false)
{
}
HlsPackage::HlsPackage(JsonView jsonValue) :
m_encryptionHasBeenSet(false),
m_hlsManifestsHasBeenSet(false),
m_segmentDurationSeconds(0),
m_segmentDurationSecondsHasBeenSet(false),
m_useAudioRenditionGroup(false),
m_useAudioRenditionGroupHasBeenSet(false)
{
*this = jsonValue;
}
HlsPackage& HlsPackage::operator =(JsonView jsonValue)
{
if(jsonValue.ValueExists("encryption"))
{
m_encryption = jsonValue.GetObject("encryption");
m_encryptionHasBeenSet = true;
}
if(jsonValue.ValueExists("hlsManifests"))
{
Array<JsonView> hlsManifestsJsonList = jsonValue.GetArray("hlsManifests");
for(unsigned hlsManifestsIndex = 0; hlsManifestsIndex < hlsManifestsJsonList.GetLength(); ++hlsManifestsIndex)
{
m_hlsManifests.push_back(hlsManifestsJsonList[hlsManifestsIndex].AsObject());
}
m_hlsManifestsHasBeenSet = true;
}
if(jsonValue.ValueExists("segmentDurationSeconds"))
{
m_segmentDurationSeconds = jsonValue.GetInteger("segmentDurationSeconds");
m_segmentDurationSecondsHasBeenSet = true;
}
if(jsonValue.ValueExists("useAudioRenditionGroup"))
{
m_useAudioRenditionGroup = jsonValue.GetBool("useAudioRenditionGroup");
m_useAudioRenditionGroupHasBeenSet = true;
}
return *this;
}
JsonValue HlsPackage::Jsonize() const
{
JsonValue payload;
if(m_encryptionHasBeenSet)
{
payload.WithObject("encryption", m_encryption.Jsonize());
}
if(m_hlsManifestsHasBeenSet)
{
Array<JsonValue> hlsManifestsJsonList(m_hlsManifests.size());
for(unsigned hlsManifestsIndex = 0; hlsManifestsIndex < hlsManifestsJsonList.GetLength(); ++hlsManifestsIndex)
{
hlsManifestsJsonList[hlsManifestsIndex].AsObject(m_hlsManifests[hlsManifestsIndex].Jsonize());
}
payload.WithArray("hlsManifests", std::move(hlsManifestsJsonList));
}
if(m_segmentDurationSecondsHasBeenSet)
{
payload.WithInteger("segmentDurationSeconds", m_segmentDurationSeconds);
}
if(m_useAudioRenditionGroupHasBeenSet)
{
payload.WithBool("useAudioRenditionGroup", m_useAudioRenditionGroup);
}
return payload;
}
} // namespace Model
} // namespace MediaPackageVod
} // namespace Aws

View File

@@ -0,0 +1,58 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#include <aws/mediapackage-vod/model/ListAssetsRequest.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::MediaPackageVod::Model;
using namespace Aws::Utils::Json;
using namespace Aws::Utils;
using namespace Aws::Http;
ListAssetsRequest::ListAssetsRequest() :
m_maxResults(0),
m_maxResultsHasBeenSet(false),
m_nextTokenHasBeenSet(false),
m_packagingGroupIdHasBeenSet(false)
{
}
Aws::String ListAssetsRequest::SerializePayload() const
{
return {};
}
void ListAssetsRequest::AddQueryStringParameters(URI& uri) const
{
Aws::StringStream ss;
if(m_maxResultsHasBeenSet)
{
ss << m_maxResults;
uri.AddQueryStringParameter("maxResults", ss.str());
ss.str("");
}
if(m_nextTokenHasBeenSet)
{
ss << m_nextToken;
uri.AddQueryStringParameter("nextToken", ss.str());
ss.str("");
}
if(m_packagingGroupIdHasBeenSet)
{
ss << m_packagingGroupId;
uri.AddQueryStringParameter("packagingGroupId", 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/mediapackage-vod/model/ListAssetsResult.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::MediaPackageVod::Model;
using namespace Aws::Utils::Json;
using namespace Aws::Utils;
using namespace Aws;
ListAssetsResult::ListAssetsResult()
{
}
ListAssetsResult::ListAssetsResult(const Aws::AmazonWebServiceResult<JsonValue>& result)
{
*this = result;
}
ListAssetsResult& ListAssetsResult::operator =(const Aws::AmazonWebServiceResult<JsonValue>& result)
{
JsonView jsonValue = result.GetPayload().View();
if(jsonValue.ValueExists("assets"))
{
Array<JsonView> assetsJsonList = jsonValue.GetArray("assets");
for(unsigned assetsIndex = 0; assetsIndex < assetsJsonList.GetLength(); ++assetsIndex)
{
m_assets.push_back(assetsJsonList[assetsIndex].AsObject());
}
}
if(jsonValue.ValueExists("nextToken"))
{
m_nextToken = jsonValue.GetString("nextToken");
}
return *this;
}

View File

@@ -0,0 +1,58 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#include <aws/mediapackage-vod/model/ListPackagingConfigurationsRequest.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::MediaPackageVod::Model;
using namespace Aws::Utils::Json;
using namespace Aws::Utils;
using namespace Aws::Http;
ListPackagingConfigurationsRequest::ListPackagingConfigurationsRequest() :
m_maxResults(0),
m_maxResultsHasBeenSet(false),
m_nextTokenHasBeenSet(false),
m_packagingGroupIdHasBeenSet(false)
{
}
Aws::String ListPackagingConfigurationsRequest::SerializePayload() const
{
return {};
}
void ListPackagingConfigurationsRequest::AddQueryStringParameters(URI& uri) const
{
Aws::StringStream ss;
if(m_maxResultsHasBeenSet)
{
ss << m_maxResults;
uri.AddQueryStringParameter("maxResults", ss.str());
ss.str("");
}
if(m_nextTokenHasBeenSet)
{
ss << m_nextToken;
uri.AddQueryStringParameter("nextToken", ss.str());
ss.str("");
}
if(m_packagingGroupIdHasBeenSet)
{
ss << m_packagingGroupId;
uri.AddQueryStringParameter("packagingGroupId", ss.str());
ss.str("");
}
}

Some files were not shown because too many files have changed in this diff Show More