/*
* Copyright (C) Alibaba Cloud Computing
* All rights reserved.
*
* 版权所有 (C)阿里云计算有限公司
*/
using System;
namespace Aliyun.Api.LOG.Common.Authentication
{
///
/// Represents the credentials used to access Aliyun Open Services.
///
internal class ServiceCredentials
{
///
/// Gets the access ID.
///
public string AccessId { get; private set; }
///
/// Gets the access key.
///
public string AccessKey { get; private set; }
///
/// Initialize an new instance of .
///
/// The access ID.
/// The access key.
public ServiceCredentials(string accessId, string accessKey)
{
if (string.IsNullOrEmpty(accessId))
throw new ArgumentException(Aliyun.Api.LOG.Properties.Resources.ExceptionIfArgumentStringIsNullOrEmpty, "accessId");
AccessId = accessId;
AccessKey = accessKey;
}
}
}