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

com.tencentcloudapi.ims.v20201229.models.Device Maven / Gradle / Ivy

There is a newer version: 3.0.1076
Show newest version
/*
 * 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.ims.v20201229.models;

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

public class Device extends AbstractModel {

    /**
    * This field indicates the IP address of the business user's device and supports recording both **IPv4 and IPv6** addresses. It needs to be used together with the `IpType` parameter.
    */
    @SerializedName("Ip")
    @Expose
    private String Ip;

    /**
    * This field indicates the MAC address of the business user, which makes it easier to identify and manage devices. Its format and value are the same as those of a standard MAC address.
    */
    @SerializedName("Mac")
    @Expose
    private String Mac;

    /**
    * *In beta test. Stay tuned.*
    */
    @SerializedName("TokenId")
    @Expose
    private String TokenId;

    /**
    * *In beta test. Stay tuned.*
    */
    @SerializedName("DeviceId")
    @Expose
    private String DeviceId;

    /**
    * This field indicates the international mobile equipment identity **(IMEI)** number of the business user's device, which can be used to identify each mobile communication device such as mobile phone for easier device identification and management.
Note: the format is **15–17 digits**. */ @SerializedName("IMEI") @Expose private String IMEI; /** * **For iOS devices**: this field indicates the identifier for advertisers **(IDFA)** of the business user, which is provided by Apple to identify the user and contains a hexadecimal string of 32 digits and letters.
Note: as iOS 14 has been updated by Apple to allow users to manually enable or disable IDFA since 2021, the validity of this string may be reduced. */ @SerializedName("IDFA") @Expose private String IDFA; /** * **For iOS devices**: this field indicates the identifier for vendors **(IDFV)** of the business user, which is provided by Apple to identify the app vendor and contains a hexadecimal string of 32 digits and letters. It can be used to uniquely identify a device. */ @SerializedName("IDFV") @Expose private String IDFV; /** * This field indicates the type of the recorded IP address. Valid values: **0** (IPv4 address), **1** (IPv6 address). It needs to be used together with the `IpType` parameter. */ @SerializedName("IpType") @Expose private Long IpType; /** * Get This field indicates the IP address of the business user's device and supports recording both **IPv4 and IPv6** addresses. It needs to be used together with the `IpType` parameter. * @return Ip This field indicates the IP address of the business user's device and supports recording both **IPv4 and IPv6** addresses. It needs to be used together with the `IpType` parameter. */ public String getIp() { return this.Ip; } /** * Set This field indicates the IP address of the business user's device and supports recording both **IPv4 and IPv6** addresses. It needs to be used together with the `IpType` parameter. * @param Ip This field indicates the IP address of the business user's device and supports recording both **IPv4 and IPv6** addresses. It needs to be used together with the `IpType` parameter. */ public void setIp(String Ip) { this.Ip = Ip; } /** * Get This field indicates the MAC address of the business user, which makes it easier to identify and manage devices. Its format and value are the same as those of a standard MAC address. * @return Mac This field indicates the MAC address of the business user, which makes it easier to identify and manage devices. Its format and value are the same as those of a standard MAC address. */ public String getMac() { return this.Mac; } /** * Set This field indicates the MAC address of the business user, which makes it easier to identify and manage devices. Its format and value are the same as those of a standard MAC address. * @param Mac This field indicates the MAC address of the business user, which makes it easier to identify and manage devices. Its format and value are the same as those of a standard MAC address. */ public void setMac(String Mac) { this.Mac = Mac; } /** * Get *In beta test. Stay tuned.* * @return TokenId *In beta test. Stay tuned.* */ public String getTokenId() { return this.TokenId; } /** * Set *In beta test. Stay tuned.* * @param TokenId *In beta test. Stay tuned.* */ public void setTokenId(String TokenId) { this.TokenId = TokenId; } /** * Get *In beta test. Stay tuned.* * @return DeviceId *In beta test. Stay tuned.* */ public String getDeviceId() { return this.DeviceId; } /** * Set *In beta test. Stay tuned.* * @param DeviceId *In beta test. Stay tuned.* */ public void setDeviceId(String DeviceId) { this.DeviceId = DeviceId; } /** * Get This field indicates the international mobile equipment identity **(IMEI)** number of the business user's device, which can be used to identify each mobile communication device such as mobile phone for easier device identification and management.
Note: the format is **15–17 digits**. * @return IMEI This field indicates the international mobile equipment identity **(IMEI)** number of the business user's device, which can be used to identify each mobile communication device such as mobile phone for easier device identification and management.
Note: the format is **15–17 digits**. */ public String getIMEI() { return this.IMEI; } /** * Set This field indicates the international mobile equipment identity **(IMEI)** number of the business user's device, which can be used to identify each mobile communication device such as mobile phone for easier device identification and management.
Note: the format is **15–17 digits**. * @param IMEI This field indicates the international mobile equipment identity **(IMEI)** number of the business user's device, which can be used to identify each mobile communication device such as mobile phone for easier device identification and management.
Note: the format is **15–17 digits**. */ public void setIMEI(String IMEI) { this.IMEI = IMEI; } /** * Get **For iOS devices**: this field indicates the identifier for advertisers **(IDFA)** of the business user, which is provided by Apple to identify the user and contains a hexadecimal string of 32 digits and letters.
Note: as iOS 14 has been updated by Apple to allow users to manually enable or disable IDFA since 2021, the validity of this string may be reduced. * @return IDFA **For iOS devices**: this field indicates the identifier for advertisers **(IDFA)** of the business user, which is provided by Apple to identify the user and contains a hexadecimal string of 32 digits and letters.
Note: as iOS 14 has been updated by Apple to allow users to manually enable or disable IDFA since 2021, the validity of this string may be reduced. */ public String getIDFA() { return this.IDFA; } /** * Set **For iOS devices**: this field indicates the identifier for advertisers **(IDFA)** of the business user, which is provided by Apple to identify the user and contains a hexadecimal string of 32 digits and letters.
Note: as iOS 14 has been updated by Apple to allow users to manually enable or disable IDFA since 2021, the validity of this string may be reduced. * @param IDFA **For iOS devices**: this field indicates the identifier for advertisers **(IDFA)** of the business user, which is provided by Apple to identify the user and contains a hexadecimal string of 32 digits and letters.
Note: as iOS 14 has been updated by Apple to allow users to manually enable or disable IDFA since 2021, the validity of this string may be reduced. */ public void setIDFA(String IDFA) { this.IDFA = IDFA; } /** * Get **For iOS devices**: this field indicates the identifier for vendors **(IDFV)** of the business user, which is provided by Apple to identify the app vendor and contains a hexadecimal string of 32 digits and letters. It can be used to uniquely identify a device. * @return IDFV **For iOS devices**: this field indicates the identifier for vendors **(IDFV)** of the business user, which is provided by Apple to identify the app vendor and contains a hexadecimal string of 32 digits and letters. It can be used to uniquely identify a device. */ public String getIDFV() { return this.IDFV; } /** * Set **For iOS devices**: this field indicates the identifier for vendors **(IDFV)** of the business user, which is provided by Apple to identify the app vendor and contains a hexadecimal string of 32 digits and letters. It can be used to uniquely identify a device. * @param IDFV **For iOS devices**: this field indicates the identifier for vendors **(IDFV)** of the business user, which is provided by Apple to identify the app vendor and contains a hexadecimal string of 32 digits and letters. It can be used to uniquely identify a device. */ public void setIDFV(String IDFV) { this.IDFV = IDFV; } /** * Get This field indicates the type of the recorded IP address. Valid values: **0** (IPv4 address), **1** (IPv6 address). It needs to be used together with the `IpType` parameter. * @return IpType This field indicates the type of the recorded IP address. Valid values: **0** (IPv4 address), **1** (IPv6 address). It needs to be used together with the `IpType` parameter. */ public Long getIpType() { return this.IpType; } /** * Set This field indicates the type of the recorded IP address. Valid values: **0** (IPv4 address), **1** (IPv6 address). It needs to be used together with the `IpType` parameter. * @param IpType This field indicates the type of the recorded IP address. Valid values: **0** (IPv4 address), **1** (IPv6 address). It needs to be used together with the `IpType` parameter. */ public void setIpType(Long IpType) { this.IpType = IpType; } public Device() { } /** * 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 Device(Device source) { if (source.Ip != null) { this.Ip = new String(source.Ip); } if (source.Mac != null) { this.Mac = new String(source.Mac); } if (source.TokenId != null) { this.TokenId = new String(source.TokenId); } if (source.DeviceId != null) { this.DeviceId = new String(source.DeviceId); } if (source.IMEI != null) { this.IMEI = new String(source.IMEI); } if (source.IDFA != null) { this.IDFA = new String(source.IDFA); } if (source.IDFV != null) { this.IDFV = new String(source.IDFV); } if (source.IpType != null) { this.IpType = new Long(source.IpType); } } /** * Internal implementation, normal users should not use it. */ public void toMap(HashMap map, String prefix) { this.setParamSimple(map, prefix + "Ip", this.Ip); this.setParamSimple(map, prefix + "Mac", this.Mac); this.setParamSimple(map, prefix + "TokenId", this.TokenId); this.setParamSimple(map, prefix + "DeviceId", this.DeviceId); this.setParamSimple(map, prefix + "IMEI", this.IMEI); this.setParamSimple(map, prefix + "IDFA", this.IDFA); this.setParamSimple(map, prefix + "IDFV", this.IDFV); this.setParamSimple(map, prefix + "IpType", this.IpType); } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy