All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.finra.herd.sdk.model.StorageUnitNotificationRegistration Maven / Gradle / Ivy

There is a newer version: 0.160.0
Show newest version
/*
 * 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;

/**
 * A notification registration for storage unit events
 */
@ApiModel(description = "A notification registration for storage unit events")
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2020-07-16T17:44:47.669-04:00[America/New_York]")
public class StorageUnitNotificationRegistration {
  @JsonProperty("id")
  private Long id = null;

  @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 StorageUnitNotificationRegistration id(Long id) {
    this.id = id;
    return this;
  }

   /**
   * A system unique ID of this registration
   * @return id
  **/
  @ApiModelProperty(value = "A system unique ID of this registration")
  public Long getId() {
    return id;
  }

  public void setId(Long id) {
    this.id = id;
  }

  public StorageUnitNotificationRegistration 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 StorageUnitNotificationRegistration 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 StorageUnitNotificationRegistration 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 StorageUnitNotificationRegistration jobActions(List jobActions) {
    this.jobActions = jobActions;
    return this;
  }

  public StorageUnitNotificationRegistration 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 StorageUnitNotificationRegistration notificationRegistrationStatus(String notificationRegistrationStatus) {
    this.notificationRegistrationStatus = notificationRegistrationStatus;
    return this;
  }

   /**
   * The status of the notification registration. One of the following values: ENABLED or DISABLED
   * @return notificationRegistrationStatus
  **/
  @ApiModelProperty(required = true, value = "The status of the notification registration. One of the following values: ENABLED or DISABLED")
  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;
    }
    StorageUnitNotificationRegistration storageUnitNotificationRegistration = (StorageUnitNotificationRegistration) o;
    return Objects.equals(this.id, storageUnitNotificationRegistration.id) &&
        Objects.equals(this.storageUnitNotificationRegistrationKey, storageUnitNotificationRegistration.storageUnitNotificationRegistrationKey) &&
        Objects.equals(this.storageUnitEventType, storageUnitNotificationRegistration.storageUnitEventType) &&
        Objects.equals(this.storageUnitNotificationFilter, storageUnitNotificationRegistration.storageUnitNotificationFilter) &&
        Objects.equals(this.jobActions, storageUnitNotificationRegistration.jobActions) &&
        Objects.equals(this.notificationRegistrationStatus, storageUnitNotificationRegistration.notificationRegistrationStatus);
  }

  @Override
  public int hashCode() {
    return Objects.hash(id, storageUnitNotificationRegistrationKey, storageUnitEventType, storageUnitNotificationFilter, jobActions, notificationRegistrationStatus);
  }


  @Override
  public String toString() {
    StringBuilder sb = new StringBuilder();
    sb.append("class StorageUnitNotificationRegistration {\n");
    
    sb.append("    id: ").append(toIndentedString(id)).append("\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    ");
  }

}





© 2015 - 2024 Weber Informatics LLC | Privacy Policy