/*
 * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
 * 
 * Licensed under the Apache License, Version 2.0 (the "License").
 * You may not use this file except in compliance with the License.
 * A copy of the License is located at
 * 
 *  http://aws.amazon.com/apache2.0
 * 
 * or in the "license" file accompanying this file. This file is distributed
 * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
 * express or implied. See the License for the specific language governing
 * permissions and limitations under the License.
 */
/*
 * Do not modify this file. This file is generated from the mediaconvert-2017-08-29.normal.json service model.
 */
using System;
using System.Collections.Generic;
using System.Xml.Serialization;
using System.Text;
using System.IO;
using System.Net;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
namespace Amazon.MediaConvert.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.
    /// 
    public partial class SpekeKeyProvider
    {
        private string _certificateArn;
        private string _resourceId;
        private List _systemIds = new List();
        private string _url;
        /// 
        /// Gets and sets the property 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.
        /// 
        public string CertificateArn
        {
            get { return this._certificateArn; }
            set { this._certificateArn = value; }
        }
        // Check to see if CertificateArn property is set
        internal bool IsSetCertificateArn()
        {
            return this._certificateArn != null;
        }
        /// 
        /// Gets and sets the property ResourceId. Specify the resource ID that your SPEKE-compliant
        /// key provider uses to identify this content.
        /// 
        public string ResourceId
        {
            get { return this._resourceId; }
            set { this._resourceId = value; }
        }
        // Check to see if ResourceId property is set
        internal bool IsSetResourceId()
        {
            return this._resourceId != null;
        }
        /// 
        /// Gets and sets the property 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.
        /// 
        public List SystemIds
        {
            get { return this._systemIds; }
            set { this._systemIds = value; }
        }
        // Check to see if SystemIds property is set
        internal bool IsSetSystemIds()
        {
            return this._systemIds != null && this._systemIds.Count > 0; 
        }
        /// 
        /// Gets and sets the property Url. Specify the URL to the key server that your SPEKE-compliant
        /// DRM key provider uses to provide keys for encrypting your content.
        /// 
        public string Url
        {
            get { return this._url; }
            set { this._url = value; }
        }
        // Check to see if Url property is set
        internal bool IsSetUrl()
        {
            return this._url != null;
        }
    }
}