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

com.ksc.epc.model.DescribeEpcDeviceAttributesRequest Maven / Gradle / Ivy

package com.ksc.epc.model;

import com.ksc.KscWebServiceRequest;
import com.ksc.Request;
import com.ksc.model.DryRunSupportedRequest;
import com.ksc.epc.model.transform.DescribeEpcDeviceAttributesRequestMarshaller;
import lombok.Data;
import com.ksc.model.Filter;

import java.io.Serializable;

/**
 * 

* Contains the parameters for DescribeEpcDeviceAttributes. *

*/ @Data public class DescribeEpcDeviceAttributesRequest extends KscWebServiceRequest implements Serializable, Cloneable, DryRunSupportedRequest { /** * 过滤器 */ private com.ksc.internal.SdkInternalList filters; /** * 机型设备ID */ private com.ksc.internal.SdkInternalList deviceAttributeIds; /** * 单次调用可返回的最大条目数量. */ private String maxResults; /** * 获取另一页返回结果的 token. */ private String nextToken; @Override public boolean equals(Object o) { if (this == o) return true; if (o == null || getClass() != o.getClass()) return false; if (!super.equals(o)) return false; DescribeEpcDeviceAttributesRequest that = (DescribeEpcDeviceAttributesRequest) o; if (filters != null ? !filters.equals(that.filters) : that.filters != null) return false; if (deviceAttributeIds != null ? !deviceAttributeIds.equals(that.deviceAttributeIds) : that.deviceAttributeIds != null) return false; if (maxResults != null ? !maxResults.equals(that.maxResults) : that.maxResults != null) return false; if (nextToken != null ? !nextToken.equals(that.nextToken) : that.nextToken != null) return false; return true; } @Override public int hashCode() { int result = super.hashCode(); result = 31 * result + (filters != null ? filters.hashCode() : 0); result = 31 * result + (deviceAttributeIds != null ? deviceAttributeIds.hashCode() : 0); result = 31 * result + (maxResults != null ? maxResults.hashCode() : 0); result = 31 * result + (nextToken != null ? nextToken.hashCode() : 0); return result; } public void addFilters(Filter... filters) { if (this.filters == null) { this.filters = new com.ksc.internal.SdkInternalList(); } for (Filter filter : filters) { this.filters.add(filter); } } public void addDeviceAttributeIds(String... deviceAttributeIds){ if (this.deviceAttributeIds == null) { this.deviceAttributeIds = new com.ksc.internal.SdkInternalList(); } for(String value : deviceAttributeIds){ this.deviceAttributeIds.add(value); } } @Override public Request getDryRunRequest() { Request request = new DescribeEpcDeviceAttributesRequestMarshaller() .marshall(this); request.addParameter("DryRun", Boolean.toString(true)); return request; } @Override public DescribeEpcDeviceAttributesRequest clone() { return (DescribeEpcDeviceAttributesRequest) super.clone(); } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy