com.amazonaws.services.iotwireless.model.CdmaNmrObj Maven / Gradle / Ivy
Show all versions of aws-java-sdk-iotwireless 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.iotwireless.model;
import java.io.Serializable;
import javax.annotation.Generated;
import com.amazonaws.protocol.StructuredPojo;
import com.amazonaws.protocol.ProtocolMarshaller;
/**
*
* CDMA object for network measurement reports.
*
*
* @see AWS API
* Documentation
*/
@Generated("com.amazonaws:aws-java-sdk-code-generator")
public class CdmaNmrObj implements Serializable, Cloneable, StructuredPojo {
/**
*
* Pseudo-noise offset, which is a characteristic of the signal from a cell on a radio tower.
*
*/
private Integer pnOffset;
/**
*
* CDMA channel information.
*
*/
private Integer cdmaChannel;
/**
*
* Transmit power level of the pilot signal, measured in dBm (decibel-milliwatts).
*
*/
private Integer pilotPower;
/**
*
* CDMA base station ID (BSID).
*
*/
private Integer baseStationId;
/**
*
* Pseudo-noise offset, which is a characteristic of the signal from a cell on a radio tower.
*
*
* @param pnOffset
* Pseudo-noise offset, which is a characteristic of the signal from a cell on a radio tower.
*/
public void setPnOffset(Integer pnOffset) {
this.pnOffset = pnOffset;
}
/**
*
* Pseudo-noise offset, which is a characteristic of the signal from a cell on a radio tower.
*
*
* @return Pseudo-noise offset, which is a characteristic of the signal from a cell on a radio tower.
*/
public Integer getPnOffset() {
return this.pnOffset;
}
/**
*
* Pseudo-noise offset, which is a characteristic of the signal from a cell on a radio tower.
*
*
* @param pnOffset
* Pseudo-noise offset, which is a characteristic of the signal from a cell on a radio tower.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public CdmaNmrObj withPnOffset(Integer pnOffset) {
setPnOffset(pnOffset);
return this;
}
/**
*
* CDMA channel information.
*
*
* @param cdmaChannel
* CDMA channel information.
*/
public void setCdmaChannel(Integer cdmaChannel) {
this.cdmaChannel = cdmaChannel;
}
/**
*
* CDMA channel information.
*
*
* @return CDMA channel information.
*/
public Integer getCdmaChannel() {
return this.cdmaChannel;
}
/**
*
* CDMA channel information.
*
*
* @param cdmaChannel
* CDMA channel information.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public CdmaNmrObj withCdmaChannel(Integer cdmaChannel) {
setCdmaChannel(cdmaChannel);
return this;
}
/**
*
* Transmit power level of the pilot signal, measured in dBm (decibel-milliwatts).
*
*
* @param pilotPower
* Transmit power level of the pilot signal, measured in dBm (decibel-milliwatts).
*/
public void setPilotPower(Integer pilotPower) {
this.pilotPower = pilotPower;
}
/**
*
* Transmit power level of the pilot signal, measured in dBm (decibel-milliwatts).
*
*
* @return Transmit power level of the pilot signal, measured in dBm (decibel-milliwatts).
*/
public Integer getPilotPower() {
return this.pilotPower;
}
/**
*
* Transmit power level of the pilot signal, measured in dBm (decibel-milliwatts).
*
*
* @param pilotPower
* Transmit power level of the pilot signal, measured in dBm (decibel-milliwatts).
* @return Returns a reference to this object so that method calls can be chained together.
*/
public CdmaNmrObj withPilotPower(Integer pilotPower) {
setPilotPower(pilotPower);
return this;
}
/**
*
* CDMA base station ID (BSID).
*
*
* @param baseStationId
* CDMA base station ID (BSID).
*/
public void setBaseStationId(Integer baseStationId) {
this.baseStationId = baseStationId;
}
/**
*
* CDMA base station ID (BSID).
*
*
* @return CDMA base station ID (BSID).
*/
public Integer getBaseStationId() {
return this.baseStationId;
}
/**
*
* CDMA base station ID (BSID).
*
*
* @param baseStationId
* CDMA base station ID (BSID).
* @return Returns a reference to this object so that method calls can be chained together.
*/
public CdmaNmrObj withBaseStationId(Integer baseStationId) {
setBaseStationId(baseStationId);
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 (getPnOffset() != null)
sb.append("PnOffset: ").append(getPnOffset()).append(",");
if (getCdmaChannel() != null)
sb.append("CdmaChannel: ").append(getCdmaChannel()).append(",");
if (getPilotPower() != null)
sb.append("PilotPower: ").append(getPilotPower()).append(",");
if (getBaseStationId() != null)
sb.append("BaseStationId: ").append(getBaseStationId());
sb.append("}");
return sb.toString();
}
@Override
public boolean equals(Object obj) {
if (this == obj)
return true;
if (obj == null)
return false;
if (obj instanceof CdmaNmrObj == false)
return false;
CdmaNmrObj other = (CdmaNmrObj) obj;
if (other.getPnOffset() == null ^ this.getPnOffset() == null)
return false;
if (other.getPnOffset() != null && other.getPnOffset().equals(this.getPnOffset()) == false)
return false;
if (other.getCdmaChannel() == null ^ this.getCdmaChannel() == null)
return false;
if (other.getCdmaChannel() != null && other.getCdmaChannel().equals(this.getCdmaChannel()) == false)
return false;
if (other.getPilotPower() == null ^ this.getPilotPower() == null)
return false;
if (other.getPilotPower() != null && other.getPilotPower().equals(this.getPilotPower()) == false)
return false;
if (other.getBaseStationId() == null ^ this.getBaseStationId() == null)
return false;
if (other.getBaseStationId() != null && other.getBaseStationId().equals(this.getBaseStationId()) == false)
return false;
return true;
}
@Override
public int hashCode() {
final int prime = 31;
int hashCode = 1;
hashCode = prime * hashCode + ((getPnOffset() == null) ? 0 : getPnOffset().hashCode());
hashCode = prime * hashCode + ((getCdmaChannel() == null) ? 0 : getCdmaChannel().hashCode());
hashCode = prime * hashCode + ((getPilotPower() == null) ? 0 : getPilotPower().hashCode());
hashCode = prime * hashCode + ((getBaseStationId() == null) ? 0 : getBaseStationId().hashCode());
return hashCode;
}
@Override
public CdmaNmrObj clone() {
try {
return (CdmaNmrObj) 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.CdmaNmrObjMarshaller.getInstance().marshall(this, protocolMarshaller);
}
}