Package com.affinda.api.client.models
Class ResthookSubscriptionCreate
- java.lang.Object
-
- com.affinda.api.client.models.ResthookSubscriptionCreate
-
public final class ResthookSubscriptionCreate extends Object
The ResthookSubscriptionCreate model.
-
-
Constructor Summary
Constructors Constructor Description ResthookSubscriptionCreate()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ResthookEventgetEvent()Get the event property: The event name to subscribe to.StringgetOrganization()Get the organization property: The organization property.StringgetTargetUrl()Get the targetUrl property: URL of the resthook's receiver.VersiongetVersion()Get the version property: Version of the resthook subscription.ResthookSubscriptionCreatesetEvent(ResthookEvent event)Set the event property: The event name to subscribe to.ResthookSubscriptionCreatesetOrganization(String organization)Set the organization property: The organization property.ResthookSubscriptionCreatesetTargetUrl(String targetUrl)Set the targetUrl property: URL of the resthook's receiver.ResthookSubscriptionCreatesetVersion(Version version)Set the version property: Version of the resthook subscription.
-
-
-
Method Detail
-
getTargetUrl
public String getTargetUrl()
Get the targetUrl property: URL of the resthook's receiver.- Returns:
- the targetUrl value.
-
setTargetUrl
public ResthookSubscriptionCreate setTargetUrl(String targetUrl)
Set the targetUrl property: URL of the resthook's receiver.- Parameters:
targetUrl- the targetUrl value to set.- Returns:
- the ResthookSubscriptionCreate object itself.
-
getEvent
public ResthookEvent getEvent()
Get the event property: The event name to subscribe to.- Returns:
- the event value.
-
setEvent
public ResthookSubscriptionCreate setEvent(ResthookEvent event)
Set the event property: The event name to subscribe to.- Parameters:
event- the event value to set.- Returns:
- the ResthookSubscriptionCreate object itself.
-
getOrganization
public String getOrganization()
Get the organization property: The organization property.- Returns:
- the organization value.
-
setOrganization
public ResthookSubscriptionCreate setOrganization(String organization)
Set the organization property: The organization property.- Parameters:
organization- the organization value to set.- Returns:
- the ResthookSubscriptionCreate object itself.
-
getVersion
public Version getVersion()
Get the version property: Version of the resthook subscription. Determines the resthook body being fired.- Returns:
- the version value.
-
setVersion
public ResthookSubscriptionCreate setVersion(Version version)
Set the version property: Version of the resthook subscription. Determines the resthook body being fired.- Parameters:
version- the version value to set.- Returns:
- the ResthookSubscriptionCreate object itself.
-
-