public final class ChannelDraftDsl extends Base
Modifier and Type | Method and Description |
---|---|
Address |
getAddress() |
CustomFieldsDraft |
getCustom() |
LocalizedString |
getDescription() |
GeoJSON |
getGeoLocation() |
String |
getKey() |
LocalizedString |
getName() |
Set<ChannelRole> |
getRoles() |
ChannelDraftBuilder |
newBuilder()
Creates a new builder with the values of this object.
|
static ChannelDraftDsl |
of(ChannelDraft template)
Creates a new object initialized with the fields of the template parameter.
|
static ChannelDraftDsl |
of(String key)
Creates a new object initialized with the given values.
|
T |
withAddress(Address address) |
T |
withCustom(CustomFieldsDraft custom) |
T |
withDescription(LocalizedString description) |
T |
withGeoLocation(GeoJSON geoLocation) |
T |
withKey(String key) |
T |
withName(LocalizedString name) |
ChannelDraftDsl |
withRoles(ChannelRole... roles) |
T |
withRoles(Set<ChannelRole> roles) |
public ChannelDraftDsl withRoles(ChannelRole... roles)
@Nullable public Address getAddress()
getAddress
in interface ChannelDraft
@Nullable public CustomFieldsDraft getCustom()
getCustom
in interface ChannelDraft
getCustom
in interface CustomDraft
@Nullable public LocalizedString getDescription()
getDescription
in interface ChannelDraft
@Nullable public GeoJSON getGeoLocation()
getGeoLocation
in interface ChannelDraft
public String getKey()
getKey
in interface ChannelDraft
getKey
in interface WithKey
@Nullable public LocalizedString getName()
getName
in interface ChannelDraft
@Nullable public Set<ChannelRole> getRoles()
getRoles
in interface ChannelDraft
public ChannelDraftBuilder newBuilder()
public T withCustom(@Nullable CustomFieldsDraft custom)
public T withDescription(@Nullable LocalizedString description)
public T withKey(String key)
public T withName(@Nullable LocalizedString name)
public T withRoles(@Nullable Set<ChannelRole> roles)
public static ChannelDraftDsl of(String key)
of
in interface ChannelDraft
key
- initial value for the ChannelDraft.getKey()
propertypublic static ChannelDraftDsl of(ChannelDraft template)
template
- the template