/// <summary> /// XML Representation for this object /// </summary> /// <returns>XML String</returns> public String ToXML() { StringBuilder xml = new StringBuilder(); xml.Append("<CreateQueueResponse xmlns=\"http://queue.amazonaws.com/doc/2009-02-01/\">"); if (IsSetCreateQueueResult()) { CreateQueueResult createQueueResult = this.CreateQueueResult; xml.Append("<CreateQueueResult>"); xml.Append(createQueueResult.ToXMLFragment()); xml.Append("</CreateQueueResult>"); } if (IsSetResponseMetadata()) { ResponseMetadata responseMetadata = this.ResponseMetadata; xml.Append("<ResponseMetadata>"); xml.Append(responseMetadata.ToXMLFragment()); xml.Append("</ResponseMetadata>"); } xml.Append("</CreateQueueResponse>"); return(xml.ToString()); }
/// <summary> /// Sets the CreateQueueResult property /// </summary> /// <param name="createQueueResult">CreateQueueResult property</param> /// <returns>this instance</returns> public CreateQueueResponse WithCreateQueueResult(CreateQueueResult createQueueResult) { this.createQueueResultField = createQueueResult; return this; }
/// <summary> /// Sets the CreateQueueResult property /// </summary> /// <param name="createQueueResult">CreateQueueResult property</param> /// <returns>this instance</returns> public CreateQueueResponse WithCreateQueueResult(CreateQueueResult createQueueResult) { this.createQueueResultField = createQueueResult; return(this); }