PortraitMediaEntity.Builder


public final class PortraitMediaEntity.Builder


Builder class for PortraitMediaEntity.

Summary

Public constructors

Public methods

PortraitMediaEntity.Builder

Adds the display time window for the social entity.

PortraitMediaEntity.Builder

Adds the display time window for the social entity.

PortraitMediaEntity.Builder

Adds the interactions for the portrait media entity.

PortraitMediaEntity
PortraitMediaEntity.Builder

Sets the action link uri for the social entity.

PortraitMediaEntity.Builder

Sets content id of the entity.

PortraitMediaEntity.Builder

This method is deprecated.

Use addInteractions instead.

PortraitMediaEntity.Builder

Sets the post content for the portrait media entity.

PortraitMediaEntity.Builder

Sets the profile for the portrait media entity.

Public constructors

Builder

public Builder()

Public methods

addAllDisplayTimeWindow

@CanIgnoreReturnValue
public PortraitMediaEntity.Builder addAllDisplayTimeWindow(List<DisplayTimeWindow> displayTimeWindows)

Adds the display time window for the social entity.

Optional.

addDisplayTimeWindow

@CanIgnoreReturnValue
public PortraitMediaEntity.Builder addDisplayTimeWindow(DisplayTimeWindow displayTimeWindow)

Adds the display time window for the social entity.

Optional.

addInteractions

@CanIgnoreReturnValue
public PortraitMediaEntity.Builder addInteractions(List<Interaction> interactions)

Adds the interactions for the portrait media entity.

Optional.

build

public PortraitMediaEntity build()

setActionLinkUri

@CanIgnoreReturnValue
public PortraitMediaEntity.Builder setActionLinkUri(Uri actionLinkUri)

Sets the action link uri for the social entity.

Required.

setEntityId

@CanIgnoreReturnValue
public PortraitMediaEntity.Builder setEntityId(String entityId)

Sets content id of the entity.

Optional.

setInteraction

@CanIgnoreReturnValue
public PortraitMediaEntity.Builder setInteraction(Interaction interaction)

Sets the interaction for the portrait media entity.

Optional.

setPortraitMediaPost

@CanIgnoreReturnValue
public PortraitMediaEntity.Builder setPortraitMediaPost(PortraitMediaPost portraitMediaPost)

Sets the post content for the portrait media entity.

Required.

setProfile

@CanIgnoreReturnValue
public PortraitMediaEntity.Builder setProfile(Profile profile)

Sets the profile for the portrait media entity.

Optional.