@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen") public class VoucherUseTimeInfo extends Object
| 限定符和类型 | 类和说明 |
|---|---|
static class |
VoucherUseTimeInfo.CustomTypeAdapterFactory |
| 限定符和类型 | 字段和说明 |
|---|---|
static HashSet<String> |
openapiFields |
static HashSet<String> |
openapiRequiredFields |
static String |
SERIALIZED_NAME_ABSOLUTE_PERIOD_INFO |
static String |
SERIALIZED_NAME_PERIOD_TYPE |
static String |
SERIALIZED_NAME_RELATIVE_PERIOD_INFO |
| 构造器和说明 |
|---|
VoucherUseTimeInfo() |
| 限定符和类型 | 方法和说明 |
|---|---|
VoucherUseTimeInfo |
absolutePeriodInfo(VoucherAbsolutePeriodInfo absolutePeriodInfo) |
boolean |
equals(Object o) |
static VoucherUseTimeInfo |
fromJson(String jsonString)
Create an instance of VoucherUseTimeInfo given an JSON string
|
VoucherAbsolutePeriodInfo |
getAbsolutePeriodInfo()
Get absolutePeriodInfo
|
Map<String,Object> |
getAdditionalProperties()
Return the additional (undeclared) property.
|
Object |
getAdditionalProperty(String key)
Return the additional (undeclared) property with the specified name.
|
String |
getPeriodType()
券有效期。
|
VoucherRelativePeriodInfo |
getRelativePeriodInfo()
Get relativePeriodInfo
|
int |
hashCode() |
VoucherUseTimeInfo |
periodType(String periodType) |
VoucherUseTimeInfo |
putAdditionalProperty(String key,
Object value)
Set the additional (undeclared) property with the specified name and value.
|
VoucherUseTimeInfo |
relativePeriodInfo(VoucherRelativePeriodInfo relativePeriodInfo) |
void |
setAbsolutePeriodInfo(VoucherAbsolutePeriodInfo absolutePeriodInfo) |
void |
setPeriodType(String periodType) |
void |
setRelativePeriodInfo(VoucherRelativePeriodInfo relativePeriodInfo) |
String |
toJson()
Convert an instance of VoucherUseTimeInfo 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
|
public static final String SERIALIZED_NAME_ABSOLUTE_PERIOD_INFO
public static final String SERIALIZED_NAME_RELATIVE_PERIOD_INFO
public VoucherUseTimeInfo absolutePeriodInfo(VoucherAbsolutePeriodInfo absolutePeriodInfo)
@Nullable public VoucherAbsolutePeriodInfo getAbsolutePeriodInfo()
public void setAbsolutePeriodInfo(VoucherAbsolutePeriodInfo absolutePeriodInfo)
public VoucherUseTimeInfo periodType(String periodType)
public void setPeriodType(String periodType)
public VoucherUseTimeInfo relativePeriodInfo(VoucherRelativePeriodInfo relativePeriodInfo)
@Nullable public VoucherRelativePeriodInfo getRelativePeriodInfo()
public void setRelativePeriodInfo(VoucherRelativePeriodInfo relativePeriodInfo)
public VoucherUseTimeInfo 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 VoucherUseTimeInfopublic static VoucherUseTimeInfo fromJson(String jsonString) throws IOException
jsonString - JSON stringIOException - if the JSON string is invalid with respect to VoucherUseTimeInfopublic String toJson()
Copyright © 2024. All rights reserved.