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

com.amazonaws.services.iotwireless.model.WirelessDeviceImportTask 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.protocol.StructuredPojo;
import com.amazonaws.protocol.ProtocolMarshaller;

/**
 * 

* Information about an import task for wireless devices. *

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

* The ID of the wireless device import task. *

*/ private String id; /** *

* The ARN (Amazon Resource Name) of the wireless device import task. *

*/ private String arn; /** *

* The name of the Sidewalk destination that that describes the IoT rule to route messages from the device in the * import task that will be onboarded to AWS IoT Wireless *

*/ private String destinationName; /** *

* The Sidewalk-related information of the wireless device import task. *

*/ private SidewalkGetStartImportInfo sidewalk; /** *

* The time at which the import task was created. *

*/ private java.util.Date creationTime; /** *

* The status information of the wireless device import task. *

*/ private String status; /** *

* The reason that provides additional information about the import task status. *

*/ private String statusReason; /** *

* The summary information of count of wireless devices that are waiting for the control log to be added to an * import task. *

*/ private Long initializedImportedDeviceCount; /** *

* The summary information of count of wireless devices in an import task that are waiting in the queue to be * onboarded. *

*/ private Long pendingImportedDeviceCount; /** *

* The summary information of count of wireless devices in an import task that have been onboarded to the import * task. *

*/ private Long onboardedImportedDeviceCount; /** *

* The summary information of count of wireless devices in an import task that failed to onboarded to the import * task. *

*/ private Long failedImportedDeviceCount; /** *

* The ID of the wireless device import task. *

* * @param id * The ID of the wireless device import task. */ public void setId(String id) { this.id = id; } /** *

* The ID of the wireless device import task. *

* * @return The ID of the wireless device import task. */ public String getId() { return this.id; } /** *

* The ID of the wireless device import task. *

* * @param id * The ID of the wireless device import task. * @return Returns a reference to this object so that method calls can be chained together. */ public WirelessDeviceImportTask withId(String id) { setId(id); return this; } /** *

* The ARN (Amazon Resource Name) of the wireless device import task. *

* * @param arn * The ARN (Amazon Resource Name) of the wireless device import task. */ public void setArn(String arn) { this.arn = arn; } /** *

* The ARN (Amazon Resource Name) of the wireless device import task. *

* * @return The ARN (Amazon Resource Name) of the wireless device import task. */ public String getArn() { return this.arn; } /** *

* The ARN (Amazon Resource Name) of the wireless device import task. *

* * @param arn * The ARN (Amazon Resource Name) of the wireless device import task. * @return Returns a reference to this object so that method calls can be chained together. */ public WirelessDeviceImportTask withArn(String arn) { setArn(arn); return this; } /** *

* The name of the Sidewalk destination that that describes the IoT rule to route messages from the device in the * import task that will be onboarded to AWS IoT Wireless *

* * @param destinationName * The name of the Sidewalk destination that that describes the IoT rule to route messages from the device in * the import task that will be onboarded to AWS IoT Wireless */ public void setDestinationName(String destinationName) { this.destinationName = destinationName; } /** *

* The name of the Sidewalk destination that that describes the IoT rule to route messages from the device in the * import task that will be onboarded to AWS IoT Wireless *

* * @return The name of the Sidewalk destination that that describes the IoT rule to route messages from the device * in the import task that will be onboarded to AWS IoT Wireless */ public String getDestinationName() { return this.destinationName; } /** *

* The name of the Sidewalk destination that that describes the IoT rule to route messages from the device in the * import task that will be onboarded to AWS IoT Wireless *

* * @param destinationName * The name of the Sidewalk destination that that describes the IoT rule to route messages from the device in * the import task that will be onboarded to AWS IoT Wireless * @return Returns a reference to this object so that method calls can be chained together. */ public WirelessDeviceImportTask withDestinationName(String destinationName) { setDestinationName(destinationName); return this; } /** *

* The Sidewalk-related information of the wireless device import task. *

* * @param sidewalk * The Sidewalk-related information of the wireless device import task. */ public void setSidewalk(SidewalkGetStartImportInfo sidewalk) { this.sidewalk = sidewalk; } /** *

* The Sidewalk-related information of the wireless device import task. *

* * @return The Sidewalk-related information of the wireless device import task. */ public SidewalkGetStartImportInfo getSidewalk() { return this.sidewalk; } /** *

* The Sidewalk-related information of the wireless device import task. *

* * @param sidewalk * The Sidewalk-related information of the wireless device import task. * @return Returns a reference to this object so that method calls can be chained together. */ public WirelessDeviceImportTask withSidewalk(SidewalkGetStartImportInfo sidewalk) { setSidewalk(sidewalk); return this; } /** *

* The time at which the import task was created. *

* * @param creationTime * The time at which the import task was created. */ public void setCreationTime(java.util.Date creationTime) { this.creationTime = creationTime; } /** *

* The time at which the import task was created. *

* * @return The time at which the import task was created. */ public java.util.Date getCreationTime() { return this.creationTime; } /** *

* The time at which the import task was created. *

* * @param creationTime * The time at which the import task was created. * @return Returns a reference to this object so that method calls can be chained together. */ public WirelessDeviceImportTask withCreationTime(java.util.Date creationTime) { setCreationTime(creationTime); return this; } /** *

* The status information of the wireless device import task. *

* * @param status * The status information of the wireless device import task. * @see ImportTaskStatus */ public void setStatus(String status) { this.status = status; } /** *

* The status information of the wireless device import task. *

* * @return The status information of the wireless device import task. * @see ImportTaskStatus */ public String getStatus() { return this.status; } /** *

* The status information of the wireless device import task. *

* * @param status * The status information of the wireless device import task. * @return Returns a reference to this object so that method calls can be chained together. * @see ImportTaskStatus */ public WirelessDeviceImportTask withStatus(String status) { setStatus(status); return this; } /** *

* The status information of the wireless device import task. *

* * @param status * The status information of the wireless device import task. * @return Returns a reference to this object so that method calls can be chained together. * @see ImportTaskStatus */ public WirelessDeviceImportTask withStatus(ImportTaskStatus status) { this.status = status.toString(); return this; } /** *

* The reason that provides additional information about the import task status. *

* * @param statusReason * The reason that provides additional information about the import task status. */ public void setStatusReason(String statusReason) { this.statusReason = statusReason; } /** *

* The reason that provides additional information about the import task status. *

* * @return The reason that provides additional information about the import task status. */ public String getStatusReason() { return this.statusReason; } /** *

* The reason that provides additional information about the import task status. *

* * @param statusReason * The reason that provides additional information about the import task status. * @return Returns a reference to this object so that method calls can be chained together. */ public WirelessDeviceImportTask withStatusReason(String statusReason) { setStatusReason(statusReason); return this; } /** *

* The summary information of count of wireless devices that are waiting for the control log to be added to an * import task. *

* * @param initializedImportedDeviceCount * The summary information of count of wireless devices that are waiting for the control log to be added to * an import task. */ public void setInitializedImportedDeviceCount(Long initializedImportedDeviceCount) { this.initializedImportedDeviceCount = initializedImportedDeviceCount; } /** *

* The summary information of count of wireless devices that are waiting for the control log to be added to an * import task. *

* * @return The summary information of count of wireless devices that are waiting for the control log to be added to * an import task. */ public Long getInitializedImportedDeviceCount() { return this.initializedImportedDeviceCount; } /** *

* The summary information of count of wireless devices that are waiting for the control log to be added to an * import task. *

* * @param initializedImportedDeviceCount * The summary information of count of wireless devices that are waiting for the control log to be added to * an import task. * @return Returns a reference to this object so that method calls can be chained together. */ public WirelessDeviceImportTask withInitializedImportedDeviceCount(Long initializedImportedDeviceCount) { setInitializedImportedDeviceCount(initializedImportedDeviceCount); return this; } /** *

* The summary information of count of wireless devices in an import task that are waiting in the queue to be * onboarded. *

* * @param pendingImportedDeviceCount * The summary information of count of wireless devices in an import task that are waiting in the queue to be * onboarded. */ public void setPendingImportedDeviceCount(Long pendingImportedDeviceCount) { this.pendingImportedDeviceCount = pendingImportedDeviceCount; } /** *

* The summary information of count of wireless devices in an import task that are waiting in the queue to be * onboarded. *

* * @return The summary information of count of wireless devices in an import task that are waiting in the queue to * be onboarded. */ public Long getPendingImportedDeviceCount() { return this.pendingImportedDeviceCount; } /** *

* The summary information of count of wireless devices in an import task that are waiting in the queue to be * onboarded. *

* * @param pendingImportedDeviceCount * The summary information of count of wireless devices in an import task that are waiting in the queue to be * onboarded. * @return Returns a reference to this object so that method calls can be chained together. */ public WirelessDeviceImportTask withPendingImportedDeviceCount(Long pendingImportedDeviceCount) { setPendingImportedDeviceCount(pendingImportedDeviceCount); return this; } /** *

* The summary information of count of wireless devices in an import task that have been onboarded to the import * task. *

* * @param onboardedImportedDeviceCount * The summary information of count of wireless devices in an import task that have been onboarded to the * import task. */ public void setOnboardedImportedDeviceCount(Long onboardedImportedDeviceCount) { this.onboardedImportedDeviceCount = onboardedImportedDeviceCount; } /** *

* The summary information of count of wireless devices in an import task that have been onboarded to the import * task. *

* * @return The summary information of count of wireless devices in an import task that have been onboarded to the * import task. */ public Long getOnboardedImportedDeviceCount() { return this.onboardedImportedDeviceCount; } /** *

* The summary information of count of wireless devices in an import task that have been onboarded to the import * task. *

* * @param onboardedImportedDeviceCount * The summary information of count of wireless devices in an import task that have been onboarded to the * import task. * @return Returns a reference to this object so that method calls can be chained together. */ public WirelessDeviceImportTask withOnboardedImportedDeviceCount(Long onboardedImportedDeviceCount) { setOnboardedImportedDeviceCount(onboardedImportedDeviceCount); return this; } /** *

* The summary information of count of wireless devices in an import task that failed to onboarded to the import * task. *

* * @param failedImportedDeviceCount * The summary information of count of wireless devices in an import task that failed to onboarded to the * import task. */ public void setFailedImportedDeviceCount(Long failedImportedDeviceCount) { this.failedImportedDeviceCount = failedImportedDeviceCount; } /** *

* The summary information of count of wireless devices in an import task that failed to onboarded to the import * task. *

* * @return The summary information of count of wireless devices in an import task that failed to onboarded to the * import task. */ public Long getFailedImportedDeviceCount() { return this.failedImportedDeviceCount; } /** *

* The summary information of count of wireless devices in an import task that failed to onboarded to the import * task. *

* * @param failedImportedDeviceCount * The summary information of count of wireless devices in an import task that failed to onboarded to the * import task. * @return Returns a reference to this object so that method calls can be chained together. */ public WirelessDeviceImportTask withFailedImportedDeviceCount(Long failedImportedDeviceCount) { setFailedImportedDeviceCount(failedImportedDeviceCount); 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 (getId() != null) sb.append("Id: ").append(getId()).append(","); if (getArn() != null) sb.append("Arn: ").append(getArn()).append(","); if (getDestinationName() != null) sb.append("DestinationName: ").append(getDestinationName()).append(","); if (getSidewalk() != null) sb.append("Sidewalk: ").append(getSidewalk()).append(","); if (getCreationTime() != null) sb.append("CreationTime: ").append(getCreationTime()).append(","); if (getStatus() != null) sb.append("Status: ").append(getStatus()).append(","); if (getStatusReason() != null) sb.append("StatusReason: ").append(getStatusReason()).append(","); if (getInitializedImportedDeviceCount() != null) sb.append("InitializedImportedDeviceCount: ").append(getInitializedImportedDeviceCount()).append(","); if (getPendingImportedDeviceCount() != null) sb.append("PendingImportedDeviceCount: ").append(getPendingImportedDeviceCount()).append(","); if (getOnboardedImportedDeviceCount() != null) sb.append("OnboardedImportedDeviceCount: ").append(getOnboardedImportedDeviceCount()).append(","); if (getFailedImportedDeviceCount() != null) sb.append("FailedImportedDeviceCount: ").append(getFailedImportedDeviceCount()); sb.append("}"); return sb.toString(); } @Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof WirelessDeviceImportTask == false) return false; WirelessDeviceImportTask other = (WirelessDeviceImportTask) obj; if (other.getId() == null ^ this.getId() == null) return false; if (other.getId() != null && other.getId().equals(this.getId()) == false) return false; if (other.getArn() == null ^ this.getArn() == null) return false; if (other.getArn() != null && other.getArn().equals(this.getArn()) == 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.getSidewalk() == null ^ this.getSidewalk() == null) return false; if (other.getSidewalk() != null && other.getSidewalk().equals(this.getSidewalk()) == false) return false; if (other.getCreationTime() == null ^ this.getCreationTime() == null) return false; if (other.getCreationTime() != null && other.getCreationTime().equals(this.getCreationTime()) == false) return false; if (other.getStatus() == null ^ this.getStatus() == null) return false; if (other.getStatus() != null && other.getStatus().equals(this.getStatus()) == false) return false; if (other.getStatusReason() == null ^ this.getStatusReason() == null) return false; if (other.getStatusReason() != null && other.getStatusReason().equals(this.getStatusReason()) == false) return false; if (other.getInitializedImportedDeviceCount() == null ^ this.getInitializedImportedDeviceCount() == null) return false; if (other.getInitializedImportedDeviceCount() != null && other.getInitializedImportedDeviceCount().equals(this.getInitializedImportedDeviceCount()) == false) return false; if (other.getPendingImportedDeviceCount() == null ^ this.getPendingImportedDeviceCount() == null) return false; if (other.getPendingImportedDeviceCount() != null && other.getPendingImportedDeviceCount().equals(this.getPendingImportedDeviceCount()) == false) return false; if (other.getOnboardedImportedDeviceCount() == null ^ this.getOnboardedImportedDeviceCount() == null) return false; if (other.getOnboardedImportedDeviceCount() != null && other.getOnboardedImportedDeviceCount().equals(this.getOnboardedImportedDeviceCount()) == false) return false; if (other.getFailedImportedDeviceCount() == null ^ this.getFailedImportedDeviceCount() == null) return false; if (other.getFailedImportedDeviceCount() != null && other.getFailedImportedDeviceCount().equals(this.getFailedImportedDeviceCount()) == false) return false; return true; } @Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getId() == null) ? 0 : getId().hashCode()); hashCode = prime * hashCode + ((getArn() == null) ? 0 : getArn().hashCode()); hashCode = prime * hashCode + ((getDestinationName() == null) ? 0 : getDestinationName().hashCode()); hashCode = prime * hashCode + ((getSidewalk() == null) ? 0 : getSidewalk().hashCode()); hashCode = prime * hashCode + ((getCreationTime() == null) ? 0 : getCreationTime().hashCode()); hashCode = prime * hashCode + ((getStatus() == null) ? 0 : getStatus().hashCode()); hashCode = prime * hashCode + ((getStatusReason() == null) ? 0 : getStatusReason().hashCode()); hashCode = prime * hashCode + ((getInitializedImportedDeviceCount() == null) ? 0 : getInitializedImportedDeviceCount().hashCode()); hashCode = prime * hashCode + ((getPendingImportedDeviceCount() == null) ? 0 : getPendingImportedDeviceCount().hashCode()); hashCode = prime * hashCode + ((getOnboardedImportedDeviceCount() == null) ? 0 : getOnboardedImportedDeviceCount().hashCode()); hashCode = prime * hashCode + ((getFailedImportedDeviceCount() == null) ? 0 : getFailedImportedDeviceCount().hashCode()); return hashCode; } @Override public WirelessDeviceImportTask clone() { try { return (WirelessDeviceImportTask) super.clone(); } catch (CloneNotSupportedException e) { throw new IllegalStateException("Got a CloneNotSupportedException from Object.clone() " + "even though we're Cloneable!", e); } } @com.amazonaws.annotation.SdkInternalApi @Override public void marshall(ProtocolMarshaller protocolMarshaller) { com.amazonaws.services.iotwireless.model.transform.WirelessDeviceImportTaskMarshaller.getInstance().marshall(this, protocolMarshaller); } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy