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,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