public class CreatePersonSampleRequest extends AbstractModel
header, skipSign| Constructor and Description | 
|---|
CreatePersonSampleRequest()  | 
CreatePersonSampleRequest(CreatePersonSampleRequest source)
NOTE: Any ambiguous key set via .set("AnyKey", "value") will be a shallow copy,
       and any explicit key, i.e Foo, set via .setFoo("value") will be a deep copy. 
 | 
| Modifier and Type | Method and Description | 
|---|---|
String | 
getDescription()
Get Description of a sample. 
 | 
String[] | 
getFaceContents()
Get String generated after the sample image is encoded by [Base64](https://tools.ietf.org/html/rfc4648). 
 | 
String | 
getName()
Get Name of a sample. 
 | 
Long | 
getSubAppId()
Get The VOD [application](https://intl.cloud.tencent.com/document/product/266/14574) ID. 
 | 
String[] | 
getTags()
Get Tags of a sample
Array length limit: 20 tags
Length limit of a tag: 128 characters 
 | 
String[] | 
getUsages()
Get Usage of a sample. 
 | 
void | 
setDescription(String Description)
Set Description of a sample. 
 | 
void | 
setFaceContents(String[] FaceContents)
Set String generated after the sample image is encoded by [Base64](https://tools.ietf.org/html/rfc4648). 
 | 
void | 
setName(String Name)
Set Name of a sample. 
 | 
void | 
setSubAppId(Long SubAppId)
Set The VOD [application](https://intl.cloud.tencent.com/document/product/266/14574) ID. 
 | 
void | 
setTags(String[] Tags)
Set Tags of a sample
Array length limit: 20 tags
Length limit of a tag: 128 characters 
 | 
void | 
setUsages(String[] Usages)
Set Usage of a sample. 
 | 
void | 
toMap(HashMap<String,String> map,
     String prefix)
Internal implementation, normal users should not use it. 
 | 
any, fromJsonString, getBinaryParams, GetHeader, getMultipartRequestParams, getSkipSign, isStream, set, SetHeader, setParamArrayObj, setParamArraySimple, setParamObj, setParamSimple, setSkipSign, toJsonStringpublic CreatePersonSampleRequest()
public CreatePersonSampleRequest(CreatePersonSampleRequest source)
public String getName()
public void setName(String Name)
Name - Name of a sample. Length limit: 20 characters.public String[] getUsages()
public void setUsages(String[] Usages)
Usages - Usage of a sample. Valid values:
1. Recognition: used for content recognition; equivalent to `Recognition.Face`
2. Review: used for inappropriate information recognition; equivalent to `Review.Face`
3. All: equivalent to 1+2.public Long getSubAppId()
public void setSubAppId(Long SubAppId)
SubAppId - The VOD [application](https://intl.cloud.tencent.com/document/product/266/14574) ID. For customers who activate VOD service from December 25, 2023, if they want to access resources in a VOD application (whether it's the default application or a newly created one), they must fill in this field with the application ID.public String getDescription()
public void setDescription(String Description)
Description - Description of a sample. Length limit: 1024 characters.public String[] getFaceContents()
public void setFaceContents(String[] FaceContents)
FaceContents - String generated after the sample image is encoded by [Base64](https://tools.ietf.org/html/rfc4648). Only JPEG and PNG images are supported. Array length limit: 5 images.
Note: the image must be a relatively clear full-face photo of a person and has a resolution of no less than 200 x 200.public String[] getTags()
public void setTags(String[] Tags)
Tags - Tags of a sample
Copyright © 2025. All rights reserved.