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

com.volcengine.cdn.model.SignedUrlAuthActionForAddCdnDomainInput Maven / Gradle / Ivy

There is a newer version: 0.1.144
Show newest version
/*
 * cdn
 * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
 *
 * OpenAPI spec version: common-version
 * 
 *
 * NOTE: This class is auto generated by the swagger code generator program.
 * https://github.com/swagger-api/swagger-codegen.git
 * Do not edit the class manually.
 */

package com.volcengine.cdn.model;

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.volcengine.cdn.model.CustomVariableRulesForAddCdnDomainInput;
import com.volcengine.cdn.model.RewriteM3u8RuleForAddCdnDomainInput;
import com.volcengine.cdn.model.UrlAuthCustomActionForAddCdnDomainInput;
import io.swagger.v3.oas.annotations.media.Schema;
import java.io.IOException;
import java.util.ArrayList;
import java.util.List;
import javax.validation.constraints.*;
import javax.validation.Valid;
/**
 * SignedUrlAuthActionForAddCdnDomainInput
 */



public class SignedUrlAuthActionForAddCdnDomainInput {
  @SerializedName("AuthAlgorithm")
  private String authAlgorithm = null;

  @SerializedName("BackupSecretKey")
  private String backupSecretKey = null;

  @SerializedName("CustomVariableRules")
  private CustomVariableRulesForAddCdnDomainInput customVariableRules = null;

  @SerializedName("Duration")
  private Long duration = null;

  @SerializedName("KeepOriginArg")
  private Boolean keepOriginArg = null;

  @SerializedName("MasterSecretKey")
  private String masterSecretKey = null;

  @SerializedName("MpdVarExpand")
  private Boolean mpdVarExpand = null;

  @SerializedName("RewriteM3u8")
  private Boolean rewriteM3u8 = null;

  @SerializedName("RewriteM3u8Rule")
  private RewriteM3u8RuleForAddCdnDomainInput rewriteM3u8Rule = null;

  @SerializedName("RewriteMpd")
  private Boolean rewriteMpd = null;

  @SerializedName("SignName")
  private String signName = null;

  @SerializedName("SignatureRule")
  private List signatureRule = null;

  @SerializedName("TimeFormat")
  private String timeFormat = null;

  @SerializedName("TimeName")
  private String timeName = null;

  @SerializedName("URLAuthType")
  private String urLAuthType = null;

  @SerializedName("UrlAuthCustomAction")
  private UrlAuthCustomActionForAddCdnDomainInput urlAuthCustomAction = null;

  public SignedUrlAuthActionForAddCdnDomainInput authAlgorithm(String authAlgorithm) {
    this.authAlgorithm = authAlgorithm;
    return this;
  }

   /**
   * Get authAlgorithm
   * @return authAlgorithm
  **/
  @Schema(description = "")
  public String getAuthAlgorithm() {
    return authAlgorithm;
  }

  public void setAuthAlgorithm(String authAlgorithm) {
    this.authAlgorithm = authAlgorithm;
  }

  public SignedUrlAuthActionForAddCdnDomainInput backupSecretKey(String backupSecretKey) {
    this.backupSecretKey = backupSecretKey;
    return this;
  }

   /**
   * Get backupSecretKey
   * @return backupSecretKey
  **/
  @Schema(description = "")
  public String getBackupSecretKey() {
    return backupSecretKey;
  }

  public void setBackupSecretKey(String backupSecretKey) {
    this.backupSecretKey = backupSecretKey;
  }

  public SignedUrlAuthActionForAddCdnDomainInput customVariableRules(CustomVariableRulesForAddCdnDomainInput customVariableRules) {
    this.customVariableRules = customVariableRules;
    return this;
  }

   /**
   * Get customVariableRules
   * @return customVariableRules
  **/
  @Valid
  @Schema(description = "")
  public CustomVariableRulesForAddCdnDomainInput getCustomVariableRules() {
    return customVariableRules;
  }

  public void setCustomVariableRules(CustomVariableRulesForAddCdnDomainInput customVariableRules) {
    this.customVariableRules = customVariableRules;
  }

  public SignedUrlAuthActionForAddCdnDomainInput duration(Long duration) {
    this.duration = duration;
    return this;
  }

   /**
   * Get duration
   * @return duration
  **/
  @Schema(description = "")
  public Long getDuration() {
    return duration;
  }

  public void setDuration(Long duration) {
    this.duration = duration;
  }

  public SignedUrlAuthActionForAddCdnDomainInput keepOriginArg(Boolean keepOriginArg) {
    this.keepOriginArg = keepOriginArg;
    return this;
  }

   /**
   * Get keepOriginArg
   * @return keepOriginArg
  **/
  @Schema(description = "")
  public Boolean isKeepOriginArg() {
    return keepOriginArg;
  }

  public void setKeepOriginArg(Boolean keepOriginArg) {
    this.keepOriginArg = keepOriginArg;
  }

  public SignedUrlAuthActionForAddCdnDomainInput masterSecretKey(String masterSecretKey) {
    this.masterSecretKey = masterSecretKey;
    return this;
  }

