Esempio n. 1
0
        /// <summary>
        /// XML Representation for this object
        /// </summary>
        /// <returns>XML String</returns>

        public String ToXML()
        {
            StringBuilder xml = new StringBuilder();

            xml.Append("<ListDomainsResponse xmlns=\"http://sdb.amazonaws.com/doc/2009-04-15/\">");
            if (IsSetListDomainsResult())
            {
                ListDomainsResult listDomainsResult = this.ListDomainsResult;
                xml.Append("<ListDomainsResult>");
                xml.Append(listDomainsResult.ToXMLFragment());
                xml.Append("</ListDomainsResult>");
            }
            if (IsSetResponseMetadata())
            {
                ResponseMetadata responseMetadata = this.ResponseMetadata;
                xml.Append("<ResponseMetadata>");
                xml.Append(responseMetadata.ToXMLFragment());
                xml.Append("</ResponseMetadata>");
            }
            xml.Append("</ListDomainsResponse>");
            return(xml.ToString());
        }
 /// <summary>
 /// Sets the ListDomainsResult property
 /// </summary>
 /// <param name="listDomainsResult">Lists all domains associated with the account. It returns domain names up to the limit set by MaxNumberOfDomains.
 /// A NextToken is returned if there are more than MaxNumberOfDomains domains. Calling ListDomains successive times
 /// with the NextToken returns up to MaxNumberOfDomains more domain names each time.</param>
 /// <returns>this instance</returns>
 public ListDomainsResponse WithListDomainsResult(ListDomainsResult listDomainsResult)
 {
     this.listDomainsResultField = listDomainsResult;
     return this;
 }
Esempio n. 3
0
 /// <summary>
 /// Sets the ListDomainsResult property
 /// </summary>
 /// <param name="listDomainsResult">Lists all domains associated with the account. It returns domain names up to the limit set by MaxNumberOfDomains.
 /// A NextToken is returned if there are more than MaxNumberOfDomains domains. Calling ListDomains successive times
 /// with the NextToken returns up to MaxNumberOfDomains more domain names each time.</param>
 /// <returns>this instance</returns>
 public ListDomainsResponse WithListDomainsResult(ListDomainsResult listDomainsResult)
 {
     this.listDomainsResultField = listDomainsResult;
     return(this);
 }