public AmazonS3StorageProfile(JToken node) : base(node)
 {
     if (node["filesPermissionInS3"] != null)
     {
         this._FilesPermissionInS3 = (AmazonS3StorageProfileFilesPermissionLevel)StringEnum.Parse(typeof(AmazonS3StorageProfileFilesPermissionLevel), node["filesPermissionInS3"].Value <string>());
     }
     if (node["s3Region"] != null)
     {
         this._S3Region = node["s3Region"].Value <string>();
     }
     if (node["sseType"] != null)
     {
         this._SseType = node["sseType"].Value <string>();
     }
     if (node["sseKmsKeyId"] != null)
     {
         this._SseKmsKeyId = node["sseKmsKeyId"].Value <string>();
     }
     if (node["signatureType"] != null)
     {
         this._SignatureType = node["signatureType"].Value <string>();
     }
     if (node["endPoint"] != null)
     {
         this._EndPoint = node["endPoint"].Value <string>();
     }
 }
Пример #2
0
        public AmazonS3StorageExportJobData(XmlElement node) : base(node)
        {
            foreach (XmlElement propertyNode in node.ChildNodes)
            {
                switch (propertyNode.Name)
                {
                case "filesPermissionInS3":
                    this._FilesPermissionInS3 = (AmazonS3StorageProfileFilesPermissionLevel)StringEnum.Parse(typeof(AmazonS3StorageProfileFilesPermissionLevel), propertyNode.InnerText);
                    continue;

                case "s3Region":
                    this._S3Region = propertyNode.InnerText;
                    continue;

                case "sseType":
                    this._SseType = propertyNode.InnerText;
                    continue;

                case "sseKmsKeyId":
                    this._SseKmsKeyId = propertyNode.InnerText;
                    continue;

                case "signatureType":
                    this._SignatureType = propertyNode.InnerText;
                    continue;

                case "endPoint":
                    this._EndPoint = propertyNode.InnerText;
                    continue;
                }
            }
        }