/** * <p> * A structure that contains information about the newly created service-specific credential. * </p> * <important> * <p> * This is the only time that the password for this credential set is available. It cannot be recovered later. * Instead, you will have to reset the password with <a>ResetServiceSpecificCredential</a>. * </p> * </important> * * @param serviceSpecificCredential * A structure that contains information about the newly created service-specific credential.</p> <important> * <p> * This is the only time that the password for this credential set is available. It cannot be recovered * later. Instead, you will have to reset the password with <a>ResetServiceSpecificCredential</a>. * </p> * @return Returns a reference to this object so that method calls can be chained together. */ public CreateServiceSpecificCredentialResult withServiceSpecificCredential(ServiceSpecificCredential serviceSpecificCredential) { setServiceSpecificCredential(serviceSpecificCredential); return this; }
public CreateServiceSpecificCredentialResult unmarshall(StaxUnmarshallerContext context) throws Exception { CreateServiceSpecificCredentialResult createServiceSpecificCredentialResult = new CreateServiceSpecificCredentialResult(); int originalDepth = context.getCurrentDepth(); int targetDepth = originalDepth + 1; if (context.isStartOfDocument()) targetDepth += 2; while (true) { XMLEvent xmlEvent = context.nextEvent(); if (xmlEvent.isEndDocument()) return createServiceSpecificCredentialResult; if (xmlEvent.isAttribute() || xmlEvent.isStartElement()) { if (context.testExpression("ServiceSpecificCredential", targetDepth)) { createServiceSpecificCredentialResult.setServiceSpecificCredential(ServiceSpecificCredentialStaxUnmarshaller.getInstance().unmarshall( context)); continue; } } else if (xmlEvent.isEndElement()) { if (context.getCurrentDepth() < originalDepth) { return createServiceSpecificCredentialResult; } } } }
/** * <p> * A structure that contains information about the newly created service-specific credential. * </p> * <important> * <p> * This is the only time that the password for this credential set is available. It cannot be recovered later. * Instead, you will have to reset the password with <a>ResetServiceSpecificCredential</a>. * </p> * </important> * * @param serviceSpecificCredential * A structure that contains information about the newly created service-specific credential.</p> <important> * <p> * This is the only time that the password for this credential set is available. It cannot be recovered * later. Instead, you will have to reset the password with <a>ResetServiceSpecificCredential</a>. * </p> * @return Returns a reference to this object so that method calls can be chained together. */ public CreateServiceSpecificCredentialResult withServiceSpecificCredential(ServiceSpecificCredential serviceSpecificCredential) { setServiceSpecificCredential(serviceSpecificCredential); return this; }
public CreateServiceSpecificCredentialResult unmarshall(StaxUnmarshallerContext context) throws Exception { CreateServiceSpecificCredentialResult createServiceSpecificCredentialResult = new CreateServiceSpecificCredentialResult(); int originalDepth = context.getCurrentDepth(); int targetDepth = originalDepth + 1; if (context.isStartOfDocument()) targetDepth += 2; while (true) { XMLEvent xmlEvent = context.nextEvent(); if (xmlEvent.isEndDocument()) return createServiceSpecificCredentialResult; if (xmlEvent.isAttribute() || xmlEvent.isStartElement()) { if (context.testExpression("ServiceSpecificCredential", targetDepth)) { createServiceSpecificCredentialResult.setServiceSpecificCredential(ServiceSpecificCredentialStaxUnmarshaller.getInstance().unmarshall( context)); continue; } } else if (xmlEvent.isEndElement()) { if (context.getCurrentDepth() < originalDepth) { return createServiceSpecificCredentialResult; } } } }