/// <summary> /// XML Representation for this object /// </summary> /// <returns>XML String</returns> public String ToXML() { StringBuilder xml = new StringBuilder(); xml.Append("<CreateKeyPairResponse 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 (IsSetCreateKeyPairResult()) { CreateKeyPairResult createKeyPairResult = this.CreateKeyPairResult; xml.Append("<CreateKeyPairResult>"); xml.Append(createKeyPairResult.ToXMLFragment()); xml.Append("</CreateKeyPairResult>"); } xml.Append("</CreateKeyPairResponse>"); return(xml.ToString()); }
/// <summary> /// Sets the CreateKeyPairResult property /// </summary> /// <param name="createKeyPairResult">CreateKeyPairResult property</param> /// <returns>this instance</returns> public CreateKeyPairResponse WithCreateKeyPairResult(CreateKeyPairResult createKeyPairResult) { this.createKeyPairResultField = createKeyPairResult; return this; }
/// <summary> /// Sets the CreateKeyPairResult property /// </summary> /// <param name="createKeyPairResult">CreateKeyPairResult property</param> /// <returns>this instance</returns> public CreateKeyPairResponse WithCreateKeyPairResult(CreateKeyPairResult createKeyPairResult) { this.createKeyPairResultField = createKeyPairResult; return(this); }