com.tencentcloudapi.mps.v20190612.models.DescribePersonSamplesRequest Maven / Gradle / Ivy
/*
* Copyright (c) 2017-2018 THL A29 Limited, a Tencent company. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package com.tencentcloudapi.mps.v20190612.models;
import com.tencentcloudapi.common.AbstractModel;
import com.google.gson.annotations.SerializedName;
import com.google.gson.annotations.Expose;
import java.util.HashMap;
public class DescribePersonSamplesRequest extends AbstractModel{
/**
* Type of images to pull. Valid values:
UserDefine: custom image library
Default: default image library
Default value: UserDefine. Samples in the custom image library will be pulled.
Note: you can pull the default image library only using the image name or a combination of the image name and ID, and only one face image is returned.
*/
@SerializedName("Type")
@Expose
private String Type;
/**
* Image ID. Array length limit: 100
*/
@SerializedName("PersonIds")
@Expose
private String [] PersonIds;
/**
* Image name. Array length limit: 20
*/
@SerializedName("Names")
@Expose
private String [] Names;
/**
* Image tag. Array length limit: 20
*/
@SerializedName("Tags")
@Expose
private String [] Tags;
/**
* Paging offset. Default value: 0.
*/
@SerializedName("Offset")
@Expose
private Long Offset;
/**
* Number of returned entries. Default value: 100. Maximum value: 100.
*/
@SerializedName("Limit")
@Expose
private Long Limit;
/**
* Get Type of images to pull. Valid values:
UserDefine: custom image library
Default: default image library
Default value: UserDefine. Samples in the custom image library will be pulled.
Note: you can pull the default image library only using the image name or a combination of the image name and ID, and only one face image is returned.
* @return Type Type of images to pull. Valid values:
UserDefine: custom image library
Default: default image library
Default value: UserDefine. Samples in the custom image library will be pulled.
Note: you can pull the default image library only using the image name or a combination of the image name and ID, and only one face image is returned.
*/
public String getType() {
return this.Type;
}
/**
* Set Type of images to pull. Valid values:
UserDefine: custom image library
Default: default image library
Default value: UserDefine. Samples in the custom image library will be pulled.
Note: you can pull the default image library only using the image name or a combination of the image name and ID, and only one face image is returned.
* @param Type Type of images to pull. Valid values:
UserDefine: custom image library
Default: default image library
Default value: UserDefine. Samples in the custom image library will be pulled.
Note: you can pull the default image library only using the image name or a combination of the image name and ID, and only one face image is returned.
*/
public void setType(String Type) {
this.Type = Type;
}
/**
* Get Image ID. Array length limit: 100
* @return PersonIds Image ID. Array length limit: 100
*/
public String [] getPersonIds() {
return this.PersonIds;
}
/**
* Set Image ID. Array length limit: 100
* @param PersonIds Image ID. Array length limit: 100
*/
public void setPersonIds(String [] PersonIds) {
this.PersonIds = PersonIds;
}
/**
* Get Image name. Array length limit: 20
* @return Names Image name. Array length limit: 20
*/
public String [] getNames() {
return this.Names;
}
/**
* Set Image name. Array length limit: 20
* @param Names Image name. Array length limit: 20
*/
public void setNames(String [] Names) {
this.Names = Names;
}
/**
* Get Image tag. Array length limit: 20
* @return Tags Image tag. Array length limit: 20
*/
public String [] getTags() {
return this.Tags;
}
/**
* Set Image tag. Array length limit: 20
* @param Tags Image tag. Array length limit: 20
*/
public void setTags(String [] Tags) {
this.Tags = Tags;
}
/**
* Get Paging offset. Default value: 0.
* @return Offset Paging offset. Default value: 0.
*/
public Long getOffset() {
return this.Offset;
}
/**
* Set Paging offset. Default value: 0.
* @param Offset Paging offset. Default value: 0.
*/
public void setOffset(Long Offset) {
this.Offset = Offset;
}
/**
* Get Number of returned entries. Default value: 100. Maximum value: 100.
* @return Limit Number of returned entries. Default value: 100. Maximum value: 100.
*/
public Long getLimit() {
return this.Limit;
}
/**
* Set Number of returned entries. Default value: 100. Maximum value: 100.
* @param Limit Number of returned entries. Default value: 100. Maximum value: 100.
*/
public void setLimit(Long Limit) {
this.Limit = Limit;
}
public DescribePersonSamplesRequest() {
}
/**
* 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.
*/
public DescribePersonSamplesRequest(DescribePersonSamplesRequest source) {
if (source.Type != null) {
this.Type = new String(source.Type);
}
if (source.PersonIds != null) {
this.PersonIds = new String[source.PersonIds.length];
for (int i = 0; i < source.PersonIds.length; i++) {
this.PersonIds[i] = new String(source.PersonIds[i]);
}
}
if (source.Names != null) {
this.Names = new String[source.Names.length];
for (int i = 0; i < source.Names.length; i++) {
this.Names[i] = new String(source.Names[i]);
}
}
if (source.Tags != null) {
this.Tags = new String[source.Tags.length];
for (int i = 0; i < source.Tags.length; i++) {
this.Tags[i] = new String(source.Tags[i]);
}
}
if (source.Offset != null) {
this.Offset = new Long(source.Offset);
}
if (source.Limit != null) {
this.Limit = new Long(source.Limit);
}
}
/**
* Internal implementation, normal users should not use it.
*/
public void toMap(HashMap map, String prefix) {
this.setParamSimple(map, prefix + "Type", this.Type);
this.setParamArraySimple(map, prefix + "PersonIds.", this.PersonIds);
this.setParamArraySimple(map, prefix + "Names.", this.Names);
this.setParamArraySimple(map, prefix + "Tags.", this.Tags);
this.setParamSimple(map, prefix + "Offset", this.Offset);
this.setParamSimple(map, prefix + "Limit", this.Limit);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy