@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen") public class UseTime extends Object
| 限定符和类型 | 类和说明 |
|---|---|
static class |
UseTime.CustomTypeAdapterFactory |
| 限定符和类型 | 字段和说明 |
|---|---|
static HashSet<String> |
openapiFields |
static HashSet<String> |
openapiRequiredFields |
static String |
SERIALIZED_NAME_DIMENSION |
static String |
SERIALIZED_NAME_TIMES |
static String |
SERIALIZED_NAME_VALUES |
| 构造器和说明 |
|---|
UseTime() |
| 限定符和类型 | 方法和说明 |
|---|---|
UseTime |
dimension(String dimension) |
boolean |
equals(Object o) |
static UseTime |
fromJson(String jsonString)
Create an instance of UseTime given an JSON string
|
Map<String,Object> |
getAdditionalProperties()
Return the additional (undeclared) property.
|
Object |
getAdditionalProperty(String key)
Return the additional (undeclared) property with the specified name.
|
String |
getDimension()
券可用时段时间维度,目前支持周(W)
|
String |
getTimes()
券可用时间段 可用时间段起止时间用逗号分隔,多个时间段之间用^分隔 如, \"16:00:00,20:00:00^21:00:00,22:00:00\"表示16点至20点,21点至22点可用 时间段不可重叠
|
String |
getValues()
券可用时间维度值 周维度的取值范围1-7(周一至周日),多个可用时段用逗号分隔 如\"1,3,5\",对应周一,周三,周五可用
|
int |
hashCode() |
UseTime |
putAdditionalProperty(String key,
Object value)
Set the additional (undeclared) property with the specified name and value.
|
void |
setDimension(String dimension) |
void |
setTimes(String times) |
void |
setValues(String values) |
UseTime |
times(String times) |
String |
toJson()
Convert an instance of UseTime to an JSON string
|
String |
toString() |
static void |
validateJsonObject(com.google.gson.JsonObject jsonObj)
Validates the JSON Object and throws an exception if issues found
|
UseTime |
values(String values) |
public void setDimension(String dimension)
@Nullable public String getTimes()
public void setTimes(String times)
@Nullable public String getValues()
public void setValues(String values)
public UseTime putAdditionalProperty(String key, Object value)
key - name of the propertyvalue - value of the propertypublic Map<String,Object> getAdditionalProperties()
public Object getAdditionalProperty(String key)
key - name of the propertypublic static void validateJsonObject(com.google.gson.JsonObject jsonObj)
throws IOException
jsonObj - JSON ObjectIOException - if the JSON Object is invalid with respect to UseTimepublic static UseTime fromJson(String jsonString) throws IOException
jsonString - JSON stringIOException - if the JSON string is invalid with respect to UseTimepublic String toJson()
Copyright © 2024. All rights reserved.