com.amazonaws.services.groundstation.model.UplinkSpectrumConfig 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 spectral Config
.
*
*
* @see AWS
* API Documentation
*/
@Generated("com.amazonaws:aws-java-sdk-code-generator")
public class UplinkSpectrumConfig implements Serializable, Cloneable, StructuredPojo {
/**
*
* Center frequency of an uplink spectral Config
. Valid values are between 2025 to 2120 MHz.
*
*/
private Frequency centerFrequency;
/**
*
* Polarization of an uplink spectral Config
. Capturing both "RIGHT_HAND"
and
* "LEFT_HAND"
polarization requires two separate configs.
*
*/
private String polarization;
/**
*
* Center frequency of an uplink spectral Config
. Valid values are between 2025 to 2120 MHz.
*
*
* @param centerFrequency
* Center frequency of an uplink spectral Config
. Valid values are between 2025 to 2120 MHz.
*/
public void setCenterFrequency(Frequency centerFrequency) {
this.centerFrequency = centerFrequency;
}
/**
*
* Center frequency of an uplink spectral Config
. Valid values are between 2025 to 2120 MHz.
*
*
* @return Center frequency of an uplink spectral Config
. Valid values are between 2025 to 2120 MHz.
*/
public Frequency getCenterFrequency() {
return this.centerFrequency;
}
/**
*
* Center frequency of an uplink spectral Config
. Valid values are between 2025 to 2120 MHz.
*
*
* @param centerFrequency
* Center frequency of an uplink spectral Config
. Valid values are between 2025 to 2120 MHz.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public UplinkSpectrumConfig withCenterFrequency(Frequency centerFrequency) {
setCenterFrequency(centerFrequency);
return this;
}
/**
*
* Polarization of an uplink spectral Config
. Capturing both "RIGHT_HAND"
and
* "LEFT_HAND"
polarization requires two separate configs.
*
*
* @param polarization
* Polarization of an uplink spectral Config
. Capturing both "RIGHT_HAND"
and
* "LEFT_HAND"
polarization requires two separate configs.
* @see Polarization
*/
public void setPolarization(String polarization) {
this.polarization = polarization;
}
/**
*
* Polarization of an uplink spectral Config
. Capturing both "RIGHT_HAND"
and
* "LEFT_HAND"
polarization requires two separate configs.
*
*
* @return Polarization of an uplink spectral Config
. Capturing both "RIGHT_HAND"
and
* "LEFT_HAND"
polarization requires two separate configs.
* @see Polarization
*/
public String getPolarization() {
return this.polarization;
}
/**
*
* Polarization of an uplink spectral Config
. Capturing both "RIGHT_HAND"
and
* "LEFT_HAND"
polarization requires two separate configs.
*
*
* @param polarization
* Polarization of an uplink spectral Config
. Capturing both "RIGHT_HAND"
and
* "LEFT_HAND"
polarization requires two separate configs.
* @return Returns a reference to this object so that method calls can be chained together.
* @see Polarization
*/
public UplinkSpectrumConfig withPolarization(String polarization) {
setPolarization(polarization);
return this;
}
/**
*
* Polarization of an uplink spectral Config
. Capturing both "RIGHT_HAND"
and
* "LEFT_HAND"
polarization requires two separate configs.
*
*
* @param polarization
* Polarization of an uplink spectral Config
. Capturing both "RIGHT_HAND"
and
* "LEFT_HAND"
polarization requires two separate configs.
* @return Returns a reference to this object so that method calls can be chained together.
* @see Polarization
*/
public UplinkSpectrumConfig withPolarization(Polarization polarization) {
this.polarization = polarization.toString();
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 (getCenterFrequency() != null)
sb.append("CenterFrequency: ").append(getCenterFrequency()).append(",");
if (getPolarization() != null)
sb.append("Polarization: ").append(getPolarization());
sb.append("}");
return sb.toString();
}
@Override
public boolean equals(Object obj) {
if (this == obj)
return true;
if (obj == null)
return false;
if (obj instanceof UplinkSpectrumConfig == false)
return false;
UplinkSpectrumConfig other = (UplinkSpectrumConfig) obj;
if (other.getCenterFrequency() == null ^ this.getCenterFrequency() == null)
return false;
if (other.getCenterFrequency() != null && other.getCenterFrequency().equals(this.getCenterFrequency()) == false)
return false;
if (other.getPolarization() == null ^ this.getPolarization() == null)
return false;
if (other.getPolarization() != null && other.getPolarization().equals(this.getPolarization()) == false)
return false;
return true;
}
@Override
public int hashCode() {
final int prime = 31;
int hashCode = 1;
hashCode = prime * hashCode + ((getCenterFrequency() == null) ? 0 : getCenterFrequency().hashCode());
hashCode = prime * hashCode + ((getPolarization() == null) ? 0 : getPolarization().hashCode());
return hashCode;
}
@Override
public UplinkSpectrumConfig clone() {
try {
return (UplinkSpectrumConfig) 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.UplinkSpectrumConfigMarshaller.getInstance().marshall(this, protocolMarshaller);
}
}