@Override @SafeVarargs public final Builder users(Consumer<UserType.Builder>... users) { users(Stream.of(users).map(c -> UserType.builder().applyMutation(c).build()).collect(Collectors.toList())); return this; }
if (context.testExpression("Username", targetDepth)) { context.nextToken(); userTypeBuilder.username(context.getUnmarshaller(String.class).unmarshall(context)); userTypeBuilder.attributes(new ListUnmarshaller<AttributeType>(AttributeTypeUnmarshaller.getInstance()) .unmarshall(context)); userTypeBuilder.userCreateDate(context.getUnmarshaller(java.time.Instant.class).unmarshall(context)); userTypeBuilder.userLastModifiedDate(context.getUnmarshaller(java.time.Instant.class).unmarshall(context)); userTypeBuilder.enabled(context.getUnmarshaller(Boolean.class).unmarshall(context)); userTypeBuilder.userStatus(context.getUnmarshaller(String.class).unmarshall(context)); userTypeBuilder.mfaOptions(new ListUnmarshaller<MFAOptionType>(MFAOptionTypeUnmarshaller.getInstance()) .unmarshall(context)); return userTypeBuilder.build();
/** * <p> * The newly created user. * </p> * This is a convenience that creates an instance of the {@link UserType.Builder} avoiding the need to create * one manually via {@link UserType#builder()}. * * When the {@link Consumer} completes, {@link UserType.Builder#build()} is called immediately and its result is * passed to {@link #user(UserType)}. * * @param user * a consumer that will call methods on {@link UserType.Builder} * @return Returns a reference to this object so that method calls can be chained together. * @see #user(UserType) */ default Builder user(Consumer<UserType.Builder> user) { return user(UserType.builder().applyMutation(user).build()); } }
/** * <p> * The newly created user. * </p> * This is a convenience that creates an instance of the {@link UserType.Builder} avoiding the need to create * one manually via {@link UserType#builder()}. * * When the {@link Consumer} completes, {@link UserType.Builder#build()} is called immediately and its result is * passed to {@link #user(UserType)}. * * @param user * a consumer that will call methods on {@link UserType.Builder} * @return Returns a reference to this object so that method calls can be chained together. * @see #user(UserType) */ default Builder user(Consumer<UserType.Builder> user) { return user(UserType.builder().applyMutation(user).build()); } }
@Override @SafeVarargs public final Builder users(Consumer<UserType.Builder>... users) { users(Stream.of(users).map(c -> UserType.builder().applyMutation(c).build()).collect(Collectors.toList())); return this; }
@Override @SafeVarargs public final Builder users(Consumer<UserType.Builder>... users) { users(Stream.of(users).map(c -> UserType.builder().applyMutation(c).build()).collect(Collectors.toList())); return this; }
@Override @SafeVarargs public final Builder users(Consumer<UserType.Builder>... users) { users(Stream.of(users).map(c -> UserType.builder().applyMutation(c).build()).collect(Collectors.toList())); return this; }