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

com.amazonaws.services.iotwireless.model.StartSingleWirelessDeviceImportTaskRequest 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 StartSingleWirelessDeviceImportTaskRequest extends com.amazonaws.AmazonWebServiceRequest implements Serializable, Cloneable {

    /**
     * 

* The name of the Sidewalk destination 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; private String clientRequestToken; /** *

* The name of the wireless device for which an import task is being started. *

*/ private String deviceName; private java.util.List tags; /** *

* The Sidewalk-related parameters for importing a single wireless device. *

*/ private SidewalkSingleStartImportInfo sidewalk; /** *

* The name of the Sidewalk destination 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 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 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 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 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 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 StartSingleWirelessDeviceImportTaskRequest withDestinationName(String destinationName) { setDestinationName(destinationName); return this; } /** * @param clientRequestToken */ public void setClientRequestToken(String clientRequestToken) { this.clientRequestToken = clientRequestToken; } /** * @return */ public String getClientRequestToken() { return this.clientRequestToken; } /** * @param clientRequestToken * @return Returns a reference to this object so that method calls can be chained together. */ public StartSingleWirelessDeviceImportTaskRequest withClientRequestToken(String clientRequestToken) { setClientRequestToken(clientRequestToken); return this; } /** *

* The name of the wireless device for which an import task is being started. *

* * @param deviceName * The name of the wireless device for which an import task is being started. */ public void setDeviceName(String deviceName) { this.deviceName = deviceName; } /** *

* The name of the wireless device for which an import task is being started. *

* * @return The name of the wireless device for which an import task is being started. */ public String getDeviceName() { return this.deviceName; } /** *

* The name of the wireless device for which an import task is being started. *

* * @param deviceName * The name of the wireless device for which an import task is being started. * @return Returns a reference to this object so that method calls can be chained together. */ public StartSingleWirelessDeviceImportTaskRequest withDeviceName(String deviceName) { setDeviceName(deviceName); return this; } /** * @return */ public java.util.List getTags() { return tags; } /** * @param tags */ public void setTags(java.util.Collection tags) { if (tags == null) { this.tags = null; return; } this.tags = new java.util.ArrayList(tags); } /** *

* NOTE: This method appends the values to the existing list (if any). Use * {@link #setTags(java.util.Collection)} or {@link #withTags(java.util.Collection)} if you want to override the * existing values. *

* * @param tags * @return Returns a reference to this object so that method calls can be chained together. */ public StartSingleWirelessDeviceImportTaskRequest withTags(Tag... tags) { if (this.tags == null) { setTags(new java.util.ArrayList(tags.length)); } for (Tag ele : tags) { this.tags.add(ele); } return this; } /** * @param tags * @return Returns a reference to this object so that method calls can be chained together. */ public StartSingleWirelessDeviceImportTaskRequest withTags(java.util.Collection tags) { setTags(tags); return this; } /** *

* The Sidewalk-related parameters for importing a single wireless device. *

* * @param sidewalk * The Sidewalk-related parameters for importing a single wireless device. */ public void setSidewalk(SidewalkSingleStartImportInfo sidewalk) { this.sidewalk = sidewalk; } /** *

* The Sidewalk-related parameters for importing a single wireless device. *

* * @return The Sidewalk-related parameters for importing a single wireless device. */ public SidewalkSingleStartImportInfo getSidewalk() { return this.sidewalk; } /** *

* The Sidewalk-related parameters for importing a single wireless device. *

* * @param sidewalk * The Sidewalk-related parameters for importing a single wireless device. * @return Returns a reference to this object so that method calls can be chained together. */ public StartSingleWirelessDeviceImportTaskRequest withSidewalk(SidewalkSingleStartImportInfo sidewalk) { setSidewalk(sidewalk); 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 (getDestinationName() != null) sb.append("DestinationName: ").append(getDestinationName()).append(","); if (getClientRequestToken() != null) sb.append("ClientRequestToken: ").append(getClientRequestToken()).append(","); if (getDeviceName() != null) sb.append("DeviceName: ").append(getDeviceName()).append(","); if (getTags() != null) sb.append("Tags: ").append(getTags()).append(","); if (getSidewalk() != null) sb.append("Sidewalk: ").append(getSidewalk()); sb.append("}"); return sb.toString(); } @Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof StartSingleWirelessDeviceImportTaskRequest == false) return false; StartSingleWirelessDeviceImportTaskRequest other = (StartSingleWirelessDeviceImportTaskRequest) obj; if (other.getDestinationName() == null ^ this.getDestinationName() == null) return false; if (other.getDestinationName() != null && other.getDestinationName().equals(this.getDestinationName()) == false) return false; if (other.getClientRequestToken() == null ^ this.getClientRequestToken() == null) return false; if (other.getClientRequestToken() != null && other.getClientRequestToken().equals(this.getClientRequestToken()) == false) return false; if (other.getDeviceName() == null ^ this.getDeviceName() == null) return false; if (other.getDeviceName() != null && other.getDeviceName().equals(this.getDeviceName()) == false) return false; if (other.getTags() == null ^ this.getTags() == null) return false; if (other.getTags() != null && other.getTags().equals(this.getTags()) == false) return false; if (other.getSidewalk() == null ^ this.getSidewalk() == null) return false; if (other.getSidewalk() != null && other.getSidewalk().equals(this.getSidewalk()) == false) return false; return true; } @Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getDestinationName() == null) ? 0 : getDestinationName().hashCode()); hashCode = prime * hashCode + ((getClientRequestToken() == null) ? 0 : getClientRequestToken().hashCode()); hashCode = prime * hashCode + ((getDeviceName() == null) ? 0 : getDeviceName().hashCode()); hashCode = prime * hashCode + ((getTags() == null) ? 0 : getTags().hashCode()); hashCode = prime * hashCode + ((getSidewalk() == null) ? 0 : getSidewalk().hashCode()); return hashCode; } @Override public StartSingleWirelessDeviceImportTaskRequest clone() { return (StartSingleWirelessDeviceImportTaskRequest) super.clone(); } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy