com.amazonaws.services.location.model.LteNetworkMeasurements Maven / Gradle / Ivy
Show all versions of aws-java-sdk-location Show documentation
/*
* 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.location.model;
import java.io.Serializable;
import javax.annotation.Generated;
import com.amazonaws.protocol.StructuredPojo;
import com.amazonaws.protocol.ProtocolMarshaller;
/**
*
* LTE network measurements.
*
*
* @see AWS
* API Documentation
*/
@Generated("com.amazonaws:aws-java-sdk-code-generator")
public class LteNetworkMeasurements implements Serializable, Cloneable, StructuredPojo {
/**
*
* E-UTRA (Evolved Universal Terrestrial Radio Access) absolute radio frequency channel number (EARFCN).
*
*/
private Integer earfcn;
/**
*
* E-UTRAN Cell Identifier (ECI).
*
*/
private Integer cellId;
/**
*
* Physical Cell ID (PCI).
*
*/
private Integer pci;
/**
*
* 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;
/**
*
* 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 LteNetworkMeasurements withEarfcn(Integer earfcn) {
setEarfcn(earfcn);
return this;
}
/**
*
* E-UTRAN Cell Identifier (ECI).
*
*
* @param cellId
* E-UTRAN Cell Identifier (ECI).
*/
public void setCellId(Integer cellId) {
this.cellId = cellId;
}
/**
*
* E-UTRAN Cell Identifier (ECI).
*
*
* @return E-UTRAN Cell Identifier (ECI).
*/
public Integer getCellId() {
return this.cellId;
}
/**
*
* E-UTRAN Cell Identifier (ECI).
*
*
* @param cellId
* E-UTRAN Cell Identifier (ECI).
* @return Returns a reference to this object so that method calls can be chained together.
*/
public LteNetworkMeasurements withCellId(Integer cellId) {
setCellId(cellId);
return this;
}
/**
*
* Physical Cell ID (PCI).
*
*
* @param pci
* Physical Cell ID (PCI).
*/
public void setPci(Integer pci) {
this.pci = pci;
}
/**
*
* Physical Cell ID (PCI).
*
*
* @return Physical Cell ID (PCI).
*/
public Integer getPci() {
return this.pci;
}
/**
*
* Physical Cell ID (PCI).
*
*
* @param pci
* Physical Cell ID (PCI).
* @return Returns a reference to this object so that method calls can be chained together.
*/
public LteNetworkMeasurements withPci(Integer pci) {
setPci(pci);
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 LteNetworkMeasurements 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 LteNetworkMeasurements 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 (getEarfcn() != null)
sb.append("Earfcn: ").append(getEarfcn()).append(",");
if (getCellId() != null)
sb.append("CellId: ").append(getCellId()).append(",");
if (getPci() != null)
sb.append("Pci: ").append(getPci()).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 LteNetworkMeasurements == false)
return false;
LteNetworkMeasurements other = (LteNetworkMeasurements) obj;
if (other.getEarfcn() == null ^ this.getEarfcn() == null)
return false;
if (other.getEarfcn() != null && other.getEarfcn().equals(this.getEarfcn()) == false)
return false;
if (other.getCellId() == null ^ this.getCellId() == null)
return false;
if (other.getCellId() != null && other.getCellId().equals(this.getCellId()) == false)
return false;
if (other.getPci() == null ^ this.getPci() == null)
return false;
if (other.getPci() != null && other.getPci().equals(this.getPci()) == 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 + ((getEarfcn() == null) ? 0 : getEarfcn().hashCode());
hashCode = prime * hashCode + ((getCellId() == null) ? 0 : getCellId().hashCode());
hashCode = prime * hashCode + ((getPci() == null) ? 0 : getPci().hashCode());
hashCode = prime * hashCode + ((getRsrp() == null) ? 0 : getRsrp().hashCode());
hashCode = prime * hashCode + ((getRsrq() == null) ? 0 : getRsrq().hashCode());
return hashCode;
}
@Override
public LteNetworkMeasurements clone() {
try {
return (LteNetworkMeasurements) 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.location.model.transform.LteNetworkMeasurementsMarshaller.getInstance().marshall(this, protocolMarshaller);
}
}