
com.affinda.api.client.models.ResthookSubscriptionUpdate Maven / Gradle / Ivy
package com.affinda.api.client.models;
import com.azure.core.annotation.Fluent;
import com.fasterxml.jackson.annotation.JsonProperty;
/** The ResthookSubscriptionUpdate model. */
@Fluent
public final class ResthookSubscriptionUpdate {
/*
* The event name to subscribe to.
*/
@JsonProperty(value = "event")
private ResthookEvent event;
/*
* Uniquely identify an organization.
*/
@JsonProperty(value = "organization")
private String organization;
/*
* Uniquely identify a workspace.
*/
@JsonProperty(value = "workspace")
private String workspace;
/*
* Version of the resthook subscription. Determines the resthook body being
* fired.
*/
@JsonProperty(value = "version")
private Version version;
/**
* Get the event property: The event name to subscribe to.
*
* @return the event value.
*/
public ResthookEvent getEvent() {
return this.event;
}
/**
* Set the event property: The event name to subscribe to.
*
* @param event the event value to set.
* @return the ResthookSubscriptionUpdate object itself.
*/
public ResthookSubscriptionUpdate setEvent(ResthookEvent event) {
this.event = event;
return this;
}
/**
* Get the organization property: Uniquely identify an organization.
*
* @return the organization value.
*/
public String getOrganization() {
return this.organization;
}
/**
* Set the organization property: Uniquely identify an organization.
*
* @param organization the organization value to set.
* @return the ResthookSubscriptionUpdate object itself.
*/
public ResthookSubscriptionUpdate setOrganization(String organization) {
this.organization = organization;
return this;
}
/**
* Get the workspace property: Uniquely identify a workspace.
*
* @return the workspace value.
*/
public String getWorkspace() {
return this.workspace;
}
/**
* Set the workspace property: Uniquely identify a workspace.
*
* @param workspace the workspace value to set.
* @return the ResthookSubscriptionUpdate object itself.
*/
public ResthookSubscriptionUpdate setWorkspace(String workspace) {
this.workspace = workspace;
return this;
}
/**
* Get the version property: Version of the resthook subscription. Determines the resthook body being fired.
*
* @return the version value.
*/
public Version getVersion() {
return this.version;
}
/**
* Set the version property: Version of the resthook subscription. Determines the resthook body being fired.
*
* @param version the version value to set.
* @return the ResthookSubscriptionUpdate object itself.
*/
public ResthookSubscriptionUpdate setVersion(Version version) {
this.version = version;
return this;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy