Package com.intercom.api.types
Class CreateMessageRequest.Email
- java.lang.Object
-
- com.intercom.api.types.CreateMessageRequest.Email
-
- Enclosing class:
- CreateMessageRequest
public static final class CreateMessageRequest.Email extends java.lang.Object
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceCreateMessageRequest.Email._FinalStagestatic interfaceCreateMessageRequest.Email.BodyStagestatic classCreateMessageRequest.Email.Builderstatic classCreateMessageRequest.Email.Fromstatic interfaceCreateMessageRequest.Email.FromStagestatic interfaceCreateMessageRequest.Email.SubjectStagestatic interfaceCreateMessageRequest.Email.TemplateStagestatic classCreateMessageRequest.Email.Tostatic interfaceCreateMessageRequest.Email.ToStage
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static CreateMessageRequest.Email.SubjectStagebuilder()booleanequals(java.lang.Object other)java.util.Map<java.lang.String,java.lang.Object>getAdditionalProperties()java.lang.StringgetBody()java.util.Optional<java.lang.Boolean>getCreateConversationWithoutContactReply()java.util.Optional<java.lang.Integer>getCreatedAt()CreateMessageRequest.Email.FromgetFrom()java.lang.StringgetSubject()java.lang.StringgetTemplate()CreateMessageRequest.Email.TogetTo()inthashCode()java.lang.StringtoString()
-
-
-
Method Detail
-
getSubject
public java.lang.String getSubject()
- Returns:
- The title of the email.
-
getBody
public java.lang.String getBody()
- Returns:
- The content of the message. HTML and plaintext are supported.
-
getTemplate
public java.lang.String getTemplate()
- Returns:
- The style of the outgoing message. Possible values
plainorpersonal.
-
getFrom
public CreateMessageRequest.Email.From getFrom()
- Returns:
- The sender of the message. If not provided, the default sender will be used.
-
getTo
public CreateMessageRequest.Email.To getTo()
- Returns:
- The sender of the message. If not provided, the default sender will be used.
-
getCreatedAt
public java.util.Optional<java.lang.Integer> getCreatedAt()
- Returns:
- The time the message was created. If not provided, the current time will be used.
-
getCreateConversationWithoutContactReply
public java.util.Optional<java.lang.Boolean> getCreateConversationWithoutContactReply()
- Returns:
- Whether a conversation should be opened in the inbox for the message without the contact replying. Defaults to false if not provided.
-
equals
public boolean equals(java.lang.Object other)
- Overrides:
equalsin classjava.lang.Object
-
getAdditionalProperties
public java.util.Map<java.lang.String,java.lang.Object> getAdditionalProperties()
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
builder
public static CreateMessageRequest.Email.SubjectStage builder()
-
-