/* * 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 databrew-2017-07-25.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.GlueDataBrew.Model { /// /// Container for the parameters to the UpdateRecipeJob operation. /// Modifies the definition of an existing DataBrew recipe job. /// public partial class UpdateRecipeJobRequest : AmazonGlueDataBrewRequest { private List _databaseOutputs = new List(); private List _dataCatalogOutputs = new List(); private string _encryptionKeyArn; private EncryptionMode _encryptionMode; private LogSubscription _logSubscription; private int? _maxCapacity; private int? _maxRetries; private string _name; private List _outputs = new List(); private string _roleArn; private int? _timeout; /// /// Gets and sets the property DatabaseOutputs. /// /// Represents a list of JDBC database output objects which defines the output destination /// for a DataBrew recipe job to write into. /// /// [AWSProperty(Min=1)] public List DatabaseOutputs { get { return this._databaseOutputs; } set { this._databaseOutputs = value; } } // Check to see if DatabaseOutputs property is set internal bool IsSetDatabaseOutputs() { return this._databaseOutputs != null && this._databaseOutputs.Count > 0; } /// /// Gets and sets the property DataCatalogOutputs. /// /// One or more artifacts that represent the Glue Data Catalog output from running the /// job. /// /// [AWSProperty(Min=1)] public List DataCatalogOutputs { get { return this._dataCatalogOutputs; } set { this._dataCatalogOutputs = value; } } // Check to see if DataCatalogOutputs property is set internal bool IsSetDataCatalogOutputs() { return this._dataCatalogOutputs != null && this._dataCatalogOutputs.Count > 0; } /// /// Gets and sets the property EncryptionKeyArn. /// /// The Amazon Resource Name (ARN) of an encryption key that is used to protect the job. /// /// [AWSProperty(Min=20, Max=2048)] public string EncryptionKeyArn { get { return this._encryptionKeyArn; } set { this._encryptionKeyArn = value; } } // Check to see if EncryptionKeyArn property is set internal bool IsSetEncryptionKeyArn() { return this._encryptionKeyArn != null; } /// /// Gets and sets the property EncryptionMode. /// /// The encryption mode for the job, which can be one of the following: /// ///
  • /// /// SSE-KMS - Server-side encryption with keys managed by KMS. /// ///
  • /// /// SSE-S3 - Server-side encryption with keys managed by Amazon S3. /// ///
///
public EncryptionMode EncryptionMode { get { return this._encryptionMode; } set { this._encryptionMode = value; } } // Check to see if EncryptionMode property is set internal bool IsSetEncryptionMode() { return this._encryptionMode != null; } /// /// Gets and sets the property LogSubscription. /// /// Enables or disables Amazon CloudWatch logging for the job. If logging is enabled, /// CloudWatch writes one log stream for each job run. /// /// public LogSubscription LogSubscription { get { return this._logSubscription; } set { this._logSubscription = value; } } // Check to see if LogSubscription property is set internal bool IsSetLogSubscription() { return this._logSubscription != null; } /// /// Gets and sets the property MaxCapacity. /// /// The maximum number of nodes that DataBrew can consume when the job processes data. /// /// public int MaxCapacity { get { return this._maxCapacity.GetValueOrDefault(); } set { this._maxCapacity = value; } } // Check to see if MaxCapacity property is set internal bool IsSetMaxCapacity() { return this._maxCapacity.HasValue; } /// /// Gets and sets the property MaxRetries. /// /// The maximum number of times to retry the job after a job run fails. /// /// [AWSProperty(Min=0)] public int MaxRetries { get { return this._maxRetries.GetValueOrDefault(); } set { this._maxRetries = value; } } // Check to see if MaxRetries property is set internal bool IsSetMaxRetries() { return this._maxRetries.HasValue; } /// /// Gets and sets the property Name. /// /// The name of the job to update. /// /// [AWSProperty(Required=true, Min=1, Max=240)] public string Name { get { return this._name; } set { this._name = value; } } // Check to see if Name property is set internal bool IsSetName() { return this._name != null; } /// /// Gets and sets the property Outputs. /// /// One or more artifacts that represent the output from running the job. /// /// [AWSProperty(Min=1)] public List Outputs { get { return this._outputs; } set { this._outputs = value; } } // Check to see if Outputs property is set internal bool IsSetOutputs() { return this._outputs != null && this._outputs.Count > 0; } /// /// Gets and sets the property RoleArn. /// /// The Amazon Resource Name (ARN) of the Identity and Access Management (IAM) role to /// be assumed when DataBrew runs the job. /// /// [AWSProperty(Required=true, Min=20, Max=2048)] public string RoleArn { get { return this._roleArn; } set { this._roleArn = value; } } // Check to see if RoleArn property is set internal bool IsSetRoleArn() { return this._roleArn != null; } /// /// Gets and sets the property Timeout. /// /// The job's timeout in minutes. A job that attempts to run longer than this timeout /// period ends with a status of TIMEOUT. /// /// [AWSProperty(Min=0)] public int Timeout { get { return this._timeout.GetValueOrDefault(); } set { this._timeout = value; } } // Check to see if Timeout property is set internal bool IsSetTimeout() { return this._timeout.HasValue; } } }