/*
* 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 dms-2016-01-01.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.DatabaseMigrationService.Model
{
///
/// Provides information that describes a premigration assessment run that you have started
/// using the StartReplicationTaskAssessmentRun
operation.
///
///
///
/// Some of the information appears based on other operations that can return the ReplicationTaskAssessmentRun
/// object.
///
///
public partial class ReplicationTaskAssessmentRun
{
private ReplicationTaskAssessmentRunProgress _assessmentProgress;
private string _assessmentRunName;
private string _lastFailureMessage;
private string _replicationTaskArn;
private string _replicationTaskAssessmentRunArn;
private DateTime? _replicationTaskAssessmentRunCreationDate;
private string _resultEncryptionMode;
private string _resultKmsKeyArn;
private string _resultLocationBucket;
private string _resultLocationFolder;
private string _serviceAccessRoleArn;
private string _status;
///
/// Gets and sets the property AssessmentProgress.
///
/// Indication of the completion progress for the individual assessments specified to
/// run.
///
///
public ReplicationTaskAssessmentRunProgress AssessmentProgress
{
get { return this._assessmentProgress; }
set { this._assessmentProgress = value; }
}
// Check to see if AssessmentProgress property is set
internal bool IsSetAssessmentProgress()
{
return this._assessmentProgress != null;
}
///
/// Gets and sets the property AssessmentRunName.
///
/// Unique name of the assessment run.
///
///
public string AssessmentRunName
{
get { return this._assessmentRunName; }
set { this._assessmentRunName = value; }
}
// Check to see if AssessmentRunName property is set
internal bool IsSetAssessmentRunName()
{
return this._assessmentRunName != null;
}
///
/// Gets and sets the property LastFailureMessage.
///
/// Last message generated by an individual assessment failure.
///
///
public string LastFailureMessage
{
get { return this._lastFailureMessage; }
set { this._lastFailureMessage = value; }
}
// Check to see if LastFailureMessage property is set
internal bool IsSetLastFailureMessage()
{
return this._lastFailureMessage != null;
}
///
/// Gets and sets the property ReplicationTaskArn.
///
/// ARN of the migration task associated with this premigration assessment run.
///
///
public string ReplicationTaskArn
{
get { return this._replicationTaskArn; }
set { this._replicationTaskArn = value; }
}
// Check to see if ReplicationTaskArn property is set
internal bool IsSetReplicationTaskArn()
{
return this._replicationTaskArn != null;
}
///
/// Gets and sets the property ReplicationTaskAssessmentRunArn.
///
/// Amazon Resource Name (ARN) of this assessment run.
///
///
public string ReplicationTaskAssessmentRunArn
{
get { return this._replicationTaskAssessmentRunArn; }
set { this._replicationTaskAssessmentRunArn = value; }
}
// Check to see if ReplicationTaskAssessmentRunArn property is set
internal bool IsSetReplicationTaskAssessmentRunArn()
{
return this._replicationTaskAssessmentRunArn != null;
}
///
/// Gets and sets the property ReplicationTaskAssessmentRunCreationDate.
///
/// Date on which the assessment run was created using the StartReplicationTaskAssessmentRun
/// operation.
///
///
public DateTime ReplicationTaskAssessmentRunCreationDate
{
get { return this._replicationTaskAssessmentRunCreationDate.GetValueOrDefault(); }
set { this._replicationTaskAssessmentRunCreationDate = value; }
}
// Check to see if ReplicationTaskAssessmentRunCreationDate property is set
internal bool IsSetReplicationTaskAssessmentRunCreationDate()
{
return this._replicationTaskAssessmentRunCreationDate.HasValue;
}
///
/// Gets and sets the property ResultEncryptionMode.
///
/// Encryption mode used to encrypt the assessment run results.
///
///
public string ResultEncryptionMode
{
get { return this._resultEncryptionMode; }
set { this._resultEncryptionMode = value; }
}
// Check to see if ResultEncryptionMode property is set
internal bool IsSetResultEncryptionMode()
{
return this._resultEncryptionMode != null;
}
///
/// Gets and sets the property ResultKmsKeyArn.
///
/// ARN of the KMS encryption key used to encrypt the assessment run results.
///
///
public string ResultKmsKeyArn
{
get { return this._resultKmsKeyArn; }
set { this._resultKmsKeyArn = value; }
}
// Check to see if ResultKmsKeyArn property is set
internal bool IsSetResultKmsKeyArn()
{
return this._resultKmsKeyArn != null;
}
///
/// Gets and sets the property ResultLocationBucket.
///
/// Amazon S3 bucket where DMS stores the results of this assessment run.
///
///
public string ResultLocationBucket
{
get { return this._resultLocationBucket; }
set { this._resultLocationBucket = value; }
}
// Check to see if ResultLocationBucket property is set
internal bool IsSetResultLocationBucket()
{
return this._resultLocationBucket != null;
}
///
/// Gets and sets the property ResultLocationFolder.
///
/// Folder in an Amazon S3 bucket where DMS stores the results of this assessment run.
///
///
public string ResultLocationFolder
{
get { return this._resultLocationFolder; }
set { this._resultLocationFolder = value; }
}
// Check to see if ResultLocationFolder property is set
internal bool IsSetResultLocationFolder()
{
return this._resultLocationFolder != null;
}
///
/// Gets and sets the property ServiceAccessRoleArn.
///
/// ARN of the service role used to start the assessment run using the StartReplicationTaskAssessmentRun
/// operation. The role must allow the iam:PassRole
action.
///
///
public string ServiceAccessRoleArn
{
get { return this._serviceAccessRoleArn; }
set { this._serviceAccessRoleArn = value; }
}
// Check to see if ServiceAccessRoleArn property is set
internal bool IsSetServiceAccessRoleArn()
{
return this._serviceAccessRoleArn != null;
}
///
/// Gets and sets the property Status.
///
/// Assessment run status.
///
///
///
/// This status can have one of the following values:
///
/// -
///
///
"cancelling"
– The assessment run was canceled by the CancelReplicationTaskAssessmentRun
/// operation.
///
/// -
///
///
"deleting"
– The assessment run was deleted by the DeleteReplicationTaskAssessmentRun
/// operation.
///
/// -
///
///
"failed"
– At least one individual assessment completed with a failed
/// status.
///
/// -
///
///
"error-provisioning"
– An internal error occurred while resources were
/// provisioned (during provisioning
status).
///
/// -
///
///
"error-executing"
– An internal error occurred while individual assessments
/// ran (during running
status).
///
/// -
///
///
"invalid state"
– The assessment run is in an unknown state.
///
/// -
///
///
"passed"
– All individual assessments have completed, and none has a
/// failed
status.
///
/// -
///
///
"provisioning"
– Resources required to run individual assessments are
/// being provisioned.
///
/// -
///
///
"running"
– Individual assessments are being run.
///
/// -
///
///
"starting"
– The assessment run is starting, but resources are not yet
/// being provisioned for individual assessments.
///
///
///
public string Status
{
get { return this._status; }
set { this._status = value; }
}
// Check to see if Status property is set
internal bool IsSetStatus()
{
return this._status != null;
}
}
}