/*
* 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 UpdateProfileJob operation.
/// Modifies the definition of an existing profile job.
///
public partial class UpdateProfileJobRequest : AmazonGlueDataBrewRequest
{
private ProfileConfiguration _configuration;
private string _encryptionKeyArn;
private EncryptionMode _encryptionMode;
private JobSample _jobSample;
private LogSubscription _logSubscription;
private int? _maxCapacity;
private int? _maxRetries;
private string _name;
private S3Location _outputLocation;
private string _roleArn;
private int? _timeout;
private List _validationConfigurations = new List();
///
/// Gets and sets the property Configuration.
///
/// Configuration for profile jobs. Used to select columns, do evaluations, and override
/// default parameters of evaluations. When configuration is null, the profile job will
/// run with default settings.
///
///
public ProfileConfiguration Configuration
{
get { return this._configuration; }
set { this._configuration = value; }
}
// Check to see if Configuration property is set
internal bool IsSetConfiguration()
{
return this._configuration != null;
}
///
/// 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 JobSample.
///
/// Sample configuration for Profile Jobs only. Determines the number of rows on which
/// the Profile job will be executed. If a JobSample value is not provided for profile
/// jobs, the default value will be used. The default value is CUSTOM_ROWS for the mode
/// parameter and 20000 for the size parameter.
///
///
public JobSample JobSample
{
get { return this._jobSample; }
set { this._jobSample = value; }
}
// Check to see if JobSample property is set
internal bool IsSetJobSample()
{
return this._jobSample != 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 compute nodes that DataBrew can use 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 be updated.
///
///
[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 OutputLocation.
///
[AWSProperty(Required=true)]
public S3Location OutputLocation
{
get { return this._outputLocation; }
set { this._outputLocation = value; }
}
// Check to see if OutputLocation property is set
internal bool IsSetOutputLocation()
{
return this._outputLocation != null;
}
///
/// 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;
}
///
/// Gets and sets the property ValidationConfigurations.
///
/// List of validation configurations that are applied to the profile job.
///
///
[AWSProperty(Min=1)]
public List ValidationConfigurations
{
get { return this._validationConfigurations; }
set { this._validationConfigurations = value; }
}
// Check to see if ValidationConfigurations property is set
internal bool IsSetValidationConfigurations()
{
return this._validationConfigurations != null && this._validationConfigurations.Count > 0;
}
}
}