Package com.intercom.api.types
Class ContactSubscriptionTypes.Builder
- java.lang.Object
-
- com.intercom.api.types.ContactSubscriptionTypes.Builder
-
- All Implemented Interfaces:
ContactSubscriptionTypes._FinalStage,ContactSubscriptionTypes.HasMoreStage,ContactSubscriptionTypes.TotalCountStage,ContactSubscriptionTypes.UrlStage
- Enclosing class:
- ContactSubscriptionTypes
public static final class ContactSubscriptionTypes.Builder extends java.lang.Object implements ContactSubscriptionTypes.UrlStage, ContactSubscriptionTypes.TotalCountStage, ContactSubscriptionTypes.HasMoreStage, ContactSubscriptionTypes._FinalStage
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ContactSubscriptionTypes._FinalStageaddAllData(java.util.List<AddressableList> data)This object represents the subscriptions attached to a contact.ContactSubscriptionTypes._FinalStageaddData(AddressableList data)This object represents the subscriptions attached to a contact.ContactSubscriptionTypesbuild()ContactSubscriptionTypes._FinalStagedata(java.util.List<AddressableList> data)This object represents the subscriptions attached to a contact.ContactSubscriptionTypes.Builderfrom(ContactSubscriptionTypes other)ContactSubscriptionTypes._FinalStagehasMore(boolean hasMore)Whether there's more Addressable Objects to be viewed.ContactSubscriptionTypes.HasMoreStagetotalCount(int totalCount)Int representing the total number of subscription types attached to this contactContactSubscriptionTypes.TotalCountStageurl(java.lang.String url)Url to get more subscription type resources for this contact
-
-
-
Method Detail
-
from
public ContactSubscriptionTypes.Builder from(ContactSubscriptionTypes other)
- Specified by:
fromin interfaceContactSubscriptionTypes.UrlStage
-
url
public ContactSubscriptionTypes.TotalCountStage url(@NotNull java.lang.String url)
Url to get more subscription type resources for this contactUrl to get more subscription type resources for this contact
- Specified by:
urlin interfaceContactSubscriptionTypes.UrlStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
totalCount
public ContactSubscriptionTypes.HasMoreStage totalCount(int totalCount)
Int representing the total number of subscription types attached to this contactInt representing the total number of subscription types attached to this contact
- Specified by:
totalCountin interfaceContactSubscriptionTypes.TotalCountStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
hasMore
public ContactSubscriptionTypes._FinalStage hasMore(boolean hasMore)
Whether there's more Addressable Objects to be viewed. If true, use the url to view allWhether there's more Addressable Objects to be viewed. If true, use the url to view all
- Specified by:
hasMorein interfaceContactSubscriptionTypes.HasMoreStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
addAllData
public ContactSubscriptionTypes._FinalStage addAllData(java.util.List<AddressableList> data)
This object represents the subscriptions attached to a contact.
- Specified by:
addAllDatain interfaceContactSubscriptionTypes._FinalStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
addData
public ContactSubscriptionTypes._FinalStage addData(AddressableList data)
This object represents the subscriptions attached to a contact.
- Specified by:
addDatain interfaceContactSubscriptionTypes._FinalStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
data
public ContactSubscriptionTypes._FinalStage data(java.util.List<AddressableList> data)
This object represents the subscriptions attached to a contact.
- Specified by:
datain interfaceContactSubscriptionTypes._FinalStage
-
build
public ContactSubscriptionTypes build()
- Specified by:
buildin interfaceContactSubscriptionTypes._FinalStage
-
-