@Generated(value="io.sphere.sdk.annotations.processors.generators.DraftBuilderGenerator", comments="Generated from: io.sphere.sdk.subscriptions.SubscriptionDraft") public final class SubscriptionDraftBuilder extends Base implements Builder<SubscriptionDraftDsl>
SubscriptionDraft.| Modifier and Type | Method and Description |
|---|---|
SubscriptionDraftDsl |
build()
Creates a new instance of
SubscriptionDraftDsl with the values of this builder. |
SubscriptionDraftBuilder |
changes(List<ChangeSubscription> changes)
Sets the
changes property of this builder. |
SubscriptionDraftBuilder |
destination(Destination destination)
Sets the
destination property of this builder. |
List<ChangeSubscription> |
getChanges() |
Destination |
getDestination() |
String |
getKey() |
List<MessageSubscription> |
getMessages() |
SubscriptionDraftBuilder |
key(String key)
Sets the
key property of this builder. |
SubscriptionDraftBuilder |
messages(List<MessageSubscription> messages)
Sets the
messages property of this builder. |
static SubscriptionDraftBuilder |
of(Destination destination)
Creates a new object initialized with the given values.
|
static SubscriptionDraftBuilder |
of(SubscriptionDraft template)
Creates a new object initialized with the fields of the template parameter.
|
SubscriptionDraftBuilder |
plusChanges(ChangeSubscription changes)
Adds
changes parameter to the changes list property of this builder. |
SubscriptionDraftBuilder |
plusChanges(List<ChangeSubscription> changes)
Concatenate
changes parameter to the changes list property of this builder. |
SubscriptionDraftBuilder |
plusMessages(List<MessageSubscription> messages)
Concatenate
messages parameter to the messages list property of this builder. |
SubscriptionDraftBuilder |
plusMessages(MessageSubscription messages)
Adds
messages parameter to the messages list property of this builder. |
public SubscriptionDraftBuilder changes(@Nullable List<ChangeSubscription> changes)
changes property of this builder.changes - the value for SubscriptionDraft.getChanges()public SubscriptionDraftBuilder destination(Destination destination)
destination property of this builder.destination - the value for SubscriptionDraft.getDestination()public SubscriptionDraftBuilder key(@Nullable String key)
key property of this builder.key - the value for SubscriptionDraft.getKey()public SubscriptionDraftBuilder messages(@Nullable List<MessageSubscription> messages)
messages property of this builder.messages - the value for SubscriptionDraft.getMessages()@Nullable public List<ChangeSubscription> getChanges()
public Destination getDestination()
@Nullable public List<MessageSubscription> getMessages()
public SubscriptionDraftBuilder plusChanges(List<ChangeSubscription> changes)
changes parameter to the changes list property of this builder.changes - the value for SubscriptionDraft.getChanges()public SubscriptionDraftBuilder plusMessages(List<MessageSubscription> messages)
messages parameter to the messages list property of this builder.messages - the value for SubscriptionDraft.getMessages()public SubscriptionDraftBuilder plusChanges(ChangeSubscription changes)
changes parameter to the changes list property of this builder.changes - the value of the element to add to SubscriptionDraft.getChanges()public SubscriptionDraftBuilder plusMessages(MessageSubscription messages)
messages parameter to the messages list property of this builder.messages - the value of the element to add to SubscriptionDraft.getMessages()public SubscriptionDraftDsl build()
SubscriptionDraftDsl with the values of this builder.build in interface Builder<SubscriptionDraftDsl>public static SubscriptionDraftBuilder of(Destination destination)
destination - initial value for the SubscriptionDraft.getDestination() propertypublic static SubscriptionDraftBuilder of(SubscriptionDraft template)
template - the template