com.amazonaws.services.groundstation.model.AntennaUplinkConfig Maven / Gradle / Ivy
Show all versions of aws-java-sdk-groundstation 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.groundstation.model;
import java.io.Serializable;
import javax.annotation.Generated;
import com.amazonaws.protocol.StructuredPojo;
import com.amazonaws.protocol.ProtocolMarshaller;
/**
*
* Information about the uplink Config
of an antenna.
*
*
* @see AWS
* API Documentation
*/
@Generated("com.amazonaws:aws-java-sdk-code-generator")
public class AntennaUplinkConfig implements Serializable, Cloneable, StructuredPojo {
/**
*
* Information about the uplink spectral Config
.
*
*/
private UplinkSpectrumConfig spectrumConfig;
/**
*
* EIRP of the target.
*
*/
private Eirp targetEirp;
/**
*
* Whether or not uplink transmit is disabled.
*
*/
private Boolean transmitDisabled;
/**
*
* Information about the uplink spectral Config
.
*
*
* @param spectrumConfig
* Information about the uplink spectral Config
.
*/
public void setSpectrumConfig(UplinkSpectrumConfig spectrumConfig) {
this.spectrumConfig = spectrumConfig;
}
/**
*
* Information about the uplink spectral Config
.
*
*
* @return Information about the uplink spectral Config
.
*/
public UplinkSpectrumConfig getSpectrumConfig() {
return this.spectrumConfig;
}
/**
*
* Information about the uplink spectral Config
.
*
*
* @param spectrumConfig
* Information about the uplink spectral Config
.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public AntennaUplinkConfig withSpectrumConfig(UplinkSpectrumConfig spectrumConfig) {
setSpectrumConfig(spectrumConfig);
return this;
}
/**
*
* EIRP of the target.
*
*
* @param targetEirp
* EIRP of the target.
*/
public void setTargetEirp(Eirp targetEirp) {
this.targetEirp = targetEirp;
}
/**
*
* EIRP of the target.
*
*
* @return EIRP of the target.
*/
public Eirp getTargetEirp() {
return this.targetEirp;
}
/**
*
* EIRP of the target.
*
*
* @param targetEirp
* EIRP of the target.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public AntennaUplinkConfig withTargetEirp(Eirp targetEirp) {
setTargetEirp(targetEirp);
return this;
}
/**
*
* Whether or not uplink transmit is disabled.
*
*
* @param transmitDisabled
* Whether or not uplink transmit is disabled.
*/
public void setTransmitDisabled(Boolean transmitDisabled) {
this.transmitDisabled = transmitDisabled;
}
/**
*
* Whether or not uplink transmit is disabled.
*
*
* @return Whether or not uplink transmit is disabled.
*/
public Boolean getTransmitDisabled() {
return this.transmitDisabled;
}
/**
*
* Whether or not uplink transmit is disabled.
*
*
* @param transmitDisabled
* Whether or not uplink transmit is disabled.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public AntennaUplinkConfig withTransmitDisabled(Boolean transmitDisabled) {
setTransmitDisabled(transmitDisabled);
return this;
}
/**
*
* Whether or not uplink transmit is disabled.
*
*
* @return Whether or not uplink transmit is disabled.
*/
public Boolean isTransmitDisabled() {
return this.transmitDisabled;
}
/**
* 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 (getSpectrumConfig() != null)
sb.append("SpectrumConfig: ").append(getSpectrumConfig()).append(",");
if (getTargetEirp() != null)
sb.append("TargetEirp: ").append(getTargetEirp()).append(",");
if (getTransmitDisabled() != null)
sb.append("TransmitDisabled: ").append(getTransmitDisabled());
sb.append("}");
return sb.toString();
}
@Override
public boolean equals(Object obj) {
if (this == obj)
return true;
if (obj == null)
return false;
if (obj instanceof AntennaUplinkConfig == false)
return false;
AntennaUplinkConfig other = (AntennaUplinkConfig) obj;
if (other.getSpectrumConfig() == null ^ this.getSpectrumConfig() == null)
return false;
if (other.getSpectrumConfig() != null && other.getSpectrumConfig().equals(this.getSpectrumConfig()) == false)
return false;
if (other.getTargetEirp() == null ^ this.getTargetEirp() == null)
return false;
if (other.getTargetEirp() != null && other.getTargetEirp().equals(this.getTargetEirp()) == false)
return false;
if (other.getTransmitDisabled() == null ^ this.getTransmitDisabled() == null)
return false;
if (other.getTransmitDisabled() != null && other.getTransmitDisabled().equals(this.getTransmitDisabled()) == false)
return false;
return true;
}
@Override
public int hashCode() {
final int prime = 31;
int hashCode = 1;
hashCode = prime * hashCode + ((getSpectrumConfig() == null) ? 0 : getSpectrumConfig().hashCode());
hashCode = prime * hashCode + ((getTargetEirp() == null) ? 0 : getTargetEirp().hashCode());
hashCode = prime * hashCode + ((getTransmitDisabled() == null) ? 0 : getTransmitDisabled().hashCode());
return hashCode;
}
@Override
public AntennaUplinkConfig clone() {
try {
return (AntennaUplinkConfig) 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.groundstation.model.transform.AntennaUplinkConfigMarshaller.getInstance().marshall(this, protocolMarshaller);
}
}