/// <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()); }
/// <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; }
/// <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); }