/* * Copyright 2018-2023 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; /** *
* LoRaWAN router info. *
* * @see AWS API Documentation */ @Generated("com.amazonaws:aws-java-sdk-code-generator") public class LoRaWANSendDataToDevice implements Serializable, Cloneable, StructuredPojo { private Integer fPort; /** ** Choose the gateways that you want to use for the downlink data traffic when the wireless device is running in * class B or class C mode. *
*/ private ParticipatingGateways participatingGateways; /** * @param fPort */ public void setFPort(Integer fPort) { this.fPort = fPort; } /** * @return */ public Integer getFPort() { return this.fPort; } /** * @param fPort * @return Returns a reference to this object so that method calls can be chained together. */ public LoRaWANSendDataToDevice withFPort(Integer fPort) { setFPort(fPort); return this; } /** ** Choose the gateways that you want to use for the downlink data traffic when the wireless device is running in * class B or class C mode. *
* * @param participatingGateways * Choose the gateways that you want to use for the downlink data traffic when the wireless device is running * in class B or class C mode. */ public void setParticipatingGateways(ParticipatingGateways participatingGateways) { this.participatingGateways = participatingGateways; } /** ** Choose the gateways that you want to use for the downlink data traffic when the wireless device is running in * class B or class C mode. *
* * @return Choose the gateways that you want to use for the downlink data traffic when the wireless device is * running in class B or class C mode. */ public ParticipatingGateways getParticipatingGateways() { return this.participatingGateways; } /** ** Choose the gateways that you want to use for the downlink data traffic when the wireless device is running in * class B or class C mode. *
* * @param participatingGateways * Choose the gateways that you want to use for the downlink data traffic when the wireless device is running * in class B or class C mode. * @return Returns a reference to this object so that method calls can be chained together. */ public LoRaWANSendDataToDevice withParticipatingGateways(ParticipatingGateways participatingGateways) { setParticipatingGateways(participatingGateways); 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 (getFPort() != null) sb.append("FPort: ").append(getFPort()).append(","); if (getParticipatingGateways() != null) sb.append("ParticipatingGateways: ").append(getParticipatingGateways()); sb.append("}"); return sb.toString(); } @Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof LoRaWANSendDataToDevice == false) return false; LoRaWANSendDataToDevice other = (LoRaWANSendDataToDevice) obj; if (other.getFPort() == null ^ this.getFPort() == null) return false; if (other.getFPort() != null && other.getFPort().equals(this.getFPort()) == false) return false; if (other.getParticipatingGateways() == null ^ this.getParticipatingGateways() == null) return false; if (other.getParticipatingGateways() != null && other.getParticipatingGateways().equals(this.getParticipatingGateways()) == false) return false; return true; } @Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getFPort() == null) ? 0 : getFPort().hashCode()); hashCode = prime * hashCode + ((getParticipatingGateways() == null) ? 0 : getParticipatingGateways().hashCode()); return hashCode; } @Override public LoRaWANSendDataToDevice clone() { try { return (LoRaWANSendDataToDevice) 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.LoRaWANSendDataToDeviceMarshaller.getInstance().marshall(this, protocolMarshaller); } }