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

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

            xml.Append("<DescribeKeyPairsResponse xmlns=\"http://ec2.amazonaws.com/doc/2008-12-01/\">");
            if (IsSetResponseMetadata())
            {
                ResponseMetadata responseMetadata = this.ResponseMetadata;
                xml.Append("<ResponseMetadata>");
                xml.Append(responseMetadata.ToXMLFragment());
                xml.Append("</ResponseMetadata>");
            }
            if (IsSetDescribeKeyPairsResult())
            {
                DescribeKeyPairsResult describeKeyPairsResult = this.DescribeKeyPairsResult;
                xml.Append("<DescribeKeyPairsResult>");
                xml.Append(describeKeyPairsResult.ToXMLFragment());
                xml.Append("</DescribeKeyPairsResult>");
            }
            xml.Append("</DescribeKeyPairsResponse>");
            return(xml.ToString());
        }
 /// <summary>
 /// Sets the DescribeKeyPairsResult property
 /// </summary>
 /// <param name="describeKeyPairsResult">DescribeKeyPairsResult property</param>
 /// <returns>this instance</returns>
 public DescribeKeyPairsResponse WithDescribeKeyPairsResult(DescribeKeyPairsResult describeKeyPairsResult)
 {
     this.describeKeyPairsResultField = describeKeyPairsResult;
     return this;
 }
Exemplo n.º 3
0
 /// <summary>
 /// Sets the DescribeKeyPairsResult property
 /// </summary>
 /// <param name="describeKeyPairsResult">DescribeKeyPairsResult property</param>
 /// <returns>this instance</returns>
 public DescribeKeyPairsResponse WithDescribeKeyPairsResult(DescribeKeyPairsResult describeKeyPairsResult)
 {
     this.describeKeyPairsResultField = describeKeyPairsResult;
     return(this);
 }