using System; using System.Text; using COSXML.Common; using COSXML.Model.Tag; using COSXML.Network; namespace COSXML.Model.Bucket { /// /// 检索 Bucket 是否存在 /// /// public sealed class PutBucketDomainRequest : BucketRequest { private DomainConfiguration domain; public PutBucketDomainRequest(string bucket, DomainConfiguration domain) : base(bucket) { this.method = CosRequestMethod.PUT; this.domain = domain; this.queryParameters.Add("domain", null); } public override Network.RequestBody GetRequestBody() { return GetXmlRequestBody(domain); } } }