@Generated(value="io.sphere.sdk.annotations.processors.generators.ResourceDraftValueGenerator", comments="Generated from: io.sphere.sdk.subscriptions.SubscriptionDraft") public final class SubscriptionDraftDsl extends Base implements SubscriptionDraft
SubscriptionDraft
.Modifier and Type | Method and Description |
---|---|
List<ChangeSubscription> |
getChanges() |
Destination |
getDestination() |
String |
getKey() |
List<MessageSubscription> |
getMessages() |
SubscriptionDraftBuilder |
newBuilder()
Creates a new builder with the values of this object.
|
static SubscriptionDraftDsl |
of(Destination destination)
Creates a new object initialized with the given values.
|
static SubscriptionDraftDsl |
of(SubscriptionDraft template)
Creates a new object initialized with the fields of the template parameter.
|
SubscriptionDraftDsl |
withChanges(List<ChangeSubscription> changes) |
SubscriptionDraftDsl |
withDestination(Destination destination) |
SubscriptionDraftDsl |
withKey(String key) |
SubscriptionDraftDsl |
withMessages(List<MessageSubscription> messages) |
@Nullable public List<ChangeSubscription> getChanges()
getChanges
in interface SubscriptionDraft
public Destination getDestination()
getDestination
in interface SubscriptionDraft
@Nullable public String getKey()
getKey
in interface WithKey
getKey
in interface SubscriptionDraft
@Nullable public List<MessageSubscription> getMessages()
getMessages
in interface SubscriptionDraft
public SubscriptionDraftBuilder newBuilder()
public SubscriptionDraftDsl withChanges(@Nullable List<ChangeSubscription> changes)
public SubscriptionDraftDsl withDestination(Destination destination)
public SubscriptionDraftDsl withKey(@Nullable String key)
public SubscriptionDraftDsl withMessages(@Nullable List<MessageSubscription> messages)
public static SubscriptionDraftDsl of(Destination destination)
destination
- initial value for the SubscriptionDraft.getDestination()
propertypublic static SubscriptionDraftDsl of(SubscriptionDraft template)
template
- the template