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

org.finra.herd.sdk.model.StorageUnitNotificationRegistrationUpdateRequest 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.StorageUnitNotificationFilter;

/**
 * The request to update a storage unit notification registration
 */
@ApiModel(description = "The request to update 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 StorageUnitNotificationRegistrationUpdateRequest {
  @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 StorageUnitNotificationRegistrationUpdateRequest 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 StorageUnitNotificationRegistrationUpdateRequest 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 StorageUnitNotificationRegistrationUpdateRequest jobActions(List jobActions) {
    this.jobActions = jobActions;
    return this;
  }

  public StorageUnitNotificationRegistrationUpdateRequest 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 StorageUnitNotificationRegistrationUpdateRequest 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;
    }
    StorageUnitNotificationRegistrationUpdateRequest storageUnitNotificationRegistrationUpdateRequest = (StorageUnitNotificationRegistrationUpdateRequest) o;
    return Objects.equals(this.storageUnitEventType, storageUnitNotificationRegistrationUpdateRequest.storageUnitEventType) &&
        Objects.equals(this.storageUnitNotificationFilter, storageUnitNotificationRegistrationUpdateRequest.storageUnitNotificationFilter) &&
        Objects.equals(this.jobActions, storageUnitNotificationRegistrationUpdateRequest.jobActions) &&
        Objects.equals(this.notificationRegistrationStatus, storageUnitNotificationRegistrationUpdateRequest.notificationRegistrationStatus);
  }

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


  @Override
  public String toString() {
    StringBuilder sb = new StringBuilder();
    sb.append("class StorageUnitNotificationRegistrationUpdateRequest {\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