/** * <p> * The stable and unique string identifying the user. For more information about IDs, see <a * href="http://docs.aws.amazon.com/IAM/latest/UserGuide/Using_Identifiers.html">IAM Identifiers</a> in the <i>Using * IAM</i> guide. * </p> * * @param userId * The stable and unique string identifying the user. For more information about IDs, see <a * href="http://docs.aws.amazon.com/IAM/latest/UserGuide/Using_Identifiers.html">IAM Identifiers</a> in the * <i>Using IAM</i> guide. * @return Returns a reference to this object so that method calls can be chained together. */ public User withUserId(String userId) { setUserId(userId); return this; }
/** * Constructs a new User object. Callers should use the setter or fluent setter (with...) methods to initialize any * additional object members. * * @param path * The path to the user. For more information about paths, see <a * href="http://docs.aws.amazon.com/IAM/latest/UserGuide/Using_Identifiers.html">IAM Identifiers</a> in the * <i>Using IAM</i> guide. * @param userName * The friendly name identifying the user. * @param userId * The stable and unique string identifying the user. For more information about IDs, see <a * href="http://docs.aws.amazon.com/IAM/latest/UserGuide/Using_Identifiers.html">IAM Identifiers</a> in the * <i>Using IAM</i> guide. * @param arn * The Amazon Resource Name (ARN) that identifies the user. For more information about ARNs and how to use * ARNs in policies, see <a href="http://docs.aws.amazon.com/IAM/latest/UserGuide/Using_Identifiers.html">IAM * Identifiers</a> in the <i>Using IAM</i> guide. * @param createDate * The date and time, in <a href="http://www.iso.org/iso/iso8601">ISO 8601 date-time format</a>, when the * user was created. */ public User(String path, String userName, String userId, String arn, java.util.Date createDate) { setPath(path); setUserName(userName); setUserId(userId); setArn(arn); setCreateDate(createDate); }
user.setUserId(StringStaxUnmarshaller.getInstance().unmarshall(context)); continue;
for (DataSnapshot chatSnapshot: snapshot.getChildren()) { User user = chatSnapshot.getValue(User.class); user.setUserId(chatSnapshot.getKey()); }
/** * <p> * The stable and unique string identifying the user. For more information about IDs, see <a * href="http://docs.aws.amazon.com/IAM/latest/UserGuide/Using_Identifiers.html">IAM Identifiers</a> in the <i>Using * IAM</i> guide. * </p> * * @param userId * The stable and unique string identifying the user. For more information about IDs, see <a * href="http://docs.aws.amazon.com/IAM/latest/UserGuide/Using_Identifiers.html">IAM Identifiers</a> in the * <i>Using IAM</i> guide. * @return Returns a reference to this object so that method calls can be chained together. */ public User withUserId(String userId) { setUserId(userId); return this; }
String USER_URI = "http://localhost:8080/AnyQserver/rest/users"; User user = new anyq.server.common.bean.User(); user.setUserId(15); user.setUserName("asd"); user.setUserPassword("asd"); Client client = Client.create(); String request = new Gson().toJson(user); System.out.println(request); WebResource r = client.resource(USER_URI); ClientResponse response = r.type(MediaType.APPLICATION_JSON).post( ClientResponse.class, request); System.out.println(response.getStatus());
/** * Constructs a new User object. Callers should use the setter or fluent setter (with...) methods to initialize any * additional object members. * * @param path * The path to the user. For more information about paths, see <a * href="http://docs.aws.amazon.com/IAM/latest/UserGuide/Using_Identifiers.html">IAM Identifiers</a> in the * <i>Using IAM</i> guide. * @param userName * The friendly name identifying the user. * @param userId * The stable and unique string identifying the user. For more information about IDs, see <a * href="http://docs.aws.amazon.com/IAM/latest/UserGuide/Using_Identifiers.html">IAM Identifiers</a> in the * <i>Using IAM</i> guide. * @param arn * The Amazon Resource Name (ARN) that identifies the user. For more information about ARNs and how to use * ARNs in policies, see <a href="http://docs.aws.amazon.com/IAM/latest/UserGuide/Using_Identifiers.html">IAM * Identifiers</a> in the <i>Using IAM</i> guide. * @param createDate * The date and time, in <a href="http://www.iso.org/iso/iso8601">ISO 8601 date-time format</a>, when the * user was created. */ public User(String path, String userName, String userId, String arn, java.util.Date createDate) { setPath(path); setUserName(userName); setUserId(userId); setArn(arn); setCreateDate(createDate); }
user.setUserId(StringStaxUnmarshaller.getInstance().unmarshall(context)); continue;