/* * 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; /** *

* LTE object for network measurement reports. *

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

* Physical cell ID. *

*/ private Integer pci; /** *

* E-UTRA (Evolved universal terrestrial Radio Access) absolute radio frequency channel Number (EARFCN). *

*/ private Integer earfcn; /** *

* E-UTRAN (Evolved Universal Terrestrial Radio Access Network) cell global identifier (EUTRANCID). *

*/ private Integer eutranCid; /** *

* Signal power of the reference signal received, measured in dBm (decibel-milliwatts). *

*/ private Integer rsrp; /** *

* Signal quality of the reference Signal received, measured in decibels (dB). *

*/ private Float rsrq; /** *

* Physical cell ID. *

* * @param pci * Physical cell ID. */ public void setPci(Integer pci) { this.pci = pci; } /** *

* Physical cell ID. *

* * @return Physical cell ID. */ public Integer getPci() { return this.pci; } /** *

* Physical cell ID. *

* * @param pci * Physical cell ID. * @return Returns a reference to this object so that method calls can be chained together. */ public LteNmrObj withPci(Integer pci) { setPci(pci); return this; } /** *

* E-UTRA (Evolved universal terrestrial Radio Access) absolute radio frequency channel Number (EARFCN). *

* * @param earfcn * E-UTRA (Evolved universal terrestrial Radio Access) absolute radio frequency channel Number (EARFCN). */ public void setEarfcn(Integer earfcn) { this.earfcn = earfcn; } /** *

* E-UTRA (Evolved universal terrestrial Radio Access) absolute radio frequency channel Number (EARFCN). *

* * @return E-UTRA (Evolved universal terrestrial Radio Access) absolute radio frequency channel Number (EARFCN). */ public Integer getEarfcn() { return this.earfcn; } /** *

* E-UTRA (Evolved universal terrestrial Radio Access) absolute radio frequency channel Number (EARFCN). *

* * @param earfcn * E-UTRA (Evolved universal terrestrial Radio Access) absolute radio frequency channel Number (EARFCN). * @return Returns a reference to this object so that method calls can be chained together. */ public LteNmrObj withEarfcn(Integer earfcn) { setEarfcn(earfcn); return this; } /** *

* E-UTRAN (Evolved Universal Terrestrial Radio Access Network) cell global identifier (EUTRANCID). *

* * @param eutranCid * E-UTRAN (Evolved Universal Terrestrial Radio Access Network) cell global identifier (EUTRANCID). */ public void setEutranCid(Integer eutranCid) { this.eutranCid = eutranCid; } /** *

* E-UTRAN (Evolved Universal Terrestrial Radio Access Network) cell global identifier (EUTRANCID). *

* * @return E-UTRAN (Evolved Universal Terrestrial Radio Access Network) cell global identifier (EUTRANCID). */ public Integer getEutranCid() { return this.eutranCid; } /** *

* E-UTRAN (Evolved Universal Terrestrial Radio Access Network) cell global identifier (EUTRANCID). *

* * @param eutranCid * E-UTRAN (Evolved Universal Terrestrial Radio Access Network) cell global identifier (EUTRANCID). * @return Returns a reference to this object so that method calls can be chained together. */ public LteNmrObj withEutranCid(Integer eutranCid) { setEutranCid(eutranCid); return this; } /** *

* Signal power of the reference signal received, measured in dBm (decibel-milliwatts). *

* * @param rsrp * Signal power of the reference signal received, measured in dBm (decibel-milliwatts). */ public void setRsrp(Integer rsrp) { this.rsrp = rsrp; } /** *

* Signal power of the reference signal received, measured in dBm (decibel-milliwatts). *

* * @return Signal power of the reference signal received, measured in dBm (decibel-milliwatts). */ public Integer getRsrp() { return this.rsrp; } /** *

* Signal power of the reference signal received, measured in dBm (decibel-milliwatts). *

* * @param rsrp * Signal power of the reference signal received, measured in dBm (decibel-milliwatts). * @return Returns a reference to this object so that method calls can be chained together. */ public LteNmrObj withRsrp(Integer rsrp) { setRsrp(rsrp); return this; } /** *

* Signal quality of the reference Signal received, measured in decibels (dB). *

* * @param rsrq * Signal quality of the reference Signal received, measured in decibels (dB). */ public void setRsrq(Float rsrq) { this.rsrq = rsrq; } /** *

* Signal quality of the reference Signal received, measured in decibels (dB). *

* * @return Signal quality of the reference Signal received, measured in decibels (dB). */ public Float getRsrq() { return this.rsrq; } /** *

* Signal quality of the reference Signal received, measured in decibels (dB). *

* * @param rsrq * Signal quality of the reference Signal received, measured in decibels (dB). * @return Returns a reference to this object so that method calls can be chained together. */ public LteNmrObj withRsrq(Float rsrq) { setRsrq(rsrq); 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 (getPci() != null) sb.append("Pci: ").append(getPci()).append(","); if (getEarfcn() != null) sb.append("Earfcn: ").append(getEarfcn()).append(","); if (getEutranCid() != null) sb.append("EutranCid: ").append(getEutranCid()).append(","); if (getRsrp() != null) sb.append("Rsrp: ").append(getRsrp()).append(","); if (getRsrq() != null) sb.append("Rsrq: ").append(getRsrq()); sb.append("}"); return sb.toString(); } @Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof LteNmrObj == false) return false; LteNmrObj other = (LteNmrObj) obj; if (other.getPci() == null ^ this.getPci() == null) return false; if (other.getPci() != null && other.getPci().equals(this.getPci()) == false) return false; if (other.getEarfcn() == null ^ this.getEarfcn() == null) return false; if (other.getEarfcn() != null && other.getEarfcn().equals(this.getEarfcn()) == false) return false; if (other.getEutranCid() == null ^ this.getEutranCid() == null) return false; if (other.getEutranCid() != null && other.getEutranCid().equals(this.getEutranCid()) == false) return false; if (other.getRsrp() == null ^ this.getRsrp() == null) return false; if (other.getRsrp() != null && other.getRsrp().equals(this.getRsrp()) == false) return false; if (other.getRsrq() == null ^ this.getRsrq() == null) return false; if (other.getRsrq() != null && other.getRsrq().equals(this.getRsrq()) == false) return false; return true; } @Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getPci() == null) ? 0 : getPci().hashCode()); hashCode = prime * hashCode + ((getEarfcn() == null) ? 0 : getEarfcn().hashCode()); hashCode = prime * hashCode + ((getEutranCid() == null) ? 0 : getEutranCid().hashCode()); hashCode = prime * hashCode + ((getRsrp() == null) ? 0 : getRsrp().hashCode()); hashCode = prime * hashCode + ((getRsrq() == null) ? 0 : getRsrq().hashCode()); return hashCode; } @Override public LteNmrObj clone() { try { return (LteNmrObj) 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.LteNmrObjMarshaller.getInstance().marshall(this, protocolMarshaller); } }