@Test public void builderShouldThrowWhenIfInStateIsNotNull() { assertThatThrownBy(() -> SetMessagesRequest.builder().ifInState("")) .isInstanceOf(NotImplementedException.class); }
public static Builder builder() { return new Builder(); }
SetMessagesRequest implements JmapRequest { public static Builder builder() { return new Builder(); } }
SetMessagesRequest implements JmapRequest { public static Builder builder() { return new Builder(); } @VisibleForTesting  SetMessagesRequest(Optional<String> accountId, Optional<String> ifInState,
                                          List<CreationMessageEntry> create, List<MDNCreationEntry> sendMDN,
                                          Map<MessageId, Function<UpdateMessagePatchConverter, UpdateMessagePatch>> update,
                                          List<MessageId> destroy); }
SetMessagesRequest implements JmapRequest { public static Builder builder() { return new Builder(); } @VisibleForTesting  SetMessagesRequest(Optional<String> accountId, Optional<String> ifInState,
                                          List<CreationMessageEntry> create, List<MDNCreationEntry> sendMDN,
                                          Map<MessageId, Function<UpdateMessagePatchConverter, UpdateMessagePatch>> update,
                                          List<MessageId> destroy); static Builder builder(); Optional<String> getAccountId(); Optional<String> getIfInState(); List<CreationMessageEntry> getCreate(); List<MDNCreationEntry> getSendMDN(); Map<MessageId, UpdateMessagePatch> buildUpdatePatches(UpdateMessagePatchConverter converter); List<MessageId> getDestroy(); }
SetMessagesRequest implements JmapRequest { public static Builder builder() { return new Builder(); } @VisibleForTesting  SetMessagesRequest(Optional<String> accountId, Optional<String> ifInState,
                                          List<CreationMessageEntry> create, List<MDNCreationEntry> sendMDN,
                                          Map<MessageId, Function<UpdateMessagePatchConverter, UpdateMessagePatch>> update,
                                          List<MessageId> destroy); static Builder builder(); Optional<String> getAccountId(); Optional<String> getIfInState(); List<CreationMessageEntry> getCreate(); List<MDNCreationEntry> getSendMDN(); Map<MessageId, UpdateMessagePatch> buildUpdatePatches(UpdateMessagePatchConverter converter); List<MessageId> getDestroy();  }