@Test void builderShouldThrowWhenAttachmentIsNull() { assertThatThrownBy(() -> MessageAttachmentMetadata.builder() .attachment(null)) .isInstanceOf(IllegalArgumentException.class); }
public static Builder builder() { return new Builder(); }
MessageAttachmentMetadata { public static Builder builder() { return new Builder(); } }
MessageAttachmentMetadata { public static Builder builder() { return new Builder(); } MessageAttachmentMetadata(AttachmentMetadata attachment, Optional<String> name, Optional<Cid> cid, boolean isInline); }
MessageAttachmentMetadata { public static Builder builder() { return new Builder(); } MessageAttachmentMetadata(AttachmentMetadata attachment, Optional<String> name, Optional<Cid> cid, boolean isInline); static Builder builder(); static boolean hasNonInlinedAttachment(List<MessageAttachmentMetadata> attachments); AttachmentMetadata getAttachment(); AttachmentId getAttachmentId(); Optional<String> getName(); Optional<Cid> getCid(); boolean isInline(); boolean isInlinedWithCid(); @Override boolean equals(Object obj); @Override int hashCode(); @Override String toString(); }
MessageAttachmentMetadata { public static Builder builder() { return new Builder(); } MessageAttachmentMetadata(AttachmentMetadata attachment, Optional<String> name, Optional<Cid> cid, boolean isInline); static Builder builder(); static boolean hasNonInlinedAttachment(List<MessageAttachmentMetadata> attachments); AttachmentMetadata getAttachment(); AttachmentId getAttachmentId(); Optional<String> getName(); Optional<Cid> getCid(); boolean isInline(); boolean isInlinedWithCid(); @Override boolean equals(Object obj); @Override int hashCode(); @Override String toString();  }