if (context.testExpression("DeviceKey", targetDepth)) { context.nextToken(); newDeviceMetadataTypeBuilder.deviceKey(context.getUnmarshaller(String.class).unmarshall(context)); newDeviceMetadataTypeBuilder.deviceGroupKey(context.getUnmarshaller(String.class).unmarshall(context)); return newDeviceMetadataTypeBuilder.build();
/** * <p> * The new device metadata from an authentication result. * </p> * This is a convenience that creates an instance of the {@link NewDeviceMetadataType.Builder} avoiding the need * to create one manually via {@link NewDeviceMetadataType#builder()}. * * When the {@link Consumer} completes, {@link NewDeviceMetadataType.Builder#build()} is called immediately and * its result is passed to {@link #newDeviceMetadata(NewDeviceMetadataType)}. * * @param newDeviceMetadata * a consumer that will call methods on {@link NewDeviceMetadataType.Builder} * @return Returns a reference to this object so that method calls can be chained together. * @see #newDeviceMetadata(NewDeviceMetadataType) */ default Builder newDeviceMetadata(Consumer<NewDeviceMetadataType.Builder> newDeviceMetadata) { return newDeviceMetadata(NewDeviceMetadataType.builder().applyMutation(newDeviceMetadata).build()); } }
/** * <p> * The new device metadata from an authentication result. * </p> * This is a convenience that creates an instance of the {@link NewDeviceMetadataType.Builder} avoiding the need * to create one manually via {@link NewDeviceMetadataType#builder()}. * * When the {@link Consumer} completes, {@link NewDeviceMetadataType.Builder#build()} is called immediately and * its result is passed to {@link #newDeviceMetadata(NewDeviceMetadataType)}. * * @param newDeviceMetadata * a consumer that will call methods on {@link NewDeviceMetadataType.Builder} * @return Returns a reference to this object so that method calls can be chained together. * @see #newDeviceMetadata(NewDeviceMetadataType) */ default Builder newDeviceMetadata(Consumer<NewDeviceMetadataType.Builder> newDeviceMetadata) { return newDeviceMetadata(NewDeviceMetadataType.builder().applyMutation(newDeviceMetadata).build()); } }