   /**
   * Get masterSecretKey
   * @return masterSecretKey
  **/
  @Schema(description = "")
  public String getMasterSecretKey() {
    return masterSecretKey;
  }

  public void setMasterSecretKey(String masterSecretKey) {
    this.masterSecretKey = masterSecretKey;
  }

  public SignedUrlAuthActionForAddCdnDomainInput mpdVarExpand(Boolean mpdVarExpand) {
    this.mpdVarExpand = mpdVarExpand;
    return this;
  }

   /**
   * Get mpdVarExpand
   * @return mpdVarExpand
  **/
  @Schema(description = "")
  public Boolean isMpdVarExpand() {
    return mpdVarExpand;
  }

  public void setMpdVarExpand(Boolean mpdVarExpand) {
    this.mpdVarExpand = mpdVarExpand;
  }

  public SignedUrlAuthActionForAddCdnDomainInput rewriteM3u8(Boolean rewriteM3u8) {
    this.rewriteM3u8 = rewriteM3u8;
    return this;
  }

   /**
   * Get rewriteM3u8
   * @return rewriteM3u8
  **/
  @Schema(description = "")
  public Boolean isRewriteM3u8() {
    return rewriteM3u8;
  }

  public void setRewriteM3u8(Boolean rewriteM3u8) {
    this.rewriteM3u8 = rewriteM3u8;
  }

  public SignedUrlAuthActionForAddCdnDomainInput rewriteM3u8Rule(RewriteM3u8RuleForAddCdnDomainInput rewriteM3u8Rule) {
    this.rewriteM3u8Rule = rewriteM3u8Rule;
    return this;
  }

   /**
   * Get rewriteM3u8Rule
   * @return rewriteM3u8Rule
  **/
  @Valid
  @Schema(description = "")
  public RewriteM3u8RuleForAddCdnDomainInput getRewriteM3u8Rule() {
    return rewriteM3u8Rule;
  }

  public void setRewriteM3u8Rule(RewriteM3u8RuleForAddCdnDomainInput rewriteM3u8Rule) {
    this.rewriteM3u8Rule = rewriteM3u8Rule;
  }

  public SignedUrlAuthActionForAddCdnDomainInput rewriteMpd(Boolean rewriteMpd) {
    this.rewriteMpd = rewriteMpd;
    return this;
  }

   /**
   * Get rewriteMpd
   * @return rewriteMpd
  **/
  @Schema(description = "")
  public Boolean isRewriteMpd() {
    return rewriteMpd;
  }

  public void setRewriteMpd(Boolean rewriteMpd) {
    this.rewriteMpd = rewriteMpd;
  }

  public SignedUrlAuthActionForAddCdnDomainInput signName(String signName) {
    this.signName = signName;
    return this;
  }

   /**
   * Get signName
   * @return signName
  **/
  @Schema(description = "")
  public String getSignName() {
    return signName;
  }

  public void setSignName(String signName) {
    this.signName = signName;
  }

  public SignedUrlAuthActionForAddCdnDomainInput signatureRule(List signatureRule) {
    this.signatureRule = signatureRule;
    return this;
  }

  public SignedUrlAuthActionForAddCdnDomainInput addSignatureRuleItem(String signatureRuleItem) {
    if (this.signatureRule == null) {
      this.signatureRule = new ArrayList();
    }
    this.signatureRule.add(signatureRuleItem);
    return this;
  }

   /**
   * Get signatureRule
   * @return signatureRule
  **/
  @Schema(description = "")
  public List getSignatureRule() {
    return signatureRule;
  }

  public void setSignatureRule(List signatureRule) {
    this.signatureRule = signatureRule;
  }

  public SignedUrlAuthActionForAddCdnDomainInput timeFormat(String timeFormat) {
    this.timeFormat = timeFormat;
    return this;
  }

   /**
   * Get timeFormat
   * @return timeFormat
  **/
  @Schema(description = "")
  public String getTimeFormat() {
    return timeFormat;
  }

  public void setTimeFormat(String timeFormat) {
    this.timeFormat = timeFormat;
  }

  public SignedUrlAuthActionForAddCdnDomainInput timeName(String timeName) {
    this.timeName = timeName;
    return this;
  }

   /**
   * Get timeName
   * @return timeName
  **/
  @Schema(description = "")
  public String getTimeName() {
    return timeName;
  }

  public void setTimeName(String timeName) {
    this.timeName = timeName;
  }

  public SignedUrlAuthActionForAddCdnDomainInput urLAuthType(String urLAuthType) {
    this.urLAuthType = urLAuthType;
    return this;
  }

   /**
   * Get urLAuthType
   * @return urLAuthType
  **/
  @Schema(description = "")
  public String getUrLAuthType() {
    return urLAuthType;
  }

  public void setUrLAuthType(String urLAuthType) {
    this.urLAuthType = urLAuthType;
  }

  public SignedUrlAuthActionForAddCdnDomainInput urlAuthCustomAction(UrlAuthCustomActionForAddCdnDomainInput urlAuthCustomAction) {
    this.urlAuthCustomAction = urlAuthCustomAction;
    return this;
  }

   /**
   * Get urlAuthCustomAction
   * @return urlAuthCustomAction
  **/
  @Valid
  @Schema(description = "")
  public UrlAuthCustomActionForAddCdnDomainInput getUrlAuthCustomAction() {
    return urlAuthCustomAction;
  }

  public void setUrlAuthCustomAction(UrlAuthCustomActionForAddCdnDomainInput urlAuthCustomAction) {
    this.urlAuthCustomAction = urlAuthCustomAction;
  }


  @Override
  public boolean equals(java.lang.Object o) {
    if (this == o) {
      return true;
    }
    if (o == null || getClass() != o.getClass()) {
      return false;
    }
    SignedUrlAuthActionForAddCdnDomainInput signedUrlAuthActionForAddCdnDomainInput = (SignedUrlAuthActionForAddCdnDomainInput) o;
    return Objects.equals(this.authAlgorithm, signedUrlAuthActionForAddCdnDomainInput.authAlgorithm) &&
        Objects.equals(this.backupSecretKey, signedUrlAuthActionForAddCdnDomainInput.backupSecretKey) &&
        Objects.equals(this.customVariableRules, signedUrlAuthActionForAddCdnDomainInput.customVariableRules) &&
        Objects.equals(this.duration, signedUrlAuthActionForAddCdnDomainInput.duration) &&
        Objects.equals(this.keepOriginArg, signedUrlAuthActionForAddCdnDomainInput.keepOriginArg) &&
        Objects.equals(this.masterSecretKey, signedUrlAuthActionForAddCdnDomainInput.masterSecretKey) &&
        Objects.equals(this.mpdVarExpand, signedUrlAuthActionForAddCdnDomainInput.mpdVarExpand) &&
        Objects.equals(this.rewriteM3u8, signedUrlAuthActionForAddCdnDomainInput.rewriteM3u8) &&
        Objects.equals(this.rewriteM3u8Rule, signedUrlAuthActionForAddCdnDomainInput.rewriteM3u8Rule) &&
        Objects.equals(this.rewriteMpd, signedUrlAuthActionForAddCdnDomainInput.rewriteMpd) &&
        Objects.equals(this.signName, signedUrlAuthActionForAddCdnDomainInput.signName) &&
        Objects.equals(this.signatureRule, signedUrlAuthActionForAddCdnDomainInput.signatureRule) &&
        Objects.equals(this.timeFormat, signedUrlAuthActionForAddCdnDomainInput.timeFormat) &&
        Objects.equals(this.timeName, signedUrlAuthActionForAddCdnDomainInput.timeName) &&
        Objects.equals(this.urLAuthType, signedUrlAuthActionForAddCdnDomainInput.urLAuthType) &&
        Objects.equals(this.urlAuthCustomAction, signedUrlAuthActionForAddCdnDomainInput.urlAuthCustomAction);
  }

  @Override
  public int hashCode() {
    return Objects.hash(authAlgorithm, backupSecretKey, customVariableRules, duration, keepOriginArg, masterSecretKey, mpdVarExpand, rewriteM3u8, rewriteM3u8Rule, rewriteMpd, signName, signatureRule, timeFormat, timeName, urLAuthType, urlAuthCustomAction);
  }


  @Override
  public String toString() {
    StringBuilder sb = new StringBuilder();
    sb.append("class SignedUrlAuthActionForAddCdnDomainInput {\n");
    
    sb.append("    authAlgorithm: ").append(toIndentedString(authAlgorithm)).append("\n");
    sb.append("    backupSecretKey: ").append(toIndentedString(backupSecretKey)).append("\n");
    sb.append("    customVariableRules: ").append(toIndentedString(customVariableRules)).append("\n");
    sb.append("    duration: ").append(toIndentedString(duration)).append("\n");
    sb.append("    keepOriginArg: ").append(toIndentedString(keepOriginArg)).append("\n");
    sb.append("    masterSecretKey: ").append(toIndentedString(masterSecretKey)).append("\n");
    sb.append("    mpdVarExpand: ").append(toIndentedString(mpdVarExpand)).append("\n");
    sb.append("    rewriteM3u8: ").append(toIndentedString(rewriteM3u8)).append("\n");
    sb.append("    rewriteM3u8Rule: ").append(toIndentedString(rewriteM3u8Rule)).append("\n");
    sb.append("    rewriteMpd: ").append(toIndentedString(rewriteMpd)).append("\n");
    sb.append("    signName: ").append(toIndentedString(signName)).append("\n");
    sb.append("    signatureRule: ").append(toIndentedString(signatureRule)).append("\n");
    sb.append("    timeFormat: ").append(toIndentedString(timeFormat)).append("\n");
    sb.append("    timeName: ").append(toIndentedString(timeName)).append("\n");
    sb.append("    urLAuthType: ").append(toIndentedString(urLAuthType)).append("\n");
    sb.append("    urlAuthCustomAction: ").append(toIndentedString(urlAuthCustomAction)).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