The role of the contact.
+ * The role of the contact.
+ * @return Reference to {@code this} so that method calls can be chained together.
+ */
+ @java.lang.Override
+ @JsonSetter("role")
+ public HasHardBouncedStage role(@NotNull String role) {
+ this.role = Objects.requireNonNull(role, "role must not be null");
return this;
}
/**
- * Whether the contact is unsubscribed from emails.
+ * Whether the contact has had an email sent to them hard bounce.
+ * Whether the contact has had an email sent to them hard bounce.
+ * @return Reference to {@code this} so that method calls can be chained together.
*/
- @JsonSetter(value = "unsubscribed_from_emails", nulls = Nulls.SKIP)
- public Builder unsubscribedFromEmails(Optional unsubscribedFromEmails) {
- this.unsubscribedFromEmails = unsubscribedFromEmails;
+ @java.lang.Override
+ @JsonSetter("has_hard_bounced")
+ public MarkedEmailAsSpamStage hasHardBounced(boolean hasHardBounced) {
+ this.hasHardBounced = hasHardBounced;
return this;
}
- public Builder unsubscribedFromEmails(Boolean unsubscribedFromEmails) {
- this.unsubscribedFromEmails = Optional.ofNullable(unsubscribedFromEmails);
+ /**
+ * Whether the contact has marked an email sent to them as spam.
+ * Whether the contact has marked an email sent to them as spam.
+ * @return Reference to {@code this} so that method calls can be chained together.
+ */
+ @java.lang.Override
+ @JsonSetter("marked_email_as_spam")
+ public UnsubscribedFromEmailsStage markedEmailAsSpam(boolean markedEmailAsSpam) {
+ this.markedEmailAsSpam = markedEmailAsSpam;
return this;
}
/**
- * (UNIX timestamp) The time when the contact was created.
+ * Whether the contact is unsubscribed from emails.
+ * Whether the contact is unsubscribed from emails.
+ * @return Reference to {@code this} so that method calls can be chained together.
*/
- @JsonSetter(value = "created_at", nulls = Nulls.SKIP)
- public Builder createdAt(Optional createdAt) {
- this.createdAt = createdAt;
+ @java.lang.Override
+ @JsonSetter("unsubscribed_from_emails")
+ public CreatedAtStage unsubscribedFromEmails(boolean unsubscribedFromEmails) {
+ this.unsubscribedFromEmails = unsubscribedFromEmails;
return this;
}
- public Builder createdAt(Integer createdAt) {
- this.createdAt = Optional.ofNullable(createdAt);
+ /**
+ * (UNIX timestamp) The time when the contact was created.
+ * (UNIX timestamp) The time when the contact was created.
+ * @return Reference to {@code this} so that method calls can be chained together.
+ */
+ @java.lang.Override
+ @JsonSetter("created_at")
+ public UpdatedAtStage createdAt(int createdAt) {
+ this.createdAt = createdAt;
return this;
}
/**
* (UNIX timestamp) The time when the contact was last updated.
+ * (UNIX timestamp) The time when the contact was last updated.
+ * @return Reference to {@code this} so that method calls can be chained together.
*/
- @JsonSetter(value = "updated_at", nulls = Nulls.SKIP)
- public Builder updatedAt(Optional updatedAt) {
+ @java.lang.Override
+ @JsonSetter("updated_at")
+ public _FinalStage updatedAt(int updatedAt) {
this.updatedAt = updatedAt;
return this;
}
- public Builder updatedAt(Integer updatedAt) {
- this.updatedAt = Optional.ofNullable(updatedAt);
+ @java.lang.Override
+ public _FinalStage socialProfiles(ContactSocialProfiles socialProfiles) {
+ this.socialProfiles = Optional.ofNullable(socialProfiles);
+ return this;
+ }
+
+ @java.lang.Override
+ @JsonSetter(value = "social_profiles", nulls = Nulls.SKIP)
+ public _FinalStage socialProfiles(Optional socialProfiles) {
+ this.socialProfiles = socialProfiles;
+ return this;
+ }
+
+ @java.lang.Override
+ public _FinalStage location(ContactLocation location) {
+ this.location = Optional.ofNullable(location);
+ return this;
+ }
+
+ @java.lang.Override
+ @JsonSetter(value = "location", nulls = Nulls.SKIP)
+ public _FinalStage location(Optional location) {
+ this.location = location;
+ return this;
+ }
+
+ @java.lang.Override
+ public _FinalStage companies(ContactCompanies companies) {
+ this.companies = Optional.ofNullable(companies);
+ return this;
+ }
+
+ @java.lang.Override
+ @JsonSetter(value = "companies", nulls = Nulls.SKIP)
+ public _FinalStage companies(Optional companies) {
+ this.companies = companies;
+ return this;
+ }
+
+ @java.lang.Override
+ public _FinalStage notes(ContactNotes notes) {
+ this.notes = Optional.ofNullable(notes);
+ return this;
+ }
+
+ @java.lang.Override
+ @JsonSetter(value = "notes", nulls = Nulls.SKIP)
+ public _FinalStage notes(Optional notes) {
+ this.notes = notes;
+ return this;
+ }
+
+ @java.lang.Override
+ public _FinalStage tags(ContactTags tags) {
+ this.tags = Optional.ofNullable(tags);
+ return this;
+ }
+
+ @java.lang.Override
+ @JsonSetter(value = "tags", nulls = Nulls.SKIP)
+ public _FinalStage tags(Optional tags) {
+ this.tags = tags;
return this;
}
/**
- * (UNIX timestamp) The time specified for when a contact signed up.
+ * An image URL containing the avatar of a contact.
+ * @return Reference to {@code this} so that method calls can be chained together.
*/
- @JsonSetter(value = "signed_up_at", nulls = Nulls.SKIP)
- public Builder signedUpAt(Optional signedUpAt) {
- this.signedUpAt = signedUpAt;
+ @java.lang.Override
+ public _FinalStage avatar(String avatar) {
+ this.avatar = Optional.ofNullable(avatar);
return this;
}
- public Builder signedUpAt(Integer signedUpAt) {
- this.signedUpAt = Optional.ofNullable(signedUpAt);
+ /**
+ * An image URL containing the avatar of a contact.
+ */
+ @java.lang.Override
+ @JsonSetter(value = "avatar", nulls = Nulls.SKIP)
+ public _FinalStage avatar(Optional avatar) {
+ this.avatar = avatar;
return this;
}
/**
- * (UNIX timestamp) The time when the contact was last seen (either where the Intercom Messenger was installed or when specified manually).
+ * The custom attributes which are set for the contact.
+ * @return Reference to {@code this} so that method calls can be chained together.
*/
- @JsonSetter(value = "last_seen_at", nulls = Nulls.SKIP)
- public Builder lastSeenAt(Optional lastSeenAt) {
- this.lastSeenAt = lastSeenAt;
+ @java.lang.Override
+ public _FinalStage customAttributes(Map customAttributes) {
+ this.customAttributes = Optional.ofNullable(customAttributes);
return this;
}
- public Builder lastSeenAt(Integer lastSeenAt) {
- this.lastSeenAt = Optional.ofNullable(lastSeenAt);
+ /**
+ * The custom attributes which are set for the contact.
+ */
+ @java.lang.Override
+ @JsonSetter(value = "custom_attributes", nulls = Nulls.SKIP)
+ public _FinalStage customAttributes(Optional