SqlResourceServer
using Relativity.Transfer.Resources;
using System;
using System.Globalization;
namespace Relativity.Transfer
{
public sealed class SqlResourceServer
{
public int ArtifactId { get; set; }
public AsperaCredential AsperaCredential { get; set; }
public string BcpPath { get; set; }
public bool CloudInstance { get; set; }
public string Name { get; set; }
public ResourceServerType ResourceServerType { get; set; }
public string Version { get; set; }
public SqlResourceServer()
{
ArtifactId = 0;
AsperaCredential = null;
BcpPath = null;
CloudInstance = false;
Name = null;
ResourceServerType = null;
Version = null;
}
public SqlResourceServer(int artifactId, AsperaCredential credential, string name, ResourceServerType serverType, string bcpPath, bool cloudInstance)
{
if (artifactId < 1) {
string message = string.Format(CultureInfo.CurrentCulture, CoreStrings.ArtifactOutOfRangeExceptionMessage, "SQL Resource Server");
throw new ArgumentOutOfRangeException("artifactId", message);
}
if (string.IsNullOrEmpty(name))
throw new ArgumentNullException("name");
if (serverType == null)
throw new ArgumentNullException("serverType");
if (string.IsNullOrEmpty(bcpPath))
throw new ArgumentNullException("bcpPath");
ArtifactId = artifactId;
AsperaCredential = credential;
CloudInstance = cloudInstance;
Name = name;
ResourceServerType = serverType;
BcpPath = bcpPath;
}
}
}