コード例 #1
0
        /// <summary>
        /// XML Representation for this object
        /// </summary>
        /// <returns>XML String</returns>

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

            xml.Append("<SendMessageResponse xmlns=\"http://queue.amazonaws.com/doc/2009-02-01/\">");
            if (IsSetSendMessageResult())
            {
                SendMessageResult sendMessageResult = this.SendMessageResult;
                xml.Append("<SendMessageResult>");
                xml.Append(sendMessageResult.ToXMLFragment());
                xml.Append("</SendMessageResult>");
            }
            if (IsSetResponseMetadata())
            {
                ResponseMetadata responseMetadata = this.ResponseMetadata;
                xml.Append("<ResponseMetadata>");
                xml.Append(responseMetadata.ToXMLFragment());
                xml.Append("</ResponseMetadata>");
            }
            xml.Append("</SendMessageResponse>");
            return(xml.ToString());
        }
コード例 #2
0
 /// <summary>
 /// Sets the SendMessageResult property
 /// </summary>
 /// <param name="sendMessageResult">SendMessageResult property</param>
 /// <returns>this instance</returns>
 public SendMessageResponse WithSendMessageResult(SendMessageResult sendMessageResult)
 {
     this.sendMessageResultField = sendMessageResult;
     return this;
 }
コード例 #3
0
 /// <summary>
 /// Sets the SendMessageResult property
 /// </summary>
 /// <param name="sendMessageResult">SendMessageResult property</param>
 /// <returns>this instance</returns>
 public SendMessageResponse WithSendMessageResult(SendMessageResult sendMessageResult)
 {
     this.sendMessageResultField = sendMessageResult;
     return(this);
 }