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

com.amazonaws.services.iotwireless.model.ListWirelessDevicesRequest Maven / Gradle / Ivy

Go to download

The AWS Java SDK for AWS IoT Wireless module holds the client classes that are used for communicating with AWS IoT Wireless Service

The newest version!
/*
 * Copyright 2019-2024 Amazon.com, Inc. or its affiliates. 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. A copy of the License is located at
 * 
 * http://aws.amazon.com/apache2.0
 * 
 * or in the "license" file accompanying this file. This file 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.amazonaws.services.iotwireless.model;

import java.io.Serializable;
import javax.annotation.Generated;

import com.amazonaws.AmazonWebServiceRequest;

/**
 * 
 * @see AWS
 *      API Documentation
 */
@Generated("com.amazonaws:aws-java-sdk-code-generator")
public class ListWirelessDevicesRequest extends com.amazonaws.AmazonWebServiceRequest implements Serializable, Cloneable {

    /**
     * 

* The maximum number of results to return in this operation. *

*/ private Integer maxResults; /** *

* To retrieve the next set of results, the nextToken value from a previous response; otherwise * null to receive the first set of results. *

*/ private String nextToken; /** *

* A filter to list only the wireless devices that use this destination. *

*/ private String destinationName; /** *

* A filter to list only the wireless devices that use this device profile. *

*/ private String deviceProfileId; /** *

* A filter to list only the wireless devices that use this service profile. *

*/ private String serviceProfileId; /** *

* A filter to list only the wireless devices that use this wireless device type. *

*/ private String wirelessDeviceType; private String fuotaTaskId; private String multicastGroupId; /** *

* The maximum number of results to return in this operation. *

* * @param maxResults * The maximum number of results to return in this operation. */ public void setMaxResults(Integer maxResults) { this.maxResults = maxResults; } /** *

* The maximum number of results to return in this operation. *

* * @return The maximum number of results to return in this operation. */ public Integer getMaxResults() { return this.maxResults; } /** *

* The maximum number of results to return in this operation. *

* * @param maxResults * The maximum number of results to return in this operation. * @return Returns a reference to this object so that method calls can be chained together. */ public ListWirelessDevicesRequest withMaxResults(Integer maxResults) { setMaxResults(maxResults); return this; } /** *

* To retrieve the next set of results, the nextToken value from a previous response; otherwise * null to receive the first set of results. *

* * @param nextToken * To retrieve the next set of results, the nextToken value from a previous response; otherwise * null to receive the first set of results. */ public void setNextToken(String nextToken) { this.nextToken = nextToken; } /** *

* To retrieve the next set of results, the nextToken value from a previous response; otherwise * null to receive the first set of results. *

* * @return To retrieve the next set of results, the nextToken value from a previous response; otherwise * null to receive the first set of results. */ public String getNextToken() { return this.nextToken; } /** *

* To retrieve the next set of results, the nextToken value from a previous response; otherwise * null to receive the first set of results. *

* * @param nextToken * To retrieve the next set of results, the nextToken value from a previous response; otherwise * null to receive the first set of results. * @return Returns a reference to this object so that method calls can be chained together. */ public ListWirelessDevicesRequest withNextToken(String nextToken) { setNextToken(nextToken); return this; } /** *

* A filter to list only the wireless devices that use this destination. *

* * @param destinationName * A filter to list only the wireless devices that use this destination. */ public void setDestinationName(String destinationName) { this.destinationName = destinationName; } /** *

* A filter to list only the wireless devices that use this destination. *

* * @return A filter to list only the wireless devices that use this destination. */ public String getDestinationName() { return this.destinationName; } /** *

* A filter to list only the wireless devices that use this destination. *

* * @param destinationName * A filter to list only the wireless devices that use this destination. * @return Returns a reference to this object so that method calls can be chained together. */ public ListWirelessDevicesRequest withDestinationName(String destinationName) { setDestinationName(destinationName); return this; } /** *

* A filter to list only the wireless devices that use this device profile. *

* * @param deviceProfileId * A filter to list only the wireless devices that use this device profile. */ public void setDeviceProfileId(String deviceProfileId) { this.deviceProfileId = deviceProfileId; } /** *

* A filter to list only the wireless devices that use this device profile. *

* * @return A filter to list only the wireless devices that use this device profile. */ public String getDeviceProfileId() { return this.deviceProfileId; } /** *

* A filter to list only the wireless devices that use this device profile. *

* * @param deviceProfileId * A filter to list only the wireless devices that use this device profile. * @return Returns a reference to this object so that method calls can be chained together. */ public ListWirelessDevicesRequest withDeviceProfileId(String deviceProfileId) { setDeviceProfileId(deviceProfileId); return this; } /** *

* A filter to list only the wireless devices that use this service profile. *

* * @param serviceProfileId * A filter to list only the wireless devices that use this service profile. */ public void setServiceProfileId(String serviceProfileId) { this.serviceProfileId = serviceProfileId; } /** *

* A filter to list only the wireless devices that use this service profile. *

* * @return A filter to list only the wireless devices that use this service profile. */ public String getServiceProfileId() { return this.serviceProfileId; } /** *

* A filter to list only the wireless devices that use this service profile. *

* * @param serviceProfileId * A filter to list only the wireless devices that use this service profile. * @return Returns a reference to this object so that method calls can be chained together. */ public ListWirelessDevicesRequest withServiceProfileId(String serviceProfileId) { setServiceProfileId(serviceProfileId); return this; } /** *

* A filter to list only the wireless devices that use this wireless device type. *

* * @param wirelessDeviceType * A filter to list only the wireless devices that use this wireless device type. * @see WirelessDeviceType */ public void setWirelessDeviceType(String wirelessDeviceType) { this.wirelessDeviceType = wirelessDeviceType; } /** *

* A filter to list only the wireless devices that use this wireless device type. *

* * @return A filter to list only the wireless devices that use this wireless device type. * @see WirelessDeviceType */ public String getWirelessDeviceType() { return this.wirelessDeviceType; } /** *

* A filter to list only the wireless devices that use this wireless device type. *

* * @param wirelessDeviceType * A filter to list only the wireless devices that use this wireless device type. * @return Returns a reference to this object so that method calls can be chained together. * @see WirelessDeviceType */ public ListWirelessDevicesRequest withWirelessDeviceType(String wirelessDeviceType) { setWirelessDeviceType(wirelessDeviceType); return this; } /** *

* A filter to list only the wireless devices that use this wireless device type. *

* * @param wirelessDeviceType * A filter to list only the wireless devices that use this wireless device type. * @return Returns a reference to this object so that method calls can be chained together. * @see WirelessDeviceType */ public ListWirelessDevicesRequest withWirelessDeviceType(WirelessDeviceType wirelessDeviceType) { this.wirelessDeviceType = wirelessDeviceType.toString(); return this; } /** * @param fuotaTaskId */ public void setFuotaTaskId(String fuotaTaskId) { this.fuotaTaskId = fuotaTaskId; } /** * @return */ public String getFuotaTaskId() { return this.fuotaTaskId; } /** * @param fuotaTaskId * @return Returns a reference to this object so that method calls can be chained together. */ public ListWirelessDevicesRequest withFuotaTaskId(String fuotaTaskId) { setFuotaTaskId(fuotaTaskId); return this; } /** * @param multicastGroupId */ public void setMulticastGroupId(String multicastGroupId) { this.multicastGroupId = multicastGroupId; } /** * @return */ public String getMulticastGroupId() { return this.multicastGroupId; } /** * @param multicastGroupId * @return Returns a reference to this object so that method calls can be chained together. */ public ListWirelessDevicesRequest withMulticastGroupId(String multicastGroupId) { setMulticastGroupId(multicastGroupId); return this; } /** * Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be * redacted from this string using a placeholder value. * * @return A string representation of this object. * * @see java.lang.Object#toString() */ @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); if (getMaxResults() != null) sb.append("MaxResults: ").append(getMaxResults()).append(","); if (getNextToken() != null) sb.append("NextToken: ").append(getNextToken()).append(","); if (getDestinationName() != null) sb.append("DestinationName: ").append(getDestinationName()).append(","); if (getDeviceProfileId() != null) sb.append("DeviceProfileId: ").append(getDeviceProfileId()).append(","); if (getServiceProfileId() != null) sb.append("ServiceProfileId: ").append(getServiceProfileId()).append(","); if (getWirelessDeviceType() != null) sb.append("WirelessDeviceType: ").append(getWirelessDeviceType()).append(","); if (getFuotaTaskId() != null) sb.append("FuotaTaskId: ").append(getFuotaTaskId()).append(","); if (getMulticastGroupId() != null) sb.append("MulticastGroupId: ").append(getMulticastGroupId()); sb.append("}"); return sb.toString(); } @Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof ListWirelessDevicesRequest == false) return false; ListWirelessDevicesRequest other = (ListWirelessDevicesRequest) obj; if (other.getMaxResults() == null ^ this.getMaxResults() == null) return false; if (other.getMaxResults() != null && other.getMaxResults().equals(this.getMaxResults()) == false) return false; if (other.getNextToken() == null ^ this.getNextToken() == null) return false; if (other.getNextToken() != null && other.getNextToken().equals(this.getNextToken()) == false) return false; if (other.getDestinationName() == null ^ this.getDestinationName() == null) return false; if (other.getDestinationName() != null && other.getDestinationName().equals(this.getDestinationName()) == false) return false; if (other.getDeviceProfileId() == null ^ this.getDeviceProfileId() == null) return false; if (other.getDeviceProfileId() != null && other.getDeviceProfileId().equals(this.getDeviceProfileId()) == false) return false; if (other.getServiceProfileId() == null ^ this.getServiceProfileId() == null) return false; if (other.getServiceProfileId() != null && other.getServiceProfileId().equals(this.getServiceProfileId()) == false) return false; if (other.getWirelessDeviceType() == null ^ this.getWirelessDeviceType() == null) return false; if (other.getWirelessDeviceType() != null && other.getWirelessDeviceType().equals(this.getWirelessDeviceType()) == false) return false; if (other.getFuotaTaskId() == null ^ this.getFuotaTaskId() == null) return false; if (other.getFuotaTaskId() != null && other.getFuotaTaskId().equals(this.getFuotaTaskId()) == false) return false; if (other.getMulticastGroupId() == null ^ this.getMulticastGroupId() == null) return false; if (other.getMulticastGroupId() != null && other.getMulticastGroupId().equals(this.getMulticastGroupId()) == false) return false; return true; } @Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getMaxResults() == null) ? 0 : getMaxResults().hashCode()); hashCode = prime * hashCode + ((getNextToken() == null) ? 0 : getNextToken().hashCode()); hashCode = prime * hashCode + ((getDestinationName() == null) ? 0 : getDestinationName().hashCode()); hashCode = prime * hashCode + ((getDeviceProfileId() == null) ? 0 : getDeviceProfileId().hashCode()); hashCode = prime * hashCode + ((getServiceProfileId() == null) ? 0 : getServiceProfileId().hashCode()); hashCode = prime * hashCode + ((getWirelessDeviceType() == null) ? 0 : getWirelessDeviceType().hashCode()); hashCode = prime * hashCode + ((getFuotaTaskId() == null) ? 0 : getFuotaTaskId().hashCode()); hashCode = prime * hashCode + ((getMulticastGroupId() == null) ? 0 : getMulticastGroupId().hashCode()); return hashCode; } @Override public ListWirelessDevicesRequest clone() { return (ListWirelessDevicesRequest) super.clone(); } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy