289 lines
11 KiB
C++
289 lines
11 KiB
C++
/**
|
|
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
|
* SPDX-License-Identifier: Apache-2.0.
|
|
*/
|
|
|
|
#pragma once
|
|
#include <aws/mediaconvert/MediaConvert_EXPORTS.h>
|
|
#include <aws/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 MediaConvert
|
|
{
|
|
namespace Model
|
|
{
|
|
|
|
/**
|
|
* If your output group type is HLS, DASH, or Microsoft Smooth, use these settings
|
|
* when doing DRM encryption with a SPEKE-compliant key provider. If your output
|
|
* group type is CMAF, use the SpekeKeyProviderCmaf settings instead.<p><h3>See
|
|
* Also:</h3> <a
|
|
* href="http://docs.aws.amazon.com/goto/WebAPI/mediaconvert-2017-08-29/SpekeKeyProvider">AWS
|
|
* API Reference</a></p>
|
|
*/
|
|
class AWS_MEDIACONVERT_API SpekeKeyProvider
|
|
{
|
|
public:
|
|
SpekeKeyProvider();
|
|
SpekeKeyProvider(Aws::Utils::Json::JsonView jsonValue);
|
|
SpekeKeyProvider& operator=(Aws::Utils::Json::JsonView jsonValue);
|
|
Aws::Utils::Json::JsonValue Jsonize() const;
|
|
|
|
|
|
/**
|
|
* If you want your key provider to encrypt the content keys that it provides to
|
|
* MediaConvert, set up a certificate with a master key using AWS Certificate
|
|
* Manager. Specify the certificate's Amazon Resource Name (ARN) here.
|
|
*/
|
|
inline const Aws::String& GetCertificateArn() const{ return m_certificateArn; }
|
|
|
|
/**
|
|
* If you want your key provider to encrypt the content keys that it provides to
|
|
* MediaConvert, set up a certificate with a master key using AWS Certificate
|
|
* Manager. Specify the certificate's Amazon Resource Name (ARN) here.
|
|
*/
|
|
inline bool CertificateArnHasBeenSet() const { return m_certificateArnHasBeenSet; }
|
|
|
|
/**
|
|
* If you want your key provider to encrypt the content keys that it provides to
|
|
* MediaConvert, set up a certificate with a master key using AWS Certificate
|
|
* Manager. Specify the certificate's Amazon Resource Name (ARN) here.
|
|
*/
|
|
inline void SetCertificateArn(const Aws::String& value) { m_certificateArnHasBeenSet = true; m_certificateArn = value; }
|
|
|
|
/**
|
|
* If you want your key provider to encrypt the content keys that it provides to
|
|
* MediaConvert, set up a certificate with a master key using AWS Certificate
|
|
* Manager. Specify the certificate's Amazon Resource Name (ARN) here.
|
|
*/
|
|
inline void SetCertificateArn(Aws::String&& value) { m_certificateArnHasBeenSet = true; m_certificateArn = std::move(value); }
|
|
|
|
/**
|
|
* If you want your key provider to encrypt the content keys that it provides to
|
|
* MediaConvert, set up a certificate with a master key using AWS Certificate
|
|
* Manager. Specify the certificate's Amazon Resource Name (ARN) here.
|
|
*/
|
|
inline void SetCertificateArn(const char* value) { m_certificateArnHasBeenSet = true; m_certificateArn.assign(value); }
|
|
|
|
/**
|
|
* If you want your key provider to encrypt the content keys that it provides to
|
|
* MediaConvert, set up a certificate with a master key using AWS Certificate
|
|
* Manager. Specify the certificate's Amazon Resource Name (ARN) here.
|
|
*/
|
|
inline SpekeKeyProvider& WithCertificateArn(const Aws::String& value) { SetCertificateArn(value); return *this;}
|
|
|
|
/**
|
|
* If you want your key provider to encrypt the content keys that it provides to
|
|
* MediaConvert, set up a certificate with a master key using AWS Certificate
|
|
* Manager. Specify the certificate's Amazon Resource Name (ARN) here.
|
|
*/
|
|
inline SpekeKeyProvider& WithCertificateArn(Aws::String&& value) { SetCertificateArn(std::move(value)); return *this;}
|
|
|
|
/**
|
|
* If you want your key provider to encrypt the content keys that it provides to
|
|
* MediaConvert, set up a certificate with a master key using AWS Certificate
|
|
* Manager. Specify the certificate's Amazon Resource Name (ARN) here.
|
|
*/
|
|
inline SpekeKeyProvider& WithCertificateArn(const char* value) { SetCertificateArn(value); return *this;}
|
|
|
|
|
|
/**
|
|
* Specify the resource ID that your SPEKE-compliant key provider uses to identify
|
|
* this content.
|
|
*/
|
|
inline const Aws::String& GetResourceId() const{ return m_resourceId; }
|
|
|
|
/**
|
|
* Specify the resource ID that your SPEKE-compliant key provider uses to identify
|
|
* this content.
|
|
*/
|
|
inline bool ResourceIdHasBeenSet() const { return m_resourceIdHasBeenSet; }
|
|
|
|
/**
|
|
* Specify the resource ID that your SPEKE-compliant key provider uses to identify
|
|
* this content.
|
|
*/
|
|
inline void SetResourceId(const Aws::String& value) { m_resourceIdHasBeenSet = true; m_resourceId = value; }
|
|
|
|
/**
|
|
* Specify the resource ID that your SPEKE-compliant key provider uses to identify
|
|
* this content.
|
|
*/
|
|
inline void SetResourceId(Aws::String&& value) { m_resourceIdHasBeenSet = true; m_resourceId = std::move(value); }
|
|
|
|
/**
|
|
* Specify the resource ID that your SPEKE-compliant key provider uses to identify
|
|
* this content.
|
|
*/
|
|
inline void SetResourceId(const char* value) { m_resourceIdHasBeenSet = true; m_resourceId.assign(value); }
|
|
|
|
/**
|
|
* Specify the resource ID that your SPEKE-compliant key provider uses to identify
|
|
* this content.
|
|
*/
|
|
inline SpekeKeyProvider& WithResourceId(const Aws::String& value) { SetResourceId(value); return *this;}
|
|
|
|
/**
|
|
* Specify the resource ID that your SPEKE-compliant key provider uses to identify
|
|
* this content.
|
|
*/
|
|
inline SpekeKeyProvider& WithResourceId(Aws::String&& value) { SetResourceId(std::move(value)); return *this;}
|
|
|
|
/**
|
|
* Specify the resource ID that your SPEKE-compliant key provider uses to identify
|
|
* this content.
|
|
*/
|
|
inline SpekeKeyProvider& WithResourceId(const char* value) { SetResourceId(value); return *this;}
|
|
|
|
|
|
/**
|
|
* Relates to SPEKE implementation. DRM system identifiers. DASH output groups
|
|
* support a max of two system ids. Other group types support one system id. See
|
|
|
|
* https://dashif.org/identifiers/content_protection/ for more details.
|
|
*/
|
|
inline const Aws::Vector<Aws::String>& GetSystemIds() const{ return m_systemIds; }
|
|
|
|
/**
|
|
* Relates to SPEKE implementation. DRM system identifiers. DASH output groups
|
|
* support a max of two system ids. Other group types support one system id. See
|
|
|
|
* https://dashif.org/identifiers/content_protection/ for more details.
|
|
*/
|
|
inline bool SystemIdsHasBeenSet() const { return m_systemIdsHasBeenSet; }
|
|
|
|
/**
|
|
* Relates to SPEKE implementation. DRM system identifiers. DASH output groups
|
|
* support a max of two system ids. Other group types support one system id. See
|
|
|
|
* https://dashif.org/identifiers/content_protection/ for more details.
|
|
*/
|
|
inline void SetSystemIds(const Aws::Vector<Aws::String>& value) { m_systemIdsHasBeenSet = true; m_systemIds = value; }
|
|
|
|
/**
|
|
* Relates to SPEKE implementation. DRM system identifiers. DASH output groups
|
|
* support a max of two system ids. Other group types support one system id. See
|
|
|
|
* https://dashif.org/identifiers/content_protection/ for more details.
|
|
*/
|
|
inline void SetSystemIds(Aws::Vector<Aws::String>&& value) { m_systemIdsHasBeenSet = true; m_systemIds = std::move(value); }
|
|
|
|
/**
|
|
* Relates to SPEKE implementation. DRM system identifiers. DASH output groups
|
|
* support a max of two system ids. Other group types support one system id. See
|
|
|
|
* https://dashif.org/identifiers/content_protection/ for more details.
|
|
*/
|
|
inline SpekeKeyProvider& WithSystemIds(const Aws::Vector<Aws::String>& value) { SetSystemIds(value); return *this;}
|
|
|
|
/**
|
|
* Relates to SPEKE implementation. DRM system identifiers. DASH output groups
|
|
* support a max of two system ids. Other group types support one system id. See
|
|
|
|
* https://dashif.org/identifiers/content_protection/ for more details.
|
|
*/
|
|
inline SpekeKeyProvider& WithSystemIds(Aws::Vector<Aws::String>&& value) { SetSystemIds(std::move(value)); return *this;}
|
|
|
|
/**
|
|
* Relates to SPEKE implementation. DRM system identifiers. DASH output groups
|
|
* support a max of two system ids. Other group types support one system id. See
|
|
|
|
* https://dashif.org/identifiers/content_protection/ for more details.
|
|
*/
|
|
inline SpekeKeyProvider& AddSystemIds(const Aws::String& value) { m_systemIdsHasBeenSet = true; m_systemIds.push_back(value); return *this; }
|
|
|
|
/**
|
|
* Relates to SPEKE implementation. DRM system identifiers. DASH output groups
|
|
* support a max of two system ids. Other group types support one system id. See
|
|
|
|
* https://dashif.org/identifiers/content_protection/ for more details.
|
|
*/
|
|
inline SpekeKeyProvider& AddSystemIds(Aws::String&& value) { m_systemIdsHasBeenSet = true; m_systemIds.push_back(std::move(value)); return *this; }
|
|
|
|
/**
|
|
* Relates to SPEKE implementation. DRM system identifiers. DASH output groups
|
|
* support a max of two system ids. Other group types support one system id. See
|
|
|
|
* https://dashif.org/identifiers/content_protection/ for more details.
|
|
*/
|
|
inline SpekeKeyProvider& AddSystemIds(const char* value) { m_systemIdsHasBeenSet = true; m_systemIds.push_back(value); return *this; }
|
|
|
|
|
|
/**
|
|
* Specify the URL to the key server that your SPEKE-compliant DRM key provider
|
|
* uses to provide keys for encrypting your content.
|
|
*/
|
|
inline const Aws::String& GetUrl() const{ return m_url; }
|
|
|
|
/**
|
|
* Specify the URL to the key server that your SPEKE-compliant DRM key provider
|
|
* uses to provide keys for encrypting your content.
|
|
*/
|
|
inline bool UrlHasBeenSet() const { return m_urlHasBeenSet; }
|
|
|
|
/**
|
|
* Specify the URL to the key server that your SPEKE-compliant DRM key provider
|
|
* uses to provide keys for encrypting your content.
|
|
*/
|
|
inline void SetUrl(const Aws::String& value) { m_urlHasBeenSet = true; m_url = value; }
|
|
|
|
/**
|
|
* Specify the URL to the key server that your SPEKE-compliant DRM key provider
|
|
* uses to provide keys for encrypting your content.
|
|
*/
|
|
inline void SetUrl(Aws::String&& value) { m_urlHasBeenSet = true; m_url = std::move(value); }
|
|
|
|
/**
|
|
* Specify the URL to the key server that your SPEKE-compliant DRM key provider
|
|
* uses to provide keys for encrypting your content.
|
|
*/
|
|
inline void SetUrl(const char* value) { m_urlHasBeenSet = true; m_url.assign(value); }
|
|
|
|
/**
|
|
* Specify the URL to the key server that your SPEKE-compliant DRM key provider
|
|
* uses to provide keys for encrypting your content.
|
|
*/
|
|
inline SpekeKeyProvider& WithUrl(const Aws::String& value) { SetUrl(value); return *this;}
|
|
|
|
/**
|
|
* Specify the URL to the key server that your SPEKE-compliant DRM key provider
|
|
* uses to provide keys for encrypting your content.
|
|
*/
|
|
inline SpekeKeyProvider& WithUrl(Aws::String&& value) { SetUrl(std::move(value)); return *this;}
|
|
|
|
/**
|
|
* Specify the URL to the key server that your SPEKE-compliant DRM key provider
|
|
* uses to provide keys for encrypting your content.
|
|
*/
|
|
inline SpekeKeyProvider& WithUrl(const char* value) { SetUrl(value); return *this;}
|
|
|
|
private:
|
|
|
|
Aws::String m_certificateArn;
|
|
bool m_certificateArnHasBeenSet;
|
|
|
|
Aws::String m_resourceId;
|
|
bool m_resourceIdHasBeenSet;
|
|
|
|
Aws::Vector<Aws::String> m_systemIds;
|
|
bool m_systemIdsHasBeenSet;
|
|
|
|
Aws::String m_url;
|
|
bool m_urlHasBeenSet;
|
|
};
|
|
|
|
} // namespace Model
|
|
} // namespace MediaConvert
|
|
} // namespace Aws
|