/// <summary> /// XML Representation for this object /// </summary> /// <returns>XML String</returns> public String ToXML() { StringBuilder xml = new StringBuilder(); xml.Append("<RunInstancesResponse 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 (IsSetRunInstancesResult()) { RunInstancesResult runInstancesResult = this.RunInstancesResult; xml.Append("<RunInstancesResult>"); xml.Append(runInstancesResult.ToXMLFragment()); xml.Append("</RunInstancesResult>"); } xml.Append("</RunInstancesResponse>"); return(xml.ToString()); }
/// <summary> /// Sets the RunInstancesResult property /// </summary> /// <param name="runInstancesResult">RunInstancesResult property</param> /// <returns>this instance</returns> public RunInstancesResponse WithRunInstancesResult(RunInstancesResult runInstancesResult) { this.runInstancesResultField = runInstancesResult; return this; }
/// <summary> /// Sets the RunInstancesResult property /// </summary> /// <param name="runInstancesResult">RunInstancesResult property</param> /// <returns>this instance</returns> public RunInstancesResponse WithRunInstancesResult(RunInstancesResult runInstancesResult) { this.runInstancesResultField = runInstancesResult; return(this); }