com.mux.sdk.models.IncidentNotificationRule Maven / Gradle / Ivy
The newest version!
/*
* Mux API
* Mux is how developers build online video. This API encompasses both Mux Video and Mux Data functionality to help you build your video-related projects better and faster than ever before.
*
* The version of the OpenAPI document: v1
* Contact: [email protected]
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*/
package com.mux.sdk.models;
import java.util.Objects;
import java.util.Arrays;
import com.google.gson.TypeAdapter;
import com.google.gson.annotations.JsonAdapter;
import com.google.gson.annotations.SerializedName;
import com.google.gson.stream.JsonReader;
import com.google.gson.stream.JsonWriter;
import com.mux.sdk.models.NotificationRule;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.io.IOException;
/**
* IncidentNotificationRule
*/
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen")
public class IncidentNotificationRule {
public static final String SERIALIZED_NAME_STATUS = "status";
@SerializedName(SERIALIZED_NAME_STATUS)
private String status;
public static final String SERIALIZED_NAME_RULES = "rules";
@SerializedName(SERIALIZED_NAME_RULES)
private java.util.List rules = null;
public static final String SERIALIZED_NAME_PROPERTY_ID = "property_id";
@SerializedName(SERIALIZED_NAME_PROPERTY_ID)
private String propertyId;
public static final String SERIALIZED_NAME_ID = "id";
@SerializedName(SERIALIZED_NAME_ID)
private String id;
public static final String SERIALIZED_NAME_ACTION = "action";
@SerializedName(SERIALIZED_NAME_ACTION)
private String action;
public IncidentNotificationRule status(String status) {
this.status = status;
return this;
}
/**
* Get status
* @return status
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "")
public String getStatus() {
return status;
}
public void setStatus(String status) {
this.status = status;
}
public IncidentNotificationRule rules(java.util.List rules) {
this.rules = rules;
return this;
}
public IncidentNotificationRule addRulesItem(NotificationRule rulesItem) {
if (this.rules == null) {
this.rules = new java.util.ArrayList<>();
}
this.rules.add(rulesItem);
return this;
}
/**
* Get rules
* @return rules
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "")
public java.util.List getRules() {
return rules;
}
public void setRules(java.util.List rules) {
this.rules = rules;
}
public IncidentNotificationRule propertyId(String propertyId) {
this.propertyId = propertyId;
return this;
}
/**
* Get propertyId
* @return propertyId
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "")
public String getPropertyId() {
return propertyId;
}
public void setPropertyId(String propertyId) {
this.propertyId = propertyId;
}
public IncidentNotificationRule id(String id) {
this.id = id;
return this;
}
/**
* Get id
* @return id
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "")
public String getId() {
return id;
}
public void setId(String id) {
this.id = id;
}
public IncidentNotificationRule action(String action) {
this.action = action;
return this;
}
/**
* Get action
* @return action
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "")
public String getAction() {
return action;
}
public void setAction(String action) {
this.action = action;
}
@Override
public boolean equals(Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
IncidentNotificationRule incidentNotificationRule = (IncidentNotificationRule) o;
return Objects.equals(this.status, incidentNotificationRule.status) &&
Objects.equals(this.rules, incidentNotificationRule.rules) &&
Objects.equals(this.propertyId, incidentNotificationRule.propertyId) &&
Objects.equals(this.id, incidentNotificationRule.id) &&
Objects.equals(this.action, incidentNotificationRule.action);
}
@Override
public int hashCode() {
return Objects.hash(status, rules, propertyId, id, action);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class IncidentNotificationRule {\n");
sb.append(" status: ").append(toIndentedString(status)).append("\n");
sb.append(" rules: ").append(toIndentedString(rules)).append("\n");
sb.append(" propertyId: ").append(toIndentedString(propertyId)).append("\n");
sb.append(" id: ").append(toIndentedString(id)).append("\n");
sb.append(" action: ").append(toIndentedString(action)).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(Object o) {
if (o == null) {
return "null";
}
return o.toString().replace("\n", "\n ");
}
}