/** * <p> * Reports whether the Amazon Redshift cluster has finished applying any HSM settings changes specified in a modify * cluster command. * </p> * <p> * Values: active, applying * </p> * * @param status * Reports whether the Amazon Redshift cluster has finished applying any HSM settings changes specified in a * modify cluster command.</p> * <p> * Values: active, applying * @return Returns a reference to this object so that method calls can be chained together. */ public HsmStatus withStatus(String status) { setStatus(status); return this; }
public HsmStatus unmarshall(StaxUnmarshallerContext context) throws Exception { HsmStatus hsmStatus = new HsmStatus(); int originalDepth = context.getCurrentDepth(); int targetDepth = originalDepth + 1; if (context.isStartOfDocument()) targetDepth += 1; while (true) { XMLEvent xmlEvent = context.nextEvent(); if (xmlEvent.isEndDocument()) return hsmStatus; if (xmlEvent.isAttribute() || xmlEvent.isStartElement()) { if (context.testExpression("HsmClientCertificateIdentifier", targetDepth)) { hsmStatus.setHsmClientCertificateIdentifier(StringStaxUnmarshaller.getInstance().unmarshall(context)); continue; } if (context.testExpression("HsmConfigurationIdentifier", targetDepth)) { hsmStatus.setHsmConfigurationIdentifier(StringStaxUnmarshaller.getInstance().unmarshall(context)); continue; } if (context.testExpression("Status", targetDepth)) { hsmStatus.setStatus(StringStaxUnmarshaller.getInstance().unmarshall(context)); continue; } } else if (xmlEvent.isEndElement()) { if (context.getCurrentDepth() < originalDepth) { return hsmStatus; } } } }
/** * <p> * Reports whether the Amazon Redshift cluster has finished applying any HSM settings changes specified in a modify * cluster command. * </p> * <p> * Values: active, applying * </p> * * @param status * Reports whether the Amazon Redshift cluster has finished applying any HSM settings changes specified in a * modify cluster command.</p> * <p> * Values: active, applying * @return Returns a reference to this object so that method calls can be chained together. */ public HsmStatus withStatus(String status) { setStatus(status); return this; }
public HsmStatus unmarshall(StaxUnmarshallerContext context) throws Exception { HsmStatus hsmStatus = new HsmStatus(); int originalDepth = context.getCurrentDepth(); int targetDepth = originalDepth + 1; if (context.isStartOfDocument()) targetDepth += 1; while (true) { XMLEvent xmlEvent = context.nextEvent(); if (xmlEvent.isEndDocument()) return hsmStatus; if (xmlEvent.isAttribute() || xmlEvent.isStartElement()) { if (context.testExpression("HsmClientCertificateIdentifier", targetDepth)) { hsmStatus.setHsmClientCertificateIdentifier(StringStaxUnmarshaller.getInstance().unmarshall(context)); continue; } if (context.testExpression("HsmConfigurationIdentifier", targetDepth)) { hsmStatus.setHsmConfigurationIdentifier(StringStaxUnmarshaller.getInstance().unmarshall(context)); continue; } if (context.testExpression("Status", targetDepth)) { hsmStatus.setStatus(StringStaxUnmarshaller.getInstance().unmarshall(context)); continue; } } else if (xmlEvent.isEndElement()) { if (context.getCurrentDepth() < originalDepth) { return hsmStatus; } } } }