public final class ReviewDraftBuilder extends Base
Modifier and Type | Method and Description |
---|---|
T |
authorName(String authorName)
Sets the
authorName property of this builder. |
ReviewDraftDsl |
build()
Creates a new instance of
ReviewDraftDsl with the values of this builder. |
T |
custom(CustomFieldsDraft custom)
Sets the
custom property of this builder. |
ReviewDraftBuilder |
customer(ResourceIdentifiable<Customer> customer) |
T |
customer(ResourceIdentifier<Customer> customer)
Sets the
customer property of this builder. |
String |
getAuthorName() |
CustomFieldsDraft |
getCustom() |
ResourceIdentifier<Customer> |
getCustomer() |
String |
getKey() |
Locale |
getLocale() |
Integer |
getRating() |
ResourceIdentifier<State> |
getState() |
ResourceIdentifier<?> |
getTarget() |
String |
getText() |
String |
getTitle() |
String |
getUniquenessValue() |
T |
key(String key)
Sets the
key property of this builder. |
T |
locale(Locale locale)
Sets the
locale property of this builder. |
static ReviewDraftBuilder |
of(ReviewDraft template)
Creates a new object initialized with the fields of the template parameter.
|
static ReviewDraftBuilder |
ofRating(Integer rating) |
static ReviewDraftBuilder |
ofText(String text) |
static ReviewDraftBuilder |
ofTitle(String title) |
T |
rating(Integer rating)
Sets the
rating property of this builder. |
ReviewDraftBuilder |
state(ResourceIdentifiable<State> state) |
T |
state(ResourceIdentifier<State> state)
Sets the
state property of this builder. |
ReviewDraftBuilder |
target(ResourceIdentifiable<?> target) |
T |
target(ResourceIdentifier<?> target)
Sets the
target property of this builder. |
T |
text(String text)
Sets the
text property of this builder. |
T |
title(String title)
Sets the
title property of this builder. |
T |
uniquenessValue(String uniquenessValue)
Sets the
uniquenessValue property of this builder. |
public static ReviewDraftBuilder ofTitle(String title)
public static ReviewDraftBuilder ofText(String text)
public static ReviewDraftBuilder ofRating(Integer rating)
public ReviewDraftBuilder target(@Nullable ResourceIdentifiable<?> target)
public ReviewDraftBuilder state(@Nullable ResourceIdentifiable<State> state)
public ReviewDraftBuilder customer(@Nullable ResourceIdentifiable<Customer> customer)
public T authorName(@Nullable String authorName)
authorName
property of this builder.authorName
- the value for ReviewDraft.getAuthorName()
public T custom(@Nullable CustomFieldsDraft custom)
custom
property of this builder.custom
- the value for ReviewDraft.getCustom()
public T customer(@Nullable ResourceIdentifier<Customer> customer)
customer
property of this builder.customer
- the value for ReviewDraft.getCustomer()
public T key(@Nullable String key)
key
property of this builder.key
- the value for ReviewDraft.getKey()
public T locale(@Nullable Locale locale)
locale
property of this builder.locale
- the value for ReviewDraft.getLocale()
public T rating(@Nullable Integer rating)
rating
property of this builder.rating
- the value for ReviewDraft.getRating()
public T state(@Nullable ResourceIdentifier<State> state)
state
property of this builder.state
- the value for ReviewDraft.getState()
public T target(@Nullable ResourceIdentifier<?> target)
target
property of this builder.target
- the value for ReviewDraft.getTarget()
public T text(@Nullable String text)
text
property of this builder.text
- the value for ReviewDraft.getText()
public T title(@Nullable String title)
title
property of this builder.title
- the value for ReviewDraft.getTitle()
public T uniquenessValue(@Nullable String uniquenessValue)
uniquenessValue
property of this builder.uniquenessValue
- the value for ReviewDraft.getUniquenessValue()
@Nullable public CustomFieldsDraft getCustom()
@Nullable public ResourceIdentifier<Customer> getCustomer()
@Nullable public ResourceIdentifier<State> getState()
@Nullable public ResourceIdentifier<?> getTarget()
public ReviewDraftDsl build()
ReviewDraftDsl
with the values of this builder.build
in interface Builder<ReviewDraftDsl>
public static ReviewDraftBuilder of(ReviewDraft template)
template
- the template