Class ExtensionDraftImpl
- All Implemented Interfaces:
ExtensionDraft
,WithKey
,io.vrap.rmf.base.client.Draft<ExtensionDraft>
,io.vrap.rmf.base.client.ModelBase
-
Nested Class Summary
Nested classes/interfaces inherited from interface io.vrap.rmf.base.client.ModelBase
io.vrap.rmf.base.client.ModelBase.FilteredRecursiveToStringStyle
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
Defines where the Extension can be reached.getKey()
User-defined unique identifier for the Extension.Maximum time (in milliseconds) the Extension can respond within.Describes what triggers the Extension.int
hashCode()
void
setDestination
(ExtensionDestination destination) Defines where the Extension can be reached.void
User-defined unique identifier for the Extension.void
setTimeoutInMs
(Integer timeoutInMs) Maximum time (in milliseconds) the Extension can respond within.void
setTriggers
(ExtensionTrigger... triggers) Describes what triggers the Extension.void
setTriggers
(List<ExtensionTrigger> triggers) Describes what triggers the Extension.Methods inherited from class java.lang.Object
getClass, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.commercetools.api.models.extension.ExtensionDraft
withExtensionDraft
Methods inherited from interface io.vrap.rmf.base.client.ModelBase
reflectionString, reflectionString
-
Constructor Details
-
ExtensionDraftImpl
public ExtensionDraftImpl()create empty instance
-
-
Method Details
-
getKey
User-defined unique identifier for the Extension.
- Specified by:
getKey
in interfaceExtensionDraft
- Specified by:
getKey
in interfaceWithKey
- Returns:
- key
-
getDestination
Defines where the Extension can be reached.
- Specified by:
getDestination
in interfaceExtensionDraft
- Returns:
- destination
-
getTriggers
Describes what triggers the Extension.
- Specified by:
getTriggers
in interfaceExtensionDraft
- Returns:
- triggers
-
getTimeoutInMs
Maximum time (in milliseconds) the Extension can respond within. If no timeout is provided, the default value is used for all types of Extensions. The maximum value is 10000 ms (10 seconds) for
payment
Extensions and 2000 ms (2 seconds) for all other Extensions.This limit can be increased per Project after we review the performance impact. Please contact our support via the Support Portal and provide the Region, Project key, and use case.
- Specified by:
getTimeoutInMs
in interfaceExtensionDraft
- Returns:
- timeoutInMs
-
setKey
Description copied from interface:ExtensionDraft
User-defined unique identifier for the Extension.
- Specified by:
setKey
in interfaceExtensionDraft
- Parameters:
key
- value to be set
-
setDestination
Description copied from interface:ExtensionDraft
Defines where the Extension can be reached.
- Specified by:
setDestination
in interfaceExtensionDraft
- Parameters:
destination
- value to be set
-
setTriggers
Description copied from interface:ExtensionDraft
Describes what triggers the Extension.
- Specified by:
setTriggers
in interfaceExtensionDraft
- Parameters:
triggers
- values to be set
-
setTriggers
Description copied from interface:ExtensionDraft
Describes what triggers the Extension.
- Specified by:
setTriggers
in interfaceExtensionDraft
- Parameters:
triggers
- values to be set
-
setTimeoutInMs
Description copied from interface:ExtensionDraft
Maximum time (in milliseconds) the Extension can respond within. If no timeout is provided, the default value is used for all types of Extensions. The maximum value is 10000 ms (10 seconds) for
payment
Extensions and 2000 ms (2 seconds) for all other Extensions.This limit can be increased per Project after we review the performance impact. Please contact our support via the Support Portal and provide the Region, Project key, and use case.
- Specified by:
setTimeoutInMs
in interfaceExtensionDraft
- Parameters:
timeoutInMs
- value to be set
-
equals
-
hashCode
public int hashCode()
-