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

com.alicloud.openservices.tablestore.model.RequestExtension Maven / Gradle / Ivy

Go to download

Aliyun Open Services SDK for Java Copyright (C) Alibaba Cloud Computing All rights reserved. 版权所有 (C)阿里云计算有限公司 http://www.aliyun.com

There is a newer version: 5.17.5
Show newest version
package com.alicloud.openservices.tablestore.model;

public class RequestExtension {
   private Priority priority;
   private String tag;

   public void setPriority(Priority priority) {this.priority = priority;}
   public void setTag(String tag) {
      if (!tag.matches("\\A\\p{ASCII}*\\z")) {
         throw new IllegalArgumentException("Only support ASCII: " + tag);
      } else {
         if (tag.getBytes().length > 16) {
            String t = new String(tag.getBytes(), 0, 16);
            this.tag = t;
         } else {
            this.tag = tag;
         }
      }
   }
   public Priority getPriority() {return priority;}
   public String getTag() {return tag;}
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy