org.finra.herd.sdk.model.StorageUnitNotificationRegistrationCreateRequest 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.JobAction;
import org.finra.herd.sdk.model.NotificationRegistrationKey;
import org.finra.herd.sdk.model.StorageUnitNotificationFilter;
/**
* The request to create a storage unit notification registration
*/
@ApiModel(description = "The request to create a storage unit 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 StorageUnitNotificationRegistrationCreateRequest {
@JsonProperty("storageUnitNotificationRegistrationKey")
private NotificationRegistrationKey storageUnitNotificationRegistrationKey = null;
@JsonProperty("storageUnitEventType")
private String storageUnitEventType = null;
@JsonProperty("storageUnitNotificationFilter")
private StorageUnitNotificationFilter storageUnitNotificationFilter = null;
@JsonProperty("jobActions")
private List jobActions = null;
@JsonProperty("notificationRegistrationStatus")
private String notificationRegistrationStatus = null;
public StorageUnitNotificationRegistrationCreateRequest storageUnitNotificationRegistrationKey(NotificationRegistrationKey storageUnitNotificationRegistrationKey) {
this.storageUnitNotificationRegistrationKey = storageUnitNotificationRegistrationKey;
return this;
}
/**
* Get storageUnitNotificationRegistrationKey
* @return storageUnitNotificationRegistrationKey
**/
@ApiModelProperty(required = true, value = "")
public NotificationRegistrationKey getStorageUnitNotificationRegistrationKey() {
return storageUnitNotificationRegistrationKey;
}
public void setStorageUnitNotificationRegistrationKey(NotificationRegistrationKey storageUnitNotificationRegistrationKey) {
this.storageUnitNotificationRegistrationKey = storageUnitNotificationRegistrationKey;
}
public StorageUnitNotificationRegistrationCreateRequest storageUnitEventType(String storageUnitEventType) {
this.storageUnitEventType = storageUnitEventType;
return this;
}
/**
* The type of storage unit event in which this notification should trigger. Supported event types: STRGE_UNIT_STTS_CHG
* @return storageUnitEventType
**/
@ApiModelProperty(required = true, value = "The type of storage unit event in which this notification should trigger. Supported event types: STRGE_UNIT_STTS_CHG ")
public String getStorageUnitEventType() {
return storageUnitEventType;
}
public void setStorageUnitEventType(String storageUnitEventType) {
this.storageUnitEventType = storageUnitEventType;
}
public StorageUnitNotificationRegistrationCreateRequest storageUnitNotificationFilter(StorageUnitNotificationFilter storageUnitNotificationFilter) {
this.storageUnitNotificationFilter = storageUnitNotificationFilter;
return this;
}
/**
* Get storageUnitNotificationFilter
* @return storageUnitNotificationFilter
**/
@ApiModelProperty(required = true, value = "")
public StorageUnitNotificationFilter getStorageUnitNotificationFilter() {
return storageUnitNotificationFilter;
}
public void setStorageUnitNotificationFilter(StorageUnitNotificationFilter storageUnitNotificationFilter) {
this.storageUnitNotificationFilter = storageUnitNotificationFilter;
}
public StorageUnitNotificationRegistrationCreateRequest jobActions(List jobActions) {
this.jobActions = jobActions;
return this;
}
public StorageUnitNotificationRegistrationCreateRequest 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 StorageUnitNotificationRegistrationCreateRequest notificationRegistrationStatus(String notificationRegistrationStatus) {
this.notificationRegistrationStatus = notificationRegistrationStatus;
return this;
}
/**
* The status of the notification registration. One of the following values: ENABLED or DISABLED. Default value is ENABLED
* @return notificationRegistrationStatus
**/
@ApiModelProperty(value = "The status of the notification registration. One of the following values: ENABLED or DISABLED. Default value is ENABLED ")
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;
}
StorageUnitNotificationRegistrationCreateRequest storageUnitNotificationRegistrationCreateRequest = (StorageUnitNotificationRegistrationCreateRequest) o;
return Objects.equals(this.storageUnitNotificationRegistrationKey, storageUnitNotificationRegistrationCreateRequest.storageUnitNotificationRegistrationKey) &&
Objects.equals(this.storageUnitEventType, storageUnitNotificationRegistrationCreateRequest.storageUnitEventType) &&
Objects.equals(this.storageUnitNotificationFilter, storageUnitNotificationRegistrationCreateRequest.storageUnitNotificationFilter) &&
Objects.equals(this.jobActions, storageUnitNotificationRegistrationCreateRequest.jobActions) &&
Objects.equals(this.notificationRegistrationStatus, storageUnitNotificationRegistrationCreateRequest.notificationRegistrationStatus);
}
@Override
public int hashCode() {
return Objects.hash(storageUnitNotificationRegistrationKey, storageUnitEventType, storageUnitNotificationFilter, jobActions, notificationRegistrationStatus);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class StorageUnitNotificationRegistrationCreateRequest {\n");
sb.append(" storageUnitNotificationRegistrationKey: ").append(toIndentedString(storageUnitNotificationRegistrationKey)).append("\n");
sb.append(" storageUnitEventType: ").append(toIndentedString(storageUnitEventType)).append("\n");
sb.append(" storageUnitNotificationFilter: ").append(toIndentedString(storageUnitNotificationFilter)).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 ");
}
}