/* * 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 device metatdata. *
* * @see AWS * API Documentation */ @Generated("com.amazonaws:aws-java-sdk-code-generator") public class LoRaWANDeviceMetadata implements Serializable, Cloneable, StructuredPojo { /** ** The DevEUI value. *
*/ private String devEui; /** ** The FPort value. *
*/ private Integer fPort; /** ** The DataRate value. *
*/ private Integer dataRate; /** ** The device's channel frequency in Hz. *
*/ private Integer frequency; /** ** The date and time of the metadata. *
*/ private String timestamp; /** ** Information about the gateways accessed by the device. *
*/ private java.util.List* The DevEUI value. *
* * @param devEui * The DevEUI value. */ public void setDevEui(String devEui) { this.devEui = devEui; } /** ** The DevEUI value. *
* * @return The DevEUI value. */ public String getDevEui() { return this.devEui; } /** ** The DevEUI value. *
* * @param devEui * The DevEUI value. * @return Returns a reference to this object so that method calls can be chained together. */ public LoRaWANDeviceMetadata withDevEui(String devEui) { setDevEui(devEui); return this; } /** ** The FPort value. *
* * @param fPort * The FPort value. */ public void setFPort(Integer fPort) { this.fPort = fPort; } /** ** The FPort value. *
* * @return The FPort value. */ public Integer getFPort() { return this.fPort; } /** ** The FPort value. *
* * @param fPort * The FPort value. * @return Returns a reference to this object so that method calls can be chained together. */ public LoRaWANDeviceMetadata withFPort(Integer fPort) { setFPort(fPort); return this; } /** ** The DataRate value. *
* * @param dataRate * The DataRate value. */ public void setDataRate(Integer dataRate) { this.dataRate = dataRate; } /** ** The DataRate value. *
* * @return The DataRate value. */ public Integer getDataRate() { return this.dataRate; } /** ** The DataRate value. *
* * @param dataRate * The DataRate value. * @return Returns a reference to this object so that method calls can be chained together. */ public LoRaWANDeviceMetadata withDataRate(Integer dataRate) { setDataRate(dataRate); return this; } /** ** The device's channel frequency in Hz. *
* * @param frequency * The device's channel frequency in Hz. */ public void setFrequency(Integer frequency) { this.frequency = frequency; } /** ** The device's channel frequency in Hz. *
* * @return The device's channel frequency in Hz. */ public Integer getFrequency() { return this.frequency; } /** ** The device's channel frequency in Hz. *
* * @param frequency * The device's channel frequency in Hz. * @return Returns a reference to this object so that method calls can be chained together. */ public LoRaWANDeviceMetadata withFrequency(Integer frequency) { setFrequency(frequency); return this; } /** ** The date and time of the metadata. *
* * @param timestamp * The date and time of the metadata. */ public void setTimestamp(String timestamp) { this.timestamp = timestamp; } /** ** The date and time of the metadata. *
* * @return The date and time of the metadata. */ public String getTimestamp() { return this.timestamp; } /** ** The date and time of the metadata. *
* * @param timestamp * The date and time of the metadata. * @return Returns a reference to this object so that method calls can be chained together. */ public LoRaWANDeviceMetadata withTimestamp(String timestamp) { setTimestamp(timestamp); return this; } /** ** Information about the gateways accessed by the device. *
* * @return Information about the gateways accessed by the device. */ public java.util.List* Information about the gateways accessed by the device. *
* * @param gateways * Information about the gateways accessed by the device. */ public void setGateways(java.util.Collection* Information about the gateways accessed by the device. *
** NOTE: This method appends the values to the existing list (if any). Use * {@link #setGateways(java.util.Collection)} or {@link #withGateways(java.util.Collection)} if you want to override * the existing values. *
* * @param gateways * Information about the gateways accessed by the device. * @return Returns a reference to this object so that method calls can be chained together. */ public LoRaWANDeviceMetadata withGateways(LoRaWANGatewayMetadata... gateways) { if (this.gateways == null) { setGateways(new java.util.ArrayList* Information about the gateways accessed by the device. *
* * @param gateways * Information about the gateways accessed by the device. * @return Returns a reference to this object so that method calls can be chained together. */ public LoRaWANDeviceMetadata withGateways(java.util.Collection