public UserPoolPolicyType unmarshall(JsonUnmarshallerContext context) throws Exception { UserPoolPolicyType.Builder userPoolPolicyTypeBuilder = UserPoolPolicyType.builder(); int originalDepth = context.getCurrentDepth(); String currentParentElement = context.getCurrentParentElement(); int targetDepth = originalDepth + 1; JsonToken token = context.getCurrentToken(); if (token == null) token = context.nextToken(); if (token == VALUE_NULL) { return null; } while (true) { if (token == null) break; if (token == FIELD_NAME || token == START_OBJECT) { if (context.testExpression("PasswordPolicy", targetDepth)) { context.nextToken(); userPoolPolicyTypeBuilder.passwordPolicy(PasswordPolicyTypeUnmarshaller.getInstance().unmarshall(context)); } } else if (token == END_ARRAY || token == END_OBJECT) { if (context.getLastParsedParentElement() == null || context.getLastParsedParentElement().equals(currentParentElement)) { if (context.getCurrentDepth() <= originalDepth) break; } } token = context.nextToken(); } return userPoolPolicyTypeBuilder.build(); }
/** * <p> * A container for the policies associated with a user pool. * </p> * This is a convenience that creates an instance of the {@link UserPoolPolicyType.Builder} avoiding the need to * create one manually via {@link UserPoolPolicyType#builder()}. * * When the {@link Consumer} completes, {@link UserPoolPolicyType.Builder#build()} is called immediately and its * result is passed to {@link #policies(UserPoolPolicyType)}. * * @param policies * a consumer that will call methods on {@link UserPoolPolicyType.Builder} * @return Returns a reference to this object so that method calls can be chained together. * @see #policies(UserPoolPolicyType) */ default Builder policies(Consumer<UserPoolPolicyType.Builder> policies) { return policies(UserPoolPolicyType.builder().applyMutation(policies).build()); }
/** * <p> * A container with the policies you wish to update in a user pool. * </p> * This is a convenience that creates an instance of the {@link UserPoolPolicyType.Builder} avoiding the need to * create one manually via {@link UserPoolPolicyType#builder()}. * * When the {@link Consumer} completes, {@link UserPoolPolicyType.Builder#build()} is called immediately and its * result is passed to {@link #policies(UserPoolPolicyType)}. * * @param policies * a consumer that will call methods on {@link UserPoolPolicyType.Builder} * @return Returns a reference to this object so that method calls can be chained together. * @see #policies(UserPoolPolicyType) */ default Builder policies(Consumer<UserPoolPolicyType.Builder> policies) { return policies(UserPoolPolicyType.builder().applyMutation(policies).build()); }
/** * <p> * The policies associated with the user pool. * </p> * This is a convenience that creates an instance of the {@link UserPoolPolicyType.Builder} avoiding the need to * create one manually via {@link UserPoolPolicyType#builder()}. * * When the {@link Consumer} completes, {@link UserPoolPolicyType.Builder#build()} is called immediately and its * result is passed to {@link #policies(UserPoolPolicyType)}. * * @param policies * a consumer that will call methods on {@link UserPoolPolicyType.Builder} * @return Returns a reference to this object so that method calls can be chained together. * @see #policies(UserPoolPolicyType) */ default Builder policies(Consumer<UserPoolPolicyType.Builder> policies) { return policies(UserPoolPolicyType.builder().applyMutation(policies).build()); }
/** * <p> * The policies associated with the new user pool. * </p> * This is a convenience that creates an instance of the {@link UserPoolPolicyType.Builder} avoiding the need to * create one manually via {@link UserPoolPolicyType#builder()}. * * When the {@link Consumer} completes, {@link UserPoolPolicyType.Builder#build()} is called immediately and its * result is passed to {@link #policies(UserPoolPolicyType)}. * * @param policies * a consumer that will call methods on {@link UserPoolPolicyType.Builder} * @return Returns a reference to this object so that method calls can be chained together. * @see #policies(UserPoolPolicyType) */ default Builder policies(Consumer<UserPoolPolicyType.Builder> policies) { return policies(UserPoolPolicyType.builder().applyMutation(policies).build()); }
/** * <p> * A container with the policies you wish to update in a user pool. * </p> * This is a convenience that creates an instance of the {@link UserPoolPolicyType.Builder} avoiding the need to * create one manually via {@link UserPoolPolicyType#builder()}. * * When the {@link Consumer} completes, {@link UserPoolPolicyType.Builder#build()} is called immediately and its * result is passed to {@link #policies(UserPoolPolicyType)}. * * @param policies * a consumer that will call methods on {@link UserPoolPolicyType.Builder} * @return Returns a reference to this object so that method calls can be chained together. * @see #policies(UserPoolPolicyType) */ default Builder policies(Consumer<UserPoolPolicyType.Builder> policies) { return policies(UserPoolPolicyType.builder().applyMutation(policies).build()); }
/** * <p> * The policies associated with the new user pool. * </p> * This is a convenience that creates an instance of the {@link UserPoolPolicyType.Builder} avoiding the need to * create one manually via {@link UserPoolPolicyType#builder()}. * * When the {@link Consumer} completes, {@link UserPoolPolicyType.Builder#build()} is called immediately and its * result is passed to {@link #policies(UserPoolPolicyType)}. * * @param policies * a consumer that will call methods on {@link UserPoolPolicyType.Builder} * @return Returns a reference to this object so that method calls can be chained together. * @see #policies(UserPoolPolicyType) */ default Builder policies(Consumer<UserPoolPolicyType.Builder> policies) { return policies(UserPoolPolicyType.builder().applyMutation(policies).build()); }