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

com.tencentcloudapi.iotexplorer.v20190423.models.DescribeInstanceRequest 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.iotexplorer.v20190423.models;

import com.tencentcloudapi.common.AbstractModel;
import com.google.gson.annotations.SerializedName;
import com.google.gson.annotations.Expose;
import java.util.HashMap;

public class DescribeInstanceRequest extends AbstractModel{

    /**
    * 实例ID
    */
    @SerializedName("InstanceId")
    @Expose
    private String InstanceId;

    /**
    * 附加查询返回包含字段值,不传返回0,有效值 ProductNum、ProjectNum、UsedDeviceNum、TotalDevice、ActivateDevice
    */
    @SerializedName("Include")
    @Expose
    private String [] Include;

    /**
    * 项目ID
    */
    @SerializedName("ProjectId")
    @Expose
    private String ProjectId;

    /**
    * 产品ID,-1 代表全部产品
    */
    @SerializedName("ProductId")
    @Expose
    private String ProductId;

    /**
     * Get 实例ID 
     * @return InstanceId 实例ID
     */
    public String getInstanceId() {
        return this.InstanceId;
    }

    /**
     * Set 实例ID
     * @param InstanceId 实例ID
     */
    public void setInstanceId(String InstanceId) {
        this.InstanceId = InstanceId;
    }

    /**
     * Get 附加查询返回包含字段值,不传返回0,有效值 ProductNum、ProjectNum、UsedDeviceNum、TotalDevice、ActivateDevice 
     * @return Include 附加查询返回包含字段值,不传返回0,有效值 ProductNum、ProjectNum、UsedDeviceNum、TotalDevice、ActivateDevice
     */
    public String [] getInclude() {
        return this.Include;
    }

    /**
     * Set 附加查询返回包含字段值,不传返回0,有效值 ProductNum、ProjectNum、UsedDeviceNum、TotalDevice、ActivateDevice
     * @param Include 附加查询返回包含字段值,不传返回0,有效值 ProductNum、ProjectNum、UsedDeviceNum、TotalDevice、ActivateDevice
     */
    public void setInclude(String [] Include) {
        this.Include = Include;
    }

    /**
     * Get 项目ID 
     * @return ProjectId 项目ID
     */
    public String getProjectId() {
        return this.ProjectId;
    }

    /**
     * Set 项目ID
     * @param ProjectId 项目ID
     */
    public void setProjectId(String ProjectId) {
        this.ProjectId = ProjectId;
    }

    /**
     * Get 产品ID,-1 代表全部产品 
     * @return ProductId 产品ID,-1 代表全部产品
     */
    public String getProductId() {
        return this.ProductId;
    }

    /**
     * Set 产品ID,-1 代表全部产品
     * @param ProductId 产品ID,-1 代表全部产品
     */
    public void setProductId(String ProductId) {
        this.ProductId = ProductId;
    }

    public DescribeInstanceRequest() {
    }

    /**
     * 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 DescribeInstanceRequest(DescribeInstanceRequest source) {
        if (source.InstanceId != null) {
            this.InstanceId = new String(source.InstanceId);
        }
        if (source.Include != null) {
            this.Include = new String[source.Include.length];
            for (int i = 0; i < source.Include.length; i++) {
                this.Include[i] = new String(source.Include[i]);
            }
        }
        if (source.ProjectId != null) {
            this.ProjectId = new String(source.ProjectId);
        }
        if (source.ProductId != null) {
            this.ProductId = new String(source.ProductId);
        }
    }


    /**
     * Internal implementation, normal users should not use it.
     */
    public void toMap(HashMap map, String prefix) {
        this.setParamSimple(map, prefix + "InstanceId", this.InstanceId);
        this.setParamArraySimple(map, prefix + "Include.", this.Include);
        this.setParamSimple(map, prefix + "ProjectId", this.ProjectId);
        this.setParamSimple(map, prefix + "ProductId", this.ProductId);

    }
}





© 2015 - 2025 Weber Informatics LLC | Privacy Policy