org.finra.herd.sdk.model.BusinessObjectDataNotificationRegistrationUpdateRequest Maven / Gradle / Ivy
/*
* herd-external
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
* OpenAPI spec version: 0.125.0
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*/
package org.finra.herd.sdk.model;
import java.util.Objects;
import java.util.Arrays;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonValue;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.util.ArrayList;
import java.util.List;
import org.finra.herd.sdk.model.BusinessObjectDataNotificationFilter;
import org.finra.herd.sdk.model.JobAction;
/**
* The request to update a business object data notification registration
*/
@ApiModel(description = "The request to update a business object data notification registration")
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2020-07-16T17:44:47.669-04:00[America/New_York]")
public class BusinessObjectDataNotificationRegistrationUpdateRequest {
@JsonProperty("businessObjectDataEventType")
private String businessObjectDataEventType = null;
@JsonProperty("businessObjectDataNotificationFilter")
private BusinessObjectDataNotificationFilter businessObjectDataNotificationFilter = null;
@JsonProperty("jobActions")
private List jobActions = null;
@JsonProperty("notificationRegistrationStatus")
private String notificationRegistrationStatus = null;
public BusinessObjectDataNotificationRegistrationUpdateRequest businessObjectDataEventType(String businessObjectDataEventType) {
this.businessObjectDataEventType = businessObjectDataEventType;
return this;
}
/**
* The type of business object data event in which this notification should trigger
* @return businessObjectDataEventType
**/
@ApiModelProperty(required = true, value = "The type of business object data event in which this notification should trigger")
public String getBusinessObjectDataEventType() {
return businessObjectDataEventType;
}
public void setBusinessObjectDataEventType(String businessObjectDataEventType) {
this.businessObjectDataEventType = businessObjectDataEventType;
}
public BusinessObjectDataNotificationRegistrationUpdateRequest businessObjectDataNotificationFilter(BusinessObjectDataNotificationFilter businessObjectDataNotificationFilter) {
this.businessObjectDataNotificationFilter = businessObjectDataNotificationFilter;
return this;
}
/**
* Get businessObjectDataNotificationFilter
* @return businessObjectDataNotificationFilter
**/
@ApiModelProperty(required = true, value = "")
public BusinessObjectDataNotificationFilter getBusinessObjectDataNotificationFilter() {
return businessObjectDataNotificationFilter;
}
public void setBusinessObjectDataNotificationFilter(BusinessObjectDataNotificationFilter businessObjectDataNotificationFilter) {
this.businessObjectDataNotificationFilter = businessObjectDataNotificationFilter;
}
public BusinessObjectDataNotificationRegistrationUpdateRequest jobActions(List jobActions) {
this.jobActions = jobActions;
return this;
}
public BusinessObjectDataNotificationRegistrationUpdateRequest addJobActionsItem(JobAction jobActionsItem) {
if (this.jobActions == null) {
this.jobActions = new ArrayList();
}
this.jobActions.add(jobActionsItem);
return this;
}
/**
* The list of jobs to execute when this notification is triggered
* @return jobActions
**/
@ApiModelProperty(value = "The list of jobs to execute when this notification is triggered")
public List getJobActions() {
return jobActions;
}
public void setJobActions(List jobActions) {
this.jobActions = jobActions;
}
public BusinessObjectDataNotificationRegistrationUpdateRequest notificationRegistrationStatus(String notificationRegistrationStatus) {
this.notificationRegistrationStatus = notificationRegistrationStatus;
return this;
}
/**
* The status of the notification registration
* @return notificationRegistrationStatus
**/
@ApiModelProperty(required = true, value = "The status of the notification registration")
public String getNotificationRegistrationStatus() {
return notificationRegistrationStatus;
}
public void setNotificationRegistrationStatus(String notificationRegistrationStatus) {
this.notificationRegistrationStatus = notificationRegistrationStatus;
}
@Override
public boolean equals(java.lang.Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
BusinessObjectDataNotificationRegistrationUpdateRequest businessObjectDataNotificationRegistrationUpdateRequest = (BusinessObjectDataNotificationRegistrationUpdateRequest) o;
return Objects.equals(this.businessObjectDataEventType, businessObjectDataNotificationRegistrationUpdateRequest.businessObjectDataEventType) &&
Objects.equals(this.businessObjectDataNotificationFilter, businessObjectDataNotificationRegistrationUpdateRequest.businessObjectDataNotificationFilter) &&
Objects.equals(this.jobActions, businessObjectDataNotificationRegistrationUpdateRequest.jobActions) &&
Objects.equals(this.notificationRegistrationStatus, businessObjectDataNotificationRegistrationUpdateRequest.notificationRegistrationStatus);
}
@Override
public int hashCode() {
return Objects.hash(businessObjectDataEventType, businessObjectDataNotificationFilter, jobActions, notificationRegistrationStatus);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class BusinessObjectDataNotificationRegistrationUpdateRequest {\n");
sb.append(" businessObjectDataEventType: ").append(toIndentedString(businessObjectDataEventType)).append("\n");
sb.append(" businessObjectDataNotificationFilter: ").append(toIndentedString(businessObjectDataNotificationFilter)).append("\n");
sb.append(" jobActions: ").append(toIndentedString(jobActions)).append("\n");
sb.append(" notificationRegistrationStatus: ").append(toIndentedString(notificationRegistrationStatus)).append("\n");
sb.append("}");
return sb.toString();
}
/**
* Convert the given object to string with each line indented by 4 spaces
* (except the first line).
*/
private String toIndentedString(java.lang.Object o) {
if (o == null) {
return "null";
}
return o.toString().replace("\n", "\n ");
}
}