Package akka.javasdk.agent
Record Class MessageContent.PdfMessageContent
- Enclosing interface:
MessageContent
Factory methods for creating PDF message content.
-
Constructor Summary
ConstructorsConstructorDescriptionCreates an instance of aPdfMessageContentrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.Creates PDF content from a URL string.Creates PDF content from a URL.final inthashCode()Returns a hash code value for this object.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
PdfMessageContent
public PdfMessageContent()Creates an instance of aPdfMessageContentrecord class.
-
-
Method Details
-
fromUrl
Creates PDF content from a URL string.- Parameters:
url- The URL string pointing to the PDF- Returns:
- A new PdfUrlMessageContent instance
-
fromUrl
Creates PDF content from a URL.- Parameters:
url- The URL pointing to the PDF- Returns:
- A new PdfUrlMessageContent instance
-
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal.
-