package tv.pluto.mongo.entities.transcodejobs;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

@Data
@NoArgsConstructor
@AllArgsConstructor
public class EncryptionParams {
  private String schema = "";
  private Integer rotationInterval;
  private String keyFileName = "";

  public String getSchema() {
    return schema == null ? "" : schema;
  }

  public String getKeyFileName() {
    return keyFileName == null ? "" : keyFileName;
  }

  public Integer getRotationInterval() {
    return rotationInterval == null ? 0 : rotationInterval;
  }
}
