com.amazonaws.services.iotwireless.model.UpdateWirelessGatewayRequest 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.AmazonWebServiceRequest;
/**
*
* @see AWS
* API Documentation
*/
@Generated("com.amazonaws:aws-java-sdk-code-generator")
public class UpdateWirelessGatewayRequest extends com.amazonaws.AmazonWebServiceRequest implements Serializable, Cloneable {
/**
*
* The ID of the resource to update.
*
*/
private String id;
/**
*
* The new name of the resource.
*
*/
private String name;
/**
*
* A new description of the resource.
*
*/
private String description;
private java.util.List> joinEuiFilters;
private java.util.List netIdFilters;
/**
*
* The MaxEIRP value.
*
*/
private Float maxEirp;
/**
*
* The ID of the resource to update.
*
*
* @param id
* The ID of the resource to update.
*/
public void setId(String id) {
this.id = id;
}
/**
*
* The ID of the resource to update.
*
*
* @return The ID of the resource to update.
*/
public String getId() {
return this.id;
}
/**
*
* The ID of the resource to update.
*
*
* @param id
* The ID of the resource to update.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public UpdateWirelessGatewayRequest withId(String id) {
setId(id);
return this;
}
/**
*
* The new name of the resource.
*
*
* @param name
* The new name of the resource.
*/
public void setName(String name) {
this.name = name;
}
/**
*
* The new name of the resource.
*
*
* @return The new name of the resource.
*/
public String getName() {
return this.name;
}
/**
*
* The new name of the resource.
*
*
* @param name
* The new name of the resource.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public UpdateWirelessGatewayRequest withName(String name) {
setName(name);
return this;
}
/**
*
* A new description of the resource.
*
*
* @param description
* A new description of the resource.
*/
public void setDescription(String description) {
this.description = description;
}
/**
*
* A new description of the resource.
*
*
* @return A new description of the resource.
*/
public String getDescription() {
return this.description;
}
/**
*
* A new description of the resource.
*
*
* @param description
* A new description of the resource.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public UpdateWirelessGatewayRequest withDescription(String description) {
setDescription(description);
return this;
}
/**
* @return
*/
public java.util.List> getJoinEuiFilters() {
return joinEuiFilters;
}
/**
* @param joinEuiFilters
*/
public void setJoinEuiFilters(java.util.Collection> joinEuiFilters) {
if (joinEuiFilters == null) {
this.joinEuiFilters = null;
return;
}
this.joinEuiFilters = new java.util.ArrayList>(joinEuiFilters);
}
/**
*
* NOTE: This method appends the values to the existing list (if any). Use
* {@link #setJoinEuiFilters(java.util.Collection)} or {@link #withJoinEuiFilters(java.util.Collection)} if you want
* to override the existing values.
*
*
* @param joinEuiFilters
* @return Returns a reference to this object so that method calls can be chained together.
*/
public UpdateWirelessGatewayRequest withJoinEuiFilters(java.util.List... joinEuiFilters) {
if (this.joinEuiFilters == null) {
setJoinEuiFilters(new java.util.ArrayList>(joinEuiFilters.length));
}
for (java.util.List ele : joinEuiFilters) {
this.joinEuiFilters.add(ele);
}
return this;
}
/**
* @param joinEuiFilters
* @return Returns a reference to this object so that method calls can be chained together.
*/
public UpdateWirelessGatewayRequest withJoinEuiFilters(java.util.Collection> joinEuiFilters) {
setJoinEuiFilters(joinEuiFilters);
return this;
}
/**
* @return
*/
public java.util.List getNetIdFilters() {
return netIdFilters;
}
/**
* @param netIdFilters
*/
public void setNetIdFilters(java.util.Collection netIdFilters) {
if (netIdFilters == null) {
this.netIdFilters = null;
return;
}
this.netIdFilters = new java.util.ArrayList(netIdFilters);
}
/**
*
* NOTE: This method appends the values to the existing list (if any). Use
* {@link #setNetIdFilters(java.util.Collection)} or {@link #withNetIdFilters(java.util.Collection)} if you want to
* override the existing values.
*
*
* @param netIdFilters
* @return Returns a reference to this object so that method calls can be chained together.
*/
public UpdateWirelessGatewayRequest withNetIdFilters(String... netIdFilters) {
if (this.netIdFilters == null) {
setNetIdFilters(new java.util.ArrayList(netIdFilters.length));
}
for (String ele : netIdFilters) {
this.netIdFilters.add(ele);
}
return this;
}
/**
* @param netIdFilters
* @return Returns a reference to this object so that method calls can be chained together.
*/
public UpdateWirelessGatewayRequest withNetIdFilters(java.util.Collection netIdFilters) {
setNetIdFilters(netIdFilters);
return this;
}
/**
*
* The MaxEIRP value.
*
*
* @param maxEirp
* The MaxEIRP value.
*/
public void setMaxEirp(Float maxEirp) {
this.maxEirp = maxEirp;
}
/**
*
* The MaxEIRP value.
*
*
* @return The MaxEIRP value.
*/
public Float getMaxEirp() {
return this.maxEirp;
}
/**
*
* The MaxEIRP value.
*
*
* @param maxEirp
* The MaxEIRP value.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public UpdateWirelessGatewayRequest withMaxEirp(Float maxEirp) {
setMaxEirp(maxEirp);
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 (getId() != null)
sb.append("Id: ").append(getId()).append(",");
if (getName() != null)
sb.append("Name: ").append(getName()).append(",");
if (getDescription() != null)
sb.append("Description: ").append(getDescription()).append(",");
if (getJoinEuiFilters() != null)
sb.append("JoinEuiFilters: ").append(getJoinEuiFilters()).append(",");
if (getNetIdFilters() != null)
sb.append("NetIdFilters: ").append(getNetIdFilters()).append(",");
if (getMaxEirp() != null)
sb.append("MaxEirp: ").append(getMaxEirp());
sb.append("}");
return sb.toString();
}
@Override
public boolean equals(Object obj) {
if (this == obj)
return true;
if (obj == null)
return false;
if (obj instanceof UpdateWirelessGatewayRequest == false)
return false;
UpdateWirelessGatewayRequest other = (UpdateWirelessGatewayRequest) obj;
if (other.getId() == null ^ this.getId() == null)
return false;
if (other.getId() != null && other.getId().equals(this.getId()) == false)
return false;
if (other.getName() == null ^ this.getName() == null)
return false;
if (other.getName() != null && other.getName().equals(this.getName()) == false)
return false;
if (other.getDescription() == null ^ this.getDescription() == null)
return false;
if (other.getDescription() != null && other.getDescription().equals(this.getDescription()) == false)
return false;
if (other.getJoinEuiFilters() == null ^ this.getJoinEuiFilters() == null)
return false;
if (other.getJoinEuiFilters() != null && other.getJoinEuiFilters().equals(this.getJoinEuiFilters()) == false)
return false;
if (other.getNetIdFilters() == null ^ this.getNetIdFilters() == null)
return false;
if (other.getNetIdFilters() != null && other.getNetIdFilters().equals(this.getNetIdFilters()) == false)
return false;
if (other.getMaxEirp() == null ^ this.getMaxEirp() == null)
return false;
if (other.getMaxEirp() != null && other.getMaxEirp().equals(this.getMaxEirp()) == false)
return false;
return true;
}
@Override
public int hashCode() {
final int prime = 31;
int hashCode = 1;
hashCode = prime * hashCode + ((getId() == null) ? 0 : getId().hashCode());
hashCode = prime * hashCode + ((getName() == null) ? 0 : getName().hashCode());
hashCode = prime * hashCode + ((getDescription() == null) ? 0 : getDescription().hashCode());
hashCode = prime * hashCode + ((getJoinEuiFilters() == null) ? 0 : getJoinEuiFilters().hashCode());
hashCode = prime * hashCode + ((getNetIdFilters() == null) ? 0 : getNetIdFilters().hashCode());
hashCode = prime * hashCode + ((getMaxEirp() == null) ? 0 : getMaxEirp().hashCode());
return hashCode;
}
@Override
public UpdateWirelessGatewayRequest clone() {
return (UpdateWirelessGatewayRequest) super.clone();
}
}