
com.amazonaws.services.iotwireless.model.UpdateNetworkAnalyzerConfigurationRequest Maven / Gradle / Ivy
/*
* Copyright 2018-2023 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 UpdateNetworkAnalyzerConfigurationRequest extends com.amazonaws.AmazonWebServiceRequest implements Serializable, Cloneable {
private String configurationName;
private TraceContent traceContent;
/**
*
* Wireless device resources to add to the network analyzer configuration. Provide the WirelessDeviceId
* of the resource to add in the input array.
*
*/
private java.util.List wirelessDevicesToAdd;
/**
*
* Wireless device resources to remove from the network analyzer configuration. Provide the
* WirelessDeviceId
of the resources to remove in the input array.
*
*/
private java.util.List wirelessDevicesToRemove;
/**
*
* Wireless gateway resources to add to the network analyzer configuration. Provide the
* WirelessGatewayId
of the resource to add in the input array.
*
*/
private java.util.List wirelessGatewaysToAdd;
/**
*
* Wireless gateway resources to remove from the network analyzer configuration. Provide the
* WirelessGatewayId
of the resources to remove in the input array.
*
*/
private java.util.List wirelessGatewaysToRemove;
private String description;
/**
*
* Multicast group resources to add to the network analyzer configuration. Provide the MulticastGroupId
* of the resource to add in the input array.
*
*/
private java.util.List multicastGroupsToAdd;
/**
*
* Multicast group resources to remove from the network analyzer configuration. Provide the
* MulticastGroupId
of the resource to remove in the input array.
*
*/
private java.util.List multicastGroupsToRemove;
/**
* @param configurationName
*/
public void setConfigurationName(String configurationName) {
this.configurationName = configurationName;
}
/**
* @return
*/
public String getConfigurationName() {
return this.configurationName;
}
/**
* @param configurationName
* @return Returns a reference to this object so that method calls can be chained together.
*/
public UpdateNetworkAnalyzerConfigurationRequest withConfigurationName(String configurationName) {
setConfigurationName(configurationName);
return this;
}
/**
* @param traceContent
*/
public void setTraceContent(TraceContent traceContent) {
this.traceContent = traceContent;
}
/**
* @return
*/
public TraceContent getTraceContent() {
return this.traceContent;
}
/**
* @param traceContent
* @return Returns a reference to this object so that method calls can be chained together.
*/
public UpdateNetworkAnalyzerConfigurationRequest withTraceContent(TraceContent traceContent) {
setTraceContent(traceContent);
return this;
}
/**
*
* Wireless device resources to add to the network analyzer configuration. Provide the WirelessDeviceId
* of the resource to add in the input array.
*
*
* @return Wireless device resources to add to the network analyzer configuration. Provide the
* WirelessDeviceId
of the resource to add in the input array.
*/
public java.util.List getWirelessDevicesToAdd() {
return wirelessDevicesToAdd;
}
/**
*
* Wireless device resources to add to the network analyzer configuration. Provide the WirelessDeviceId
* of the resource to add in the input array.
*
*
* @param wirelessDevicesToAdd
* Wireless device resources to add to the network analyzer configuration. Provide the
* WirelessDeviceId
of the resource to add in the input array.
*/
public void setWirelessDevicesToAdd(java.util.Collection wirelessDevicesToAdd) {
if (wirelessDevicesToAdd == null) {
this.wirelessDevicesToAdd = null;
return;
}
this.wirelessDevicesToAdd = new java.util.ArrayList(wirelessDevicesToAdd);
}
/**
*
* Wireless device resources to add to the network analyzer configuration. Provide the WirelessDeviceId
* of the resource to add in the input array.
*
*
* NOTE: This method appends the values to the existing list (if any). Use
* {@link #setWirelessDevicesToAdd(java.util.Collection)} or {@link #withWirelessDevicesToAdd(java.util.Collection)}
* if you want to override the existing values.
*
*
* @param wirelessDevicesToAdd
* Wireless device resources to add to the network analyzer configuration. Provide the
* WirelessDeviceId
of the resource to add in the input array.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public UpdateNetworkAnalyzerConfigurationRequest withWirelessDevicesToAdd(String... wirelessDevicesToAdd) {
if (this.wirelessDevicesToAdd == null) {
setWirelessDevicesToAdd(new java.util.ArrayList(wirelessDevicesToAdd.length));
}
for (String ele : wirelessDevicesToAdd) {
this.wirelessDevicesToAdd.add(ele);
}
return this;
}
/**
*
* Wireless device resources to add to the network analyzer configuration. Provide the WirelessDeviceId
* of the resource to add in the input array.
*
*
* @param wirelessDevicesToAdd
* Wireless device resources to add to the network analyzer configuration. Provide the
* WirelessDeviceId
of the resource to add in the input array.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public UpdateNetworkAnalyzerConfigurationRequest withWirelessDevicesToAdd(java.util.Collection wirelessDevicesToAdd) {
setWirelessDevicesToAdd(wirelessDevicesToAdd);
return this;
}
/**
*
* Wireless device resources to remove from the network analyzer configuration. Provide the
* WirelessDeviceId
of the resources to remove in the input array.
*
*
* @return Wireless device resources to remove from the network analyzer configuration. Provide the
* WirelessDeviceId
of the resources to remove in the input array.
*/
public java.util.List getWirelessDevicesToRemove() {
return wirelessDevicesToRemove;
}
/**
*
* Wireless device resources to remove from the network analyzer configuration. Provide the
* WirelessDeviceId
of the resources to remove in the input array.
*
*
* @param wirelessDevicesToRemove
* Wireless device resources to remove from the network analyzer configuration. Provide the
* WirelessDeviceId
of the resources to remove in the input array.
*/
public void setWirelessDevicesToRemove(java.util.Collection wirelessDevicesToRemove) {
if (wirelessDevicesToRemove == null) {
this.wirelessDevicesToRemove = null;
return;
}
this.wirelessDevicesToRemove = new java.util.ArrayList(wirelessDevicesToRemove);
}
/**
*
* Wireless device resources to remove from the network analyzer configuration. Provide the
* WirelessDeviceId
of the resources to remove in the input array.
*
*
* NOTE: This method appends the values to the existing list (if any). Use
* {@link #setWirelessDevicesToRemove(java.util.Collection)} or
* {@link #withWirelessDevicesToRemove(java.util.Collection)} if you want to override the existing values.
*
*
* @param wirelessDevicesToRemove
* Wireless device resources to remove from the network analyzer configuration. Provide the
* WirelessDeviceId
of the resources to remove in the input array.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public UpdateNetworkAnalyzerConfigurationRequest withWirelessDevicesToRemove(String... wirelessDevicesToRemove) {
if (this.wirelessDevicesToRemove == null) {
setWirelessDevicesToRemove(new java.util.ArrayList(wirelessDevicesToRemove.length));
}
for (String ele : wirelessDevicesToRemove) {
this.wirelessDevicesToRemove.add(ele);
}
return this;
}
/**
*
* Wireless device resources to remove from the network analyzer configuration. Provide the
* WirelessDeviceId
of the resources to remove in the input array.
*
*
* @param wirelessDevicesToRemove
* Wireless device resources to remove from the network analyzer configuration. Provide the
* WirelessDeviceId
of the resources to remove in the input array.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public UpdateNetworkAnalyzerConfigurationRequest withWirelessDevicesToRemove(java.util.Collection wirelessDevicesToRemove) {
setWirelessDevicesToRemove(wirelessDevicesToRemove);
return this;
}
/**
*
* Wireless gateway resources to add to the network analyzer configuration. Provide the
* WirelessGatewayId
of the resource to add in the input array.
*
*
* @return Wireless gateway resources to add to the network analyzer configuration. Provide the
* WirelessGatewayId
of the resource to add in the input array.
*/
public java.util.List getWirelessGatewaysToAdd() {
return wirelessGatewaysToAdd;
}
/**
*
* Wireless gateway resources to add to the network analyzer configuration. Provide the
* WirelessGatewayId
of the resource to add in the input array.
*
*
* @param wirelessGatewaysToAdd
* Wireless gateway resources to add to the network analyzer configuration. Provide the
* WirelessGatewayId
of the resource to add in the input array.
*/
public void setWirelessGatewaysToAdd(java.util.Collection wirelessGatewaysToAdd) {
if (wirelessGatewaysToAdd == null) {
this.wirelessGatewaysToAdd = null;
return;
}
this.wirelessGatewaysToAdd = new java.util.ArrayList(wirelessGatewaysToAdd);
}
/**
*
* Wireless gateway resources to add to the network analyzer configuration. Provide the
* WirelessGatewayId
of the resource to add in the input array.
*
*
* NOTE: This method appends the values to the existing list (if any). Use
* {@link #setWirelessGatewaysToAdd(java.util.Collection)} or
* {@link #withWirelessGatewaysToAdd(java.util.Collection)} if you want to override the existing values.
*
*
* @param wirelessGatewaysToAdd
* Wireless gateway resources to add to the network analyzer configuration. Provide the
* WirelessGatewayId
of the resource to add in the input array.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public UpdateNetworkAnalyzerConfigurationRequest withWirelessGatewaysToAdd(String... wirelessGatewaysToAdd) {
if (this.wirelessGatewaysToAdd == null) {
setWirelessGatewaysToAdd(new java.util.ArrayList(wirelessGatewaysToAdd.length));
}
for (String ele : wirelessGatewaysToAdd) {
this.wirelessGatewaysToAdd.add(ele);
}
return this;
}
/**
*
* Wireless gateway resources to add to the network analyzer configuration. Provide the
* WirelessGatewayId
of the resource to add in the input array.
*
*
* @param wirelessGatewaysToAdd
* Wireless gateway resources to add to the network analyzer configuration. Provide the
* WirelessGatewayId
of the resource to add in the input array.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public UpdateNetworkAnalyzerConfigurationRequest withWirelessGatewaysToAdd(java.util.Collection wirelessGatewaysToAdd) {
setWirelessGatewaysToAdd(wirelessGatewaysToAdd);
return this;
}
/**
*
* Wireless gateway resources to remove from the network analyzer configuration. Provide the
* WirelessGatewayId
of the resources to remove in the input array.
*
*
* @return Wireless gateway resources to remove from the network analyzer configuration. Provide the
* WirelessGatewayId
of the resources to remove in the input array.
*/
public java.util.List getWirelessGatewaysToRemove() {
return wirelessGatewaysToRemove;
}
/**
*
* Wireless gateway resources to remove from the network analyzer configuration. Provide the
* WirelessGatewayId
of the resources to remove in the input array.
*
*
* @param wirelessGatewaysToRemove
* Wireless gateway resources to remove from the network analyzer configuration. Provide the
* WirelessGatewayId
of the resources to remove in the input array.
*/
public void setWirelessGatewaysToRemove(java.util.Collection wirelessGatewaysToRemove) {
if (wirelessGatewaysToRemove == null) {
this.wirelessGatewaysToRemove = null;
return;
}
this.wirelessGatewaysToRemove = new java.util.ArrayList(wirelessGatewaysToRemove);
}
/**
*
* Wireless gateway resources to remove from the network analyzer configuration. Provide the
* WirelessGatewayId
of the resources to remove in the input array.
*
*
* NOTE: This method appends the values to the existing list (if any). Use
* {@link #setWirelessGatewaysToRemove(java.util.Collection)} or
* {@link #withWirelessGatewaysToRemove(java.util.Collection)} if you want to override the existing values.
*
*
* @param wirelessGatewaysToRemove
* Wireless gateway resources to remove from the network analyzer configuration. Provide the
* WirelessGatewayId
of the resources to remove in the input array.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public UpdateNetworkAnalyzerConfigurationRequest withWirelessGatewaysToRemove(String... wirelessGatewaysToRemove) {
if (this.wirelessGatewaysToRemove == null) {
setWirelessGatewaysToRemove(new java.util.ArrayList(wirelessGatewaysToRemove.length));
}
for (String ele : wirelessGatewaysToRemove) {
this.wirelessGatewaysToRemove.add(ele);
}
return this;
}
/**
*
* Wireless gateway resources to remove from the network analyzer configuration. Provide the
* WirelessGatewayId
of the resources to remove in the input array.
*
*
* @param wirelessGatewaysToRemove
* Wireless gateway resources to remove from the network analyzer configuration. Provide the
* WirelessGatewayId
of the resources to remove in the input array.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public UpdateNetworkAnalyzerConfigurationRequest withWirelessGatewaysToRemove(java.util.Collection wirelessGatewaysToRemove) {
setWirelessGatewaysToRemove(wirelessGatewaysToRemove);
return this;
}
/**
* @param description
*/
public void setDescription(String description) {
this.description = description;
}
/**
* @return
*/
public String getDescription() {
return this.description;
}
/**
* @param description
* @return Returns a reference to this object so that method calls can be chained together.
*/
public UpdateNetworkAnalyzerConfigurationRequest withDescription(String description) {
setDescription(description);
return this;
}
/**
*
* Multicast group resources to add to the network analyzer configuration. Provide the MulticastGroupId
* of the resource to add in the input array.
*
*
* @return Multicast group resources to add to the network analyzer configuration. Provide the
* MulticastGroupId
of the resource to add in the input array.
*/
public java.util.List getMulticastGroupsToAdd() {
return multicastGroupsToAdd;
}
/**
*
* Multicast group resources to add to the network analyzer configuration. Provide the MulticastGroupId
* of the resource to add in the input array.
*
*
* @param multicastGroupsToAdd
* Multicast group resources to add to the network analyzer configuration. Provide the
* MulticastGroupId
of the resource to add in the input array.
*/
public void setMulticastGroupsToAdd(java.util.Collection multicastGroupsToAdd) {
if (multicastGroupsToAdd == null) {
this.multicastGroupsToAdd = null;
return;
}
this.multicastGroupsToAdd = new java.util.ArrayList(multicastGroupsToAdd);
}
/**
*
* Multicast group resources to add to the network analyzer configuration. Provide the MulticastGroupId
* of the resource to add in the input array.
*
*
* NOTE: This method appends the values to the existing list (if any). Use
* {@link #setMulticastGroupsToAdd(java.util.Collection)} or {@link #withMulticastGroupsToAdd(java.util.Collection)}
* if you want to override the existing values.
*
*
* @param multicastGroupsToAdd
* Multicast group resources to add to the network analyzer configuration. Provide the
* MulticastGroupId
of the resource to add in the input array.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public UpdateNetworkAnalyzerConfigurationRequest withMulticastGroupsToAdd(String... multicastGroupsToAdd) {
if (this.multicastGroupsToAdd == null) {
setMulticastGroupsToAdd(new java.util.ArrayList(multicastGroupsToAdd.length));
}
for (String ele : multicastGroupsToAdd) {
this.multicastGroupsToAdd.add(ele);
}
return this;
}
/**
*
* Multicast group resources to add to the network analyzer configuration. Provide the MulticastGroupId
* of the resource to add in the input array.
*
*
* @param multicastGroupsToAdd
* Multicast group resources to add to the network analyzer configuration. Provide the
* MulticastGroupId
of the resource to add in the input array.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public UpdateNetworkAnalyzerConfigurationRequest withMulticastGroupsToAdd(java.util.Collection multicastGroupsToAdd) {
setMulticastGroupsToAdd(multicastGroupsToAdd);
return this;
}
/**
*
* Multicast group resources to remove from the network analyzer configuration. Provide the
* MulticastGroupId
of the resource to remove in the input array.
*
*
* @return Multicast group resources to remove from the network analyzer configuration. Provide the
* MulticastGroupId
of the resource to remove in the input array.
*/
public java.util.List getMulticastGroupsToRemove() {
return multicastGroupsToRemove;
}
/**
*
* Multicast group resources to remove from the network analyzer configuration. Provide the
* MulticastGroupId
of the resource to remove in the input array.
*
*
* @param multicastGroupsToRemove
* Multicast group resources to remove from the network analyzer configuration. Provide the
* MulticastGroupId
of the resource to remove in the input array.
*/
public void setMulticastGroupsToRemove(java.util.Collection multicastGroupsToRemove) {
if (multicastGroupsToRemove == null) {
this.multicastGroupsToRemove = null;
return;
}
this.multicastGroupsToRemove = new java.util.ArrayList(multicastGroupsToRemove);
}
/**
*
* Multicast group resources to remove from the network analyzer configuration. Provide the
* MulticastGroupId
of the resource to remove in the input array.
*
*
* NOTE: This method appends the values to the existing list (if any). Use
* {@link #setMulticastGroupsToRemove(java.util.Collection)} or
* {@link #withMulticastGroupsToRemove(java.util.Collection)} if you want to override the existing values.
*
*
* @param multicastGroupsToRemove
* Multicast group resources to remove from the network analyzer configuration. Provide the
* MulticastGroupId
of the resource to remove in the input array.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public UpdateNetworkAnalyzerConfigurationRequest withMulticastGroupsToRemove(String... multicastGroupsToRemove) {
if (this.multicastGroupsToRemove == null) {
setMulticastGroupsToRemove(new java.util.ArrayList(multicastGroupsToRemove.length));
}
for (String ele : multicastGroupsToRemove) {
this.multicastGroupsToRemove.add(ele);
}
return this;
}
/**
*
* Multicast group resources to remove from the network analyzer configuration. Provide the
* MulticastGroupId
of the resource to remove in the input array.
*
*
* @param multicastGroupsToRemove
* Multicast group resources to remove from the network analyzer configuration. Provide the
* MulticastGroupId
of the resource to remove in the input array.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public UpdateNetworkAnalyzerConfigurationRequest withMulticastGroupsToRemove(java.util.Collection multicastGroupsToRemove) {
setMulticastGroupsToRemove(multicastGroupsToRemove);
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 (getConfigurationName() != null)
sb.append("ConfigurationName: ").append(getConfigurationName()).append(",");
if (getTraceContent() != null)
sb.append("TraceContent: ").append(getTraceContent()).append(",");
if (getWirelessDevicesToAdd() != null)
sb.append("WirelessDevicesToAdd: ").append(getWirelessDevicesToAdd()).append(",");
if (getWirelessDevicesToRemove() != null)
sb.append("WirelessDevicesToRemove: ").append(getWirelessDevicesToRemove()).append(",");
if (getWirelessGatewaysToAdd() != null)
sb.append("WirelessGatewaysToAdd: ").append(getWirelessGatewaysToAdd()).append(",");
if (getWirelessGatewaysToRemove() != null)
sb.append("WirelessGatewaysToRemove: ").append(getWirelessGatewaysToRemove()).append(",");
if (getDescription() != null)
sb.append("Description: ").append(getDescription()).append(",");
if (getMulticastGroupsToAdd() != null)
sb.append("MulticastGroupsToAdd: ").append(getMulticastGroupsToAdd()).append(",");
if (getMulticastGroupsToRemove() != null)
sb.append("MulticastGroupsToRemove: ").append(getMulticastGroupsToRemove());
sb.append("}");
return sb.toString();
}
@Override
public boolean equals(Object obj) {
if (this == obj)
return true;
if (obj == null)
return false;
if (obj instanceof UpdateNetworkAnalyzerConfigurationRequest == false)
return false;
UpdateNetworkAnalyzerConfigurationRequest other = (UpdateNetworkAnalyzerConfigurationRequest) obj;
if (other.getConfigurationName() == null ^ this.getConfigurationName() == null)
return false;
if (other.getConfigurationName() != null && other.getConfigurationName().equals(this.getConfigurationName()) == false)
return false;
if (other.getTraceContent() == null ^ this.getTraceContent() == null)
return false;
if (other.getTraceContent() != null && other.getTraceContent().equals(this.getTraceContent()) == false)
return false;
if (other.getWirelessDevicesToAdd() == null ^ this.getWirelessDevicesToAdd() == null)
return false;
if (other.getWirelessDevicesToAdd() != null && other.getWirelessDevicesToAdd().equals(this.getWirelessDevicesToAdd()) == false)
return false;
if (other.getWirelessDevicesToRemove() == null ^ this.getWirelessDevicesToRemove() == null)
return false;
if (other.getWirelessDevicesToRemove() != null && other.getWirelessDevicesToRemove().equals(this.getWirelessDevicesToRemove()) == false)
return false;
if (other.getWirelessGatewaysToAdd() == null ^ this.getWirelessGatewaysToAdd() == null)
return false;
if (other.getWirelessGatewaysToAdd() != null && other.getWirelessGatewaysToAdd().equals(this.getWirelessGatewaysToAdd()) == false)
return false;
if (other.getWirelessGatewaysToRemove() == null ^ this.getWirelessGatewaysToRemove() == null)
return false;
if (other.getWirelessGatewaysToRemove() != null && other.getWirelessGatewaysToRemove().equals(this.getWirelessGatewaysToRemove()) == 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.getMulticastGroupsToAdd() == null ^ this.getMulticastGroupsToAdd() == null)
return false;
if (other.getMulticastGroupsToAdd() != null && other.getMulticastGroupsToAdd().equals(this.getMulticastGroupsToAdd()) == false)
return false;
if (other.getMulticastGroupsToRemove() == null ^ this.getMulticastGroupsToRemove() == null)
return false;
if (other.getMulticastGroupsToRemove() != null && other.getMulticastGroupsToRemove().equals(this.getMulticastGroupsToRemove()) == false)
return false;
return true;
}
@Override
public int hashCode() {
final int prime = 31;
int hashCode = 1;
hashCode = prime * hashCode + ((getConfigurationName() == null) ? 0 : getConfigurationName().hashCode());
hashCode = prime * hashCode + ((getTraceContent() == null) ? 0 : getTraceContent().hashCode());
hashCode = prime * hashCode + ((getWirelessDevicesToAdd() == null) ? 0 : getWirelessDevicesToAdd().hashCode());
hashCode = prime * hashCode + ((getWirelessDevicesToRemove() == null) ? 0 : getWirelessDevicesToRemove().hashCode());
hashCode = prime * hashCode + ((getWirelessGatewaysToAdd() == null) ? 0 : getWirelessGatewaysToAdd().hashCode());
hashCode = prime * hashCode + ((getWirelessGatewaysToRemove() == null) ? 0 : getWirelessGatewaysToRemove().hashCode());
hashCode = prime * hashCode + ((getDescription() == null) ? 0 : getDescription().hashCode());
hashCode = prime * hashCode + ((getMulticastGroupsToAdd() == null) ? 0 : getMulticastGroupsToAdd().hashCode());
hashCode = prime * hashCode + ((getMulticastGroupsToRemove() == null) ? 0 : getMulticastGroupsToRemove().hashCode());
return hashCode;
}
@Override
public UpdateNetworkAnalyzerConfigurationRequest clone() {
return (UpdateNetworkAnalyzerConfigurationRequest) super.clone();
}
}