com.huaweicloud.sdk.iotda.v5.model.DeleteDeviceTunnelRequest Maven / Gradle / Ivy
package com.huaweicloud.sdk.iotda.v5.model;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonProperty;
import java.util.Objects;
/**
* Request Object
*/
public class DeleteDeviceTunnelRequest {
@JsonInclude(JsonInclude.Include.NON_NULL)
@JsonProperty(value = "Instance-Id")
private String instanceId;
@JsonInclude(JsonInclude.Include.NON_NULL)
@JsonProperty(value = "tunnel_id")
private String tunnelId;
public DeleteDeviceTunnelRequest withInstanceId(String instanceId) {
this.instanceId = instanceId;
return this;
}
/**
* **参数说明**:实例ID。物理多租下各实例的唯一标识,建议携带该参数,在使用专业版时必须携带该参数。您可以在IoTDA管理控制台界面,选择左侧导航栏“总览”页签查看当前实例的ID,具体获取方式请参考[[查看实例详情](https://support.huaweicloud.com/usermanual-iothub/iot_01_0121.html)](tag:hws) [[查看实例详情](https://support.huaweicloud.com/intl/zh-cn/usermanual-iothub/iot_01_0121.html)](tag:hws_hk)。
* @return instanceId
*/
public String getInstanceId() {
return instanceId;
}
public void setInstanceId(String instanceId) {
this.instanceId = instanceId;
}
public DeleteDeviceTunnelRequest withTunnelId(String tunnelId) {
this.tunnelId = tunnelId;
return this;
}
/**
* 隧道ID
* @return tunnelId
*/
public String getTunnelId() {
return tunnelId;
}
public void setTunnelId(String tunnelId) {
this.tunnelId = tunnelId;
}
@Override
public boolean equals(java.lang.Object obj) {
if (this == obj) {
return true;
}
if (obj == null || getClass() != obj.getClass()) {
return false;
}
DeleteDeviceTunnelRequest that = (DeleteDeviceTunnelRequest) obj;
return Objects.equals(this.instanceId, that.instanceId) && Objects.equals(this.tunnelId, that.tunnelId);
}
@Override
public int hashCode() {
return Objects.hash(instanceId, tunnelId);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class DeleteDeviceTunnelRequest {\n");
sb.append(" instanceId: ").append(toIndentedString(instanceId)).append("\n");
sb.append(" tunnelId: ").append(toIndentedString(tunnelId)).append("\n");
sb.append("}");
return sb.toString();
}
/**
* Convert the given object to string with each line indented by 4 spaces
* (except the first line).
*/
private String toIndentedString(java.lang.Object o) {
if (o == null) {
return "null";
}
return o.toString().replace("\n", "\n ");
}
}