/* * 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 backup-2018-11-15.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.Backup.Model { /// /// Contains detailed information about a copy job. /// public partial class CopyJob { private string _accountId; private long? _backupSizeInBytes; private Dictionary _childJobsInState = new Dictionary(); private DateTime? _completionDate; private string _compositeMemberIdentifier; private string _copyJobId; private RecoveryPointCreator _createdBy; private DateTime? _creationDate; private string _destinationBackupVaultArn; private string _destinationRecoveryPointArn; private string _iamRoleArn; private bool? _isParent; private long? _numberOfChildJobs; private string _parentJobId; private string _resourceArn; private string _resourceName; private string _resourceType; private string _sourceBackupVaultArn; private string _sourceRecoveryPointArn; private CopyJobState _state; private string _statusMessage; /// /// Gets and sets the property AccountId. /// /// The account ID that owns the copy job. /// /// public string AccountId { get { return this._accountId; } set { this._accountId = value; } } // Check to see if AccountId property is set internal bool IsSetAccountId() { return this._accountId != null; } /// /// Gets and sets the property BackupSizeInBytes. /// /// The size, in bytes, of a copy job. /// /// public long BackupSizeInBytes { get { return this._backupSizeInBytes.GetValueOrDefault(); } set { this._backupSizeInBytes = value; } } // Check to see if BackupSizeInBytes property is set internal bool IsSetBackupSizeInBytes() { return this._backupSizeInBytes.HasValue; } /// /// Gets and sets the property ChildJobsInState. /// /// This returns the statistics of the included child (nested) copy jobs. /// /// public Dictionary ChildJobsInState { get { return this._childJobsInState; } set { this._childJobsInState = value; } } // Check to see if ChildJobsInState property is set internal bool IsSetChildJobsInState() { return this._childJobsInState != null && this._childJobsInState.Count > 0; } /// /// Gets and sets the property CompletionDate. /// /// The date and time a copy job is completed, in Unix format and Coordinated Universal /// Time (UTC). The value of CompletionDate is accurate to milliseconds. /// For example, the value 1516925490.087 represents Friday, January 26, 2018 12:11:30.087 /// AM. /// /// public DateTime CompletionDate { get { return this._completionDate.GetValueOrDefault(); } set { this._completionDate = value; } } // Check to see if CompletionDate property is set internal bool IsSetCompletionDate() { return this._completionDate.HasValue; } /// /// Gets and sets the property CompositeMemberIdentifier. /// /// This is the identifier of a resource within a composite group, such as nested (child) /// recovery point belonging to a composite (parent) stack. The ID is transferred from /// the /// logical ID within a stack. /// /// public string CompositeMemberIdentifier { get { return this._compositeMemberIdentifier; } set { this._compositeMemberIdentifier = value; } } // Check to see if CompositeMemberIdentifier property is set internal bool IsSetCompositeMemberIdentifier() { return this._compositeMemberIdentifier != null; } /// /// Gets and sets the property CopyJobId. /// /// Uniquely identifies a copy job. /// /// public string CopyJobId { get { return this._copyJobId; } set { this._copyJobId = value; } } // Check to see if CopyJobId property is set internal bool IsSetCopyJobId() { return this._copyJobId != null; } /// /// Gets and sets the property CreatedBy. /// public RecoveryPointCreator CreatedBy { get { return this._createdBy; } set { this._createdBy = value; } } // Check to see if CreatedBy property is set internal bool IsSetCreatedBy() { return this._createdBy != null; } /// /// Gets and sets the property CreationDate. /// /// The date and time a copy job is created, in Unix format and Coordinated Universal /// Time (UTC). The value of CreationDate is accurate to milliseconds. For /// example, the value 1516925490.087 represents Friday, January 26, 2018 12:11:30.087 /// AM. /// /// public DateTime CreationDate { get { return this._creationDate.GetValueOrDefault(); } set { this._creationDate = value; } } // Check to see if CreationDate property is set internal bool IsSetCreationDate() { return this._creationDate.HasValue; } /// /// Gets and sets the property DestinationBackupVaultArn. /// /// An Amazon Resource Name (ARN) that uniquely identifies a destination copy vault; for /// example, arn:aws:backup:us-east-1:123456789012:vault:aBackupVault. /// /// public string DestinationBackupVaultArn { get { return this._destinationBackupVaultArn; } set { this._destinationBackupVaultArn = value; } } // Check to see if DestinationBackupVaultArn property is set internal bool IsSetDestinationBackupVaultArn() { return this._destinationBackupVaultArn != null; } /// /// Gets and sets the property DestinationRecoveryPointArn. /// /// An ARN that uniquely identifies a destination recovery point; for example, arn:aws:backup:us-east-1:123456789012:recovery-point:1EB3B5E7-9EB0-435A-A80B-108B488B0D45. /// /// public string DestinationRecoveryPointArn { get { return this._destinationRecoveryPointArn; } set { this._destinationRecoveryPointArn = value; } } // Check to see if DestinationRecoveryPointArn property is set internal bool IsSetDestinationRecoveryPointArn() { return this._destinationRecoveryPointArn != null; } /// /// Gets and sets the property IamRoleArn. /// /// Specifies the IAM role ARN used to copy the target recovery point; for example, arn:aws:iam::123456789012:role/S3Access. /// /// public string IamRoleArn { get { return this._iamRoleArn; } set { this._iamRoleArn = value; } } // Check to see if IamRoleArn property is set internal bool IsSetIamRoleArn() { return this._iamRoleArn != null; } /// /// Gets and sets the property IsParent. /// /// This is a boolean value indicating this is a parent (composite) copy job. /// /// public bool IsParent { get { return this._isParent.GetValueOrDefault(); } set { this._isParent = value; } } // Check to see if IsParent property is set internal bool IsSetIsParent() { return this._isParent.HasValue; } /// /// Gets and sets the property NumberOfChildJobs. /// /// This is the number of child (nested) copy jobs. /// /// public long NumberOfChildJobs { get { return this._numberOfChildJobs.GetValueOrDefault(); } set { this._numberOfChildJobs = value; } } // Check to see if NumberOfChildJobs property is set internal bool IsSetNumberOfChildJobs() { return this._numberOfChildJobs.HasValue; } /// /// Gets and sets the property ParentJobId. /// /// This uniquely identifies a request to Backup to copy a resource. The return will be /// the parent (composite) job ID. /// /// public string ParentJobId { get { return this._parentJobId; } set { this._parentJobId = value; } } // Check to see if ParentJobId property is set internal bool IsSetParentJobId() { return this._parentJobId != null; } /// /// Gets and sets the property ResourceArn. /// /// The Amazon Web Services resource to be copied; for example, an Amazon Elastic Block /// Store (Amazon EBS) volume or an Amazon Relational Database Service (Amazon RDS) database. /// /// public string ResourceArn { get { return this._resourceArn; } set { this._resourceArn = value; } } // Check to see if ResourceArn property is set internal bool IsSetResourceArn() { return this._resourceArn != null; } /// /// Gets and sets the property ResourceName. /// /// This is the non-unique name of the resource that belongs to the specified backup. /// /// public string ResourceName { get { return this._resourceName; } set { this._resourceName = value; } } // Check to see if ResourceName property is set internal bool IsSetResourceName() { return this._resourceName != null; } /// /// Gets and sets the property ResourceType. /// /// The type of Amazon Web Services resource to be copied; for example, an Amazon Elastic /// Block Store (Amazon EBS) volume or an Amazon Relational Database Service (Amazon RDS) /// database. /// /// public string ResourceType { get { return this._resourceType; } set { this._resourceType = value; } } // Check to see if ResourceType property is set internal bool IsSetResourceType() { return this._resourceType != null; } /// /// Gets and sets the property SourceBackupVaultArn. /// /// An Amazon Resource Name (ARN) that uniquely identifies a source copy vault; for example, /// arn:aws:backup:us-east-1:123456789012:vault:aBackupVault. /// /// public string SourceBackupVaultArn { get { return this._sourceBackupVaultArn; } set { this._sourceBackupVaultArn = value; } } // Check to see if SourceBackupVaultArn property is set internal bool IsSetSourceBackupVaultArn() { return this._sourceBackupVaultArn != null; } /// /// Gets and sets the property SourceRecoveryPointArn. /// /// An ARN that uniquely identifies a source recovery point; for example, arn:aws:backup:us-east-1:123456789012:recovery-point:1EB3B5E7-9EB0-435A-A80B-108B488B0D45. /// /// public string SourceRecoveryPointArn { get { return this._sourceRecoveryPointArn; } set { this._sourceRecoveryPointArn = value; } } // Check to see if SourceRecoveryPointArn property is set internal bool IsSetSourceRecoveryPointArn() { return this._sourceRecoveryPointArn != null; } /// /// Gets and sets the property State. /// /// The current state of a copy job. /// /// public CopyJobState State { get { return this._state; } set { this._state = value; } } // Check to see if State property is set internal bool IsSetState() { return this._state != null; } /// /// Gets and sets the property StatusMessage. /// /// A detailed message explaining the status of the job to copy a resource. /// /// public string StatusMessage { get { return this._statusMessage; } set { this._statusMessage = value; } } // Check to see if StatusMessage property is set internal bool IsSetStatusMessage() { return this._statusMessage != null; } } }