@Generated(value="io.sphere.sdk.annotations.processors.generators.ResourceDraftValueGenerator", comments="Generated from: io.sphere.sdk.extensions.ExtensionDraft") public final class ExtensionDraftDsl extends Base implements ExtensionDraft
ExtensionDraft
.Modifier and Type | Method and Description |
---|---|
Destination |
getDestination() |
String |
getKey() |
Long |
getTimeoutInMs() |
List<Trigger> |
getTriggers() |
ExtensionDraftBuilder |
newBuilder()
Creates a new builder with the values of this object.
|
static ExtensionDraftDsl |
of(Destination destination,
List<Trigger> triggers)
Creates a new object initialized with the given values.
|
static ExtensionDraftDsl |
of(ExtensionDraft template)
Creates a new object initialized with the fields of the template parameter.
|
static ExtensionDraftDsl |
of(String key,
Destination destination,
List<Trigger> triggers)
Creates a new object initialized with the given values.
|
static ExtensionDraftDsl |
of(String key,
Destination destination,
List<Trigger> triggers,
Long timeoutInMs)
Creates a new object initialized with the given values.
|
ExtensionDraftDsl |
withDestination(Destination destination) |
ExtensionDraftDsl |
withKey(String key) |
ExtensionDraftDsl |
withTimeoutInMs(Long timeoutInMs) |
ExtensionDraftDsl |
withTriggers(List<Trigger> triggers) |
public Destination getDestination()
getDestination
in interface ExtensionDraft
@Nullable public String getKey()
getKey
in interface ExtensionDraft
getKey
in interface WithKey
@Nullable public Long getTimeoutInMs()
getTimeoutInMs
in interface ExtensionDraft
public List<Trigger> getTriggers()
getTriggers
in interface ExtensionDraft
public ExtensionDraftBuilder newBuilder()
public ExtensionDraftDsl withDestination(Destination destination)
public ExtensionDraftDsl withKey(@Nullable String key)
public ExtensionDraftDsl withTimeoutInMs(@Nullable Long timeoutInMs)
public ExtensionDraftDsl withTriggers(List<Trigger> triggers)
public static ExtensionDraftDsl of(@Nullable String key, Destination destination, List<Trigger> triggers, @Nullable Long timeoutInMs)
key
- initial value for the ExtensionDraft.getKey()
propertydestination
- initial value for the ExtensionDraft.getDestination()
propertytriggers
- initial value for the ExtensionDraft.getTriggers()
propertytimeoutInMs
- initial value for the ExtensionDraft.getTimeoutInMs()
propertypublic static ExtensionDraftDsl of(@Nullable String key, Destination destination, List<Trigger> triggers)
key
- initial value for the ExtensionDraft.getKey()
propertydestination
- initial value for the ExtensionDraft.getDestination()
propertytriggers
- initial value for the ExtensionDraft.getTriggers()
propertypublic static ExtensionDraftDsl of(Destination destination, List<Trigger> triggers)
destination
- initial value for the ExtensionDraft.getDestination()
propertytriggers
- initial value for the ExtensionDraft.getTriggers()
propertypublic static ExtensionDraftDsl of(ExtensionDraft template)
template
- the template