/*
* 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-gateway-2021-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.BackupGateway.Model
{
///
/// A virtual machine that is on a hypervisor.
///
public partial class VirtualMachine
{
private string _hostName;
private string _hypervisorId;
private DateTime? _lastBackupDate;
private string _name;
private string _path;
private string _resourceArn;
///
/// Gets and sets the property HostName.
///
/// The host name of the virtual machine.
///
///
[AWSProperty(Min=1, Max=100)]
public string HostName
{
get { return this._hostName; }
set { this._hostName = value; }
}
// Check to see if HostName property is set
internal bool IsSetHostName()
{
return this._hostName != null;
}
///
/// Gets and sets the property HypervisorId.
///
/// The ID of the virtual machine's hypervisor.
///
///
public string HypervisorId
{
get { return this._hypervisorId; }
set { this._hypervisorId = value; }
}
// Check to see if HypervisorId property is set
internal bool IsSetHypervisorId()
{
return this._hypervisorId != null;
}
///
/// Gets and sets the property LastBackupDate.
///
/// The most recent date a virtual machine was backed up, in Unix format and UTC time.
///
///
public DateTime LastBackupDate
{
get { return this._lastBackupDate.GetValueOrDefault(); }
set { this._lastBackupDate = value; }
}
// Check to see if LastBackupDate property is set
internal bool IsSetLastBackupDate()
{
return this._lastBackupDate.HasValue;
}
///
/// Gets and sets the property Name.
///
/// The name of the virtual machine.
///
///
[AWSProperty(Min=1, Max=100)]
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 Path.
///
/// The path of the virtual machine.
///
///
[AWSProperty(Min=1, Max=4096)]
public string Path
{
get { return this._path; }
set { this._path = value; }
}
// Check to see if Path property is set
internal bool IsSetPath()
{
return this._path != null;
}
///
/// Gets and sets the property ResourceArn.
///
/// The Amazon Resource Name (ARN) of the virtual machine. For example, arn:aws:backup-gateway:us-west-1:0000000000000:vm/vm-0000ABCDEFGIJKL
.
///
///
[AWSProperty(Min=50, Max=500)]
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;
}
}
}