Class AttachSubscriptionTypeToContactRequest.Builder
- java.lang.Object
-
- com.intercom.api.resources.unstable.subscriptiontypes.requests.AttachSubscriptionTypeToContactRequest.Builder
-
- All Implemented Interfaces:
AttachSubscriptionTypeToContactRequest._FinalStage,AttachSubscriptionTypeToContactRequest.ConsentTypeStage,AttachSubscriptionTypeToContactRequest.ContactIdStage,AttachSubscriptionTypeToContactRequest.IdStage
- Enclosing class:
- AttachSubscriptionTypeToContactRequest
public static final class AttachSubscriptionTypeToContactRequest.Builder extends java.lang.Object implements AttachSubscriptionTypeToContactRequest.ContactIdStage, AttachSubscriptionTypeToContactRequest.IdStage, AttachSubscriptionTypeToContactRequest.ConsentTypeStage, AttachSubscriptionTypeToContactRequest._FinalStage
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description AttachSubscriptionTypeToContactRequestbuild()AttachSubscriptionTypeToContactRequest._FinalStageconsentType(java.lang.String consentType)The consent_type of a subscription, opt_out or opt_in.AttachSubscriptionTypeToContactRequest.IdStagecontactId(java.lang.String contactId)The unique identifier for the contact which is given by IntercomAttachSubscriptionTypeToContactRequest.Builderfrom(AttachSubscriptionTypeToContactRequest other)AttachSubscriptionTypeToContactRequest.ConsentTypeStageid(java.lang.String id)The unique identifier for the subscription which is given by Intercom
-
-
-
Method Detail
-
from
public AttachSubscriptionTypeToContactRequest.Builder from(AttachSubscriptionTypeToContactRequest other)
- Specified by:
fromin interfaceAttachSubscriptionTypeToContactRequest.ContactIdStage
-
contactId
public AttachSubscriptionTypeToContactRequest.IdStage contactId(@NotNull java.lang.String contactId)
The unique identifier for the contact which is given by Intercom
The unique identifier for the contact which is given by Intercom
- Specified by:
contactIdin interfaceAttachSubscriptionTypeToContactRequest.ContactIdStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
id
public AttachSubscriptionTypeToContactRequest.ConsentTypeStage id(@NotNull java.lang.String id)
The unique identifier for the subscription which is given by Intercom
The unique identifier for the subscription which is given by Intercom
- Specified by:
idin interfaceAttachSubscriptionTypeToContactRequest.IdStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
consentType
public AttachSubscriptionTypeToContactRequest._FinalStage consentType(@NotNull java.lang.String consentType)
The consent_type of a subscription, opt_out or opt_in.
The consent_type of a subscription, opt_out or opt_in.
- Specified by:
consentTypein interfaceAttachSubscriptionTypeToContactRequest.ConsentTypeStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
build
public AttachSubscriptionTypeToContactRequest build()
- Specified by:
buildin interfaceAttachSubscriptionTypeToContactRequest._FinalStage
-
-