Package com.intercom.api.types
Class CreateMessageRequest.Inapp
- java.lang.Object
-
- com.intercom.api.types.CreateMessageRequest.Inapp
-
- Enclosing class:
- CreateMessageRequest
public static final class CreateMessageRequest.Inapp extends java.lang.Object
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceCreateMessageRequest.Inapp._FinalStagestatic interfaceCreateMessageRequest.Inapp.BodyStagestatic classCreateMessageRequest.Inapp.Builderstatic classCreateMessageRequest.Inapp.Fromstatic interfaceCreateMessageRequest.Inapp.FromStagestatic classCreateMessageRequest.Inapp.Tostatic interfaceCreateMessageRequest.Inapp.ToStage
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static CreateMessageRequest.Inapp.BodyStagebuilder()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.Inapp.FromgetFrom()java.util.Optional<java.lang.String>getSubject()java.util.Optional<java.lang.String>getTemplate()CreateMessageRequest.Inapp.TogetTo()inthashCode()java.lang.StringtoString()
-
-
-
Method Detail
-
getSubject
public java.util.Optional<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.util.Optional<java.lang.String> getTemplate()
- Returns:
- The style of the outgoing message. Possible values
plainorpersonal.
-
getFrom
public CreateMessageRequest.Inapp.From getFrom()
- Returns:
- The sender of the message. If not provided, the default sender will be used.
-
getTo
public CreateMessageRequest.Inapp.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.Inapp.BodyStage builder()
-
-