/* * Copyright 2010-2018 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.ec2.model; import java.io.Serializable; /** *
* Describes a network interface. *
*/ public class NetworkInterface implements Serializable { /** * The ID of the network interface. */ private String networkInterfaceId; /** * The ID of the subnet. */ private String subnetId; /** * The ID of the VPC. */ private String vpcId; /** * The Availability Zone. */ private String availabilityZone; /** * A description. */ private String description; /** * The AWS account ID of the owner of the network interface. */ private String ownerId; /** * The ID of the entity that launched the instance on your behalf (for * example, AWS Management Console or Auto Scaling). */ private String requesterId; /** * Indicates whether the network interface is being managed by AWS. */ private Boolean requesterManaged; /** * The status of the network interface. *
* Constraints:
* Constraints:
* Returns a reference to this object so that method calls can be chained together.
*
* @param networkInterfaceId The ID of the network interface.
*
* @return A reference to this updated object so that method calls can be chained
* together.
*/
public NetworkInterface withNetworkInterfaceId(String networkInterfaceId) {
this.networkInterfaceId = networkInterfaceId;
return this;
}
/**
* The ID of the subnet.
*
* @return The ID of the subnet.
*/
public String getSubnetId() {
return subnetId;
}
/**
* The ID of the subnet.
*
* @param subnetId The ID of the subnet.
*/
public void setSubnetId(String subnetId) {
this.subnetId = subnetId;
}
/**
* The ID of the subnet.
*
* Returns a reference to this object so that method calls can be chained together.
*
* @param subnetId The ID of the subnet.
*
* @return A reference to this updated object so that method calls can be chained
* together.
*/
public NetworkInterface withSubnetId(String subnetId) {
this.subnetId = subnetId;
return this;
}
/**
* The ID of the VPC.
*
* @return The ID of the VPC.
*/
public String getVpcId() {
return vpcId;
}
/**
* The ID of the VPC.
*
* @param vpcId The ID of the VPC.
*/
public void setVpcId(String vpcId) {
this.vpcId = vpcId;
}
/**
* The ID of the VPC.
*
* Returns a reference to this object so that method calls can be chained together.
*
* @param vpcId The ID of the VPC.
*
* @return A reference to this updated object so that method calls can be chained
* together.
*/
public NetworkInterface withVpcId(String vpcId) {
this.vpcId = vpcId;
return this;
}
/**
* The Availability Zone.
*
* @return The Availability Zone.
*/
public String getAvailabilityZone() {
return availabilityZone;
}
/**
* The Availability Zone.
*
* @param availabilityZone The Availability Zone.
*/
public void setAvailabilityZone(String availabilityZone) {
this.availabilityZone = availabilityZone;
}
/**
* The Availability Zone.
*
* Returns a reference to this object so that method calls can be chained together.
*
* @param availabilityZone The Availability Zone.
*
* @return A reference to this updated object so that method calls can be chained
* together.
*/
public NetworkInterface withAvailabilityZone(String availabilityZone) {
this.availabilityZone = availabilityZone;
return this;
}
/**
* A description.
*
* @return A description.
*/
public String getDescription() {
return description;
}
/**
* A description.
*
* @param description A description.
*/
public void setDescription(String description) {
this.description = description;
}
/**
* A description.
*
* Returns a reference to this object so that method calls can be chained together.
*
* @param description A description.
*
* @return A reference to this updated object so that method calls can be chained
* together.
*/
public NetworkInterface withDescription(String description) {
this.description = description;
return this;
}
/**
* The AWS account ID of the owner of the network interface.
*
* @return The AWS account ID of the owner of the network interface.
*/
public String getOwnerId() {
return ownerId;
}
/**
* The AWS account ID of the owner of the network interface.
*
* @param ownerId The AWS account ID of the owner of the network interface.
*/
public void setOwnerId(String ownerId) {
this.ownerId = ownerId;
}
/**
* The AWS account ID of the owner of the network interface.
*
* Returns a reference to this object so that method calls can be chained together.
*
* @param ownerId The AWS account ID of the owner of the network interface.
*
* @return A reference to this updated object so that method calls can be chained
* together.
*/
public NetworkInterface withOwnerId(String ownerId) {
this.ownerId = ownerId;
return this;
}
/**
* The ID of the entity that launched the instance on your behalf (for
* example, AWS Management Console or Auto Scaling).
*
* @return The ID of the entity that launched the instance on your behalf (for
* example, AWS Management Console or Auto Scaling).
*/
public String getRequesterId() {
return requesterId;
}
/**
* The ID of the entity that launched the instance on your behalf (for
* example, AWS Management Console or Auto Scaling).
*
* @param requesterId The ID of the entity that launched the instance on your behalf (for
* example, AWS Management Console or Auto Scaling).
*/
public void setRequesterId(String requesterId) {
this.requesterId = requesterId;
}
/**
* The ID of the entity that launched the instance on your behalf (for
* example, AWS Management Console or Auto Scaling).
*
* Returns a reference to this object so that method calls can be chained together.
*
* @param requesterId The ID of the entity that launched the instance on your behalf (for
* example, AWS Management Console or Auto Scaling).
*
* @return A reference to this updated object so that method calls can be chained
* together.
*/
public NetworkInterface withRequesterId(String requesterId) {
this.requesterId = requesterId;
return this;
}
/**
* Indicates whether the network interface is being managed by AWS.
*
* @return Indicates whether the network interface is being managed by AWS.
*/
public Boolean isRequesterManaged() {
return requesterManaged;
}
/**
* Indicates whether the network interface is being managed by AWS.
*
* @param requesterManaged Indicates whether the network interface is being managed by AWS.
*/
public void setRequesterManaged(Boolean requesterManaged) {
this.requesterManaged = requesterManaged;
}
/**
* Indicates whether the network interface is being managed by AWS.
*
* Returns a reference to this object so that method calls can be chained together.
*
* @param requesterManaged Indicates whether the network interface is being managed by AWS.
*
* @return A reference to this updated object so that method calls can be chained
* together.
*/
public NetworkInterface withRequesterManaged(Boolean requesterManaged) {
this.requesterManaged = requesterManaged;
return this;
}
/**
* Indicates whether the network interface is being managed by AWS.
*
* @return Indicates whether the network interface is being managed by AWS.
*/
public Boolean getRequesterManaged() {
return requesterManaged;
}
/**
* The status of the network interface.
*
* Constraints:
* Constraints:
* Returns a reference to this object so that method calls can be chained together.
*
* Constraints:
* Constraints:
* Returns a reference to this object so that method calls can be chained together.
*
* Constraints:
* Returns a reference to this object so that method calls can be chained together.
*
* @param macAddress The MAC address.
*
* @return A reference to this updated object so that method calls can be chained
* together.
*/
public NetworkInterface withMacAddress(String macAddress) {
this.macAddress = macAddress;
return this;
}
/**
* The IP address of the network interface within the subnet.
*
* @return The IP address of the network interface within the subnet.
*/
public String getPrivateIpAddress() {
return privateIpAddress;
}
/**
* The IP address of the network interface within the subnet.
*
* @param privateIpAddress The IP address of the network interface within the subnet.
*/
public void setPrivateIpAddress(String privateIpAddress) {
this.privateIpAddress = privateIpAddress;
}
/**
* The IP address of the network interface within the subnet.
*
* Returns a reference to this object so that method calls can be chained together.
*
* @param privateIpAddress The IP address of the network interface within the subnet.
*
* @return A reference to this updated object so that method calls can be chained
* together.
*/
public NetworkInterface withPrivateIpAddress(String privateIpAddress) {
this.privateIpAddress = privateIpAddress;
return this;
}
/**
* The private DNS name.
*
* @return The private DNS name.
*/
public String getPrivateDnsName() {
return privateDnsName;
}
/**
* The private DNS name.
*
* @param privateDnsName The private DNS name.
*/
public void setPrivateDnsName(String privateDnsName) {
this.privateDnsName = privateDnsName;
}
/**
* The private DNS name.
*
* Returns a reference to this object so that method calls can be chained together.
*
* @param privateDnsName The private DNS name.
*
* @return A reference to this updated object so that method calls can be chained
* together.
*/
public NetworkInterface withPrivateDnsName(String privateDnsName) {
this.privateDnsName = privateDnsName;
return this;
}
/**
* Indicates whether traffic to or from the instance is validated.
*
* @return Indicates whether traffic to or from the instance is validated.
*/
public Boolean isSourceDestCheck() {
return sourceDestCheck;
}
/**
* Indicates whether traffic to or from the instance is validated.
*
* @param sourceDestCheck Indicates whether traffic to or from the instance is validated.
*/
public void setSourceDestCheck(Boolean sourceDestCheck) {
this.sourceDestCheck = sourceDestCheck;
}
/**
* Indicates whether traffic to or from the instance is validated.
*
* Returns a reference to this object so that method calls can be chained together.
*
* @param sourceDestCheck Indicates whether traffic to or from the instance is validated.
*
* @return A reference to this updated object so that method calls can be chained
* together.
*/
public NetworkInterface withSourceDestCheck(Boolean sourceDestCheck) {
this.sourceDestCheck = sourceDestCheck;
return this;
}
/**
* Indicates whether traffic to or from the instance is validated.
*
* @return Indicates whether traffic to or from the instance is validated.
*/
public Boolean getSourceDestCheck() {
return sourceDestCheck;
}
/**
* Any security groups for the network interface.
*
* @return Any security groups for the network interface.
*/
public java.util.List
* Returns a reference to this object so that method calls can be chained together.
*
* @param groups Any security groups for the network interface.
*
* @return A reference to this updated object so that method calls can be chained
* together.
*/
public NetworkInterface withGroups(GroupIdentifier... groups) {
if (getGroups() == null) setGroups(new java.util.ArrayList
* Returns a reference to this object so that method calls can be chained together.
*
* @param groups Any security groups for the network interface.
*
* @return A reference to this updated object so that method calls can be chained
* together.
*/
public NetworkInterface withGroups(java.util.Collection
* Returns a reference to this object so that method calls can be chained together.
*
* @param attachment The network interface attachment.
*
* @return A reference to this updated object so that method calls can be chained
* together.
*/
public NetworkInterface withAttachment(NetworkInterfaceAttachment attachment) {
this.attachment = attachment;
return this;
}
/**
* The association information for an Elastic IP associated with the
* network interface.
*
* @return The association information for an Elastic IP associated with the
* network interface.
*/
public NetworkInterfaceAssociation getAssociation() {
return association;
}
/**
* The association information for an Elastic IP associated with the
* network interface.
*
* @param association The association information for an Elastic IP associated with the
* network interface.
*/
public void setAssociation(NetworkInterfaceAssociation association) {
this.association = association;
}
/**
* The association information for an Elastic IP associated with the
* network interface.
*
* Returns a reference to this object so that method calls can be chained together.
*
* @param association The association information for an Elastic IP associated with the
* network interface.
*
* @return A reference to this updated object so that method calls can be chained
* together.
*/
public NetworkInterface withAssociation(NetworkInterfaceAssociation association) {
this.association = association;
return this;
}
/**
* Any tags assigned to the network interface.
*
* @return Any tags assigned to the network interface.
*/
public java.util.List
* Returns a reference to this object so that method calls can be chained together.
*
* @param tagSet Any tags assigned to the network interface.
*
* @return A reference to this updated object so that method calls can be chained
* together.
*/
public NetworkInterface withTagSet(Tag... tagSet) {
if (getTagSet() == null) setTagSet(new java.util.ArrayList
* Returns a reference to this object so that method calls can be chained together.
*
* @param tagSet Any tags assigned to the network interface.
*
* @return A reference to this updated object so that method calls can be chained
* together.
*/
public NetworkInterface withTagSet(java.util.Collection
* Returns a reference to this object so that method calls can be chained together.
*
* @param privateIpAddresses The private IP addresses associated with the network interface.
*
* @return A reference to this updated object so that method calls can be chained
* together.
*/
public NetworkInterface withPrivateIpAddresses(NetworkInterfacePrivateIpAddress... privateIpAddresses) {
if (getPrivateIpAddresses() == null) setPrivateIpAddresses(new java.util.ArrayList
* Returns a reference to this object so that method calls can be chained together.
*
* @param privateIpAddresses The private IP addresses associated with the network interface.
*
* @return A reference to this updated object so that method calls can be chained
* together.
*/
public NetworkInterface withPrivateIpAddresses(java.util.Collection
* Constraints:
* Constraints:
* Returns a reference to this object so that method calls can be chained together.
*
* Constraints:
* Constraints:
* Returns a reference to this object so that method calls can be chained together.
*
* Constraints:
* Allowed Values: available, attaching, in-use, detaching
*/
private String status;
/**
* The MAC address.
*/
private String macAddress;
/**
* The IP address of the network interface within the subnet.
*/
private String privateIpAddress;
/**
* The private DNS name.
*/
private String privateDnsName;
/**
* Indicates whether traffic to or from the instance is validated.
*/
private Boolean sourceDestCheck;
/**
* Any security groups for the network interface.
*/
private com.amazonaws.internal.ListWithAutoConstructFlag
* Allowed Values: interface, natGateway
*/
private String interfaceType;
/**
* The ID of the network interface.
*
* @return The ID of the network interface.
*/
public String getNetworkInterfaceId() {
return networkInterfaceId;
}
/**
* The ID of the network interface.
*
* @param networkInterfaceId The ID of the network interface.
*/
public void setNetworkInterfaceId(String networkInterfaceId) {
this.networkInterfaceId = networkInterfaceId;
}
/**
* The ID of the network interface.
*
* Allowed Values: available, attaching, in-use, detaching
*
* @return The status of the network interface.
*
* @see NetworkInterfaceStatus
*/
public String getStatus() {
return status;
}
/**
* The status of the network interface.
*
* Allowed Values: available, attaching, in-use, detaching
*
* @param status The status of the network interface.
*
* @see NetworkInterfaceStatus
*/
public void setStatus(String status) {
this.status = status;
}
/**
* The status of the network interface.
*
* Allowed Values: available, attaching, in-use, detaching
*
* @param status The status of the network interface.
*
* @return A reference to this updated object so that method calls can be chained
* together.
*
* @see NetworkInterfaceStatus
*/
public NetworkInterface withStatus(String status) {
this.status = status;
return this;
}
/**
* The status of the network interface.
*
* Allowed Values: available, attaching, in-use, detaching
*
* @param status The status of the network interface.
*
* @see NetworkInterfaceStatus
*/
public void setStatus(NetworkInterfaceStatus status) {
this.status = status.toString();
}
/**
* The status of the network interface.
*
* Allowed Values: available, attaching, in-use, detaching
*
* @param status The status of the network interface.
*
* @return A reference to this updated object so that method calls can be chained
* together.
*
* @see NetworkInterfaceStatus
*/
public NetworkInterface withStatus(NetworkInterfaceStatus status) {
this.status = status.toString();
return this;
}
/**
* The MAC address.
*
* @return The MAC address.
*/
public String getMacAddress() {
return macAddress;
}
/**
* The MAC address.
*
* @param macAddress The MAC address.
*/
public void setMacAddress(String macAddress) {
this.macAddress = macAddress;
}
/**
* The MAC address.
*
* Allowed Values: interface, natGateway
*
* @return The type of interface.
*
* @see NetworkInterfaceType
*/
public String getInterfaceType() {
return interfaceType;
}
/**
* The type of interface.
*
* Allowed Values: interface, natGateway
*
* @param interfaceType The type of interface.
*
* @see NetworkInterfaceType
*/
public void setInterfaceType(String interfaceType) {
this.interfaceType = interfaceType;
}
/**
* The type of interface.
*
* Allowed Values: interface, natGateway
*
* @param interfaceType The type of interface.
*
* @return A reference to this updated object so that method calls can be chained
* together.
*
* @see NetworkInterfaceType
*/
public NetworkInterface withInterfaceType(String interfaceType) {
this.interfaceType = interfaceType;
return this;
}
/**
* The type of interface.
*
* Allowed Values: interface, natGateway
*
* @param interfaceType The type of interface.
*
* @see NetworkInterfaceType
*/
public void setInterfaceType(NetworkInterfaceType interfaceType) {
this.interfaceType = interfaceType.toString();
}
/**
* The type of interface.
*
* Allowed Values: interface, natGateway
*
* @param interfaceType The type of interface.
*
* @return A reference to this updated object so that method calls can be chained
* together.
*
* @see NetworkInterfaceType
*/
public NetworkInterface withInterfaceType(NetworkInterfaceType interfaceType) {
this.interfaceType = interfaceType.toString();
return this;
}
/**
* Returns a string representation of this object; useful for testing and
* debugging.
*
* @return A string representation of this object.
*
* @see java.lang.Object#toString()
*/
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("{");
if (getNetworkInterfaceId() != null) sb.append("NetworkInterfaceId: " + getNetworkInterfaceId() + ",");
if (getSubnetId() != null) sb.append("SubnetId: " + getSubnetId() + ",");
if (getVpcId() != null) sb.append("VpcId: " + getVpcId() + ",");
if (getAvailabilityZone() != null) sb.append("AvailabilityZone: " + getAvailabilityZone() + ",");
if (getDescription() != null) sb.append("Description: " + getDescription() + ",");
if (getOwnerId() != null) sb.append("OwnerId: " + getOwnerId() + ",");
if (getRequesterId() != null) sb.append("RequesterId: " + getRequesterId() + ",");
if (isRequesterManaged() != null) sb.append("RequesterManaged: " + isRequesterManaged() + ",");
if (getStatus() != null) sb.append("Status: " + getStatus() + ",");
if (getMacAddress() != null) sb.append("MacAddress: " + getMacAddress() + ",");
if (getPrivateIpAddress() != null) sb.append("PrivateIpAddress: " + getPrivateIpAddress() + ",");
if (getPrivateDnsName() != null) sb.append("PrivateDnsName: " + getPrivateDnsName() + ",");
if (isSourceDestCheck() != null) sb.append("SourceDestCheck: " + isSourceDestCheck() + ",");
if (getGroups() != null) sb.append("Groups: " + getGroups() + ",");
if (getAttachment() != null) sb.append("Attachment: " + getAttachment() + ",");
if (getAssociation() != null) sb.append("Association: " + getAssociation() + ",");
if (getTagSet() != null) sb.append("TagSet: " + getTagSet() + ",");
if (getPrivateIpAddresses() != null) sb.append("PrivateIpAddresses: " + getPrivateIpAddresses() + ",");
if (getInterfaceType() != null) sb.append("InterfaceType: " + getInterfaceType() );
sb.append("}");
return sb.toString();
}
@Override
public int hashCode() {
final int prime = 31;
int hashCode = 1;
hashCode = prime * hashCode + ((getNetworkInterfaceId() == null) ? 0 : getNetworkInterfaceId().hashCode());
hashCode = prime * hashCode + ((getSubnetId() == null) ? 0 : getSubnetId().hashCode());
hashCode = prime * hashCode + ((getVpcId() == null) ? 0 : getVpcId().hashCode());
hashCode = prime * hashCode + ((getAvailabilityZone() == null) ? 0 : getAvailabilityZone().hashCode());
hashCode = prime * hashCode + ((getDescription() == null) ? 0 : getDescription().hashCode());
hashCode = prime * hashCode + ((getOwnerId() == null) ? 0 : getOwnerId().hashCode());
hashCode = prime * hashCode + ((getRequesterId() == null) ? 0 : getRequesterId().hashCode());
hashCode = prime * hashCode + ((isRequesterManaged() == null) ? 0 : isRequesterManaged().hashCode());
hashCode = prime * hashCode + ((getStatus() == null) ? 0 : getStatus().hashCode());
hashCode = prime * hashCode + ((getMacAddress() == null) ? 0 : getMacAddress().hashCode());
hashCode = prime * hashCode + ((getPrivateIpAddress() == null) ? 0 : getPrivateIpAddress().hashCode());
hashCode = prime * hashCode + ((getPrivateDnsName() == null) ? 0 : getPrivateDnsName().hashCode());
hashCode = prime * hashCode + ((isSourceDestCheck() == null) ? 0 : isSourceDestCheck().hashCode());
hashCode = prime * hashCode + ((getGroups() == null) ? 0 : getGroups().hashCode());
hashCode = prime * hashCode + ((getAttachment() == null) ? 0 : getAttachment().hashCode());
hashCode = prime * hashCode + ((getAssociation() == null) ? 0 : getAssociation().hashCode());
hashCode = prime * hashCode + ((getTagSet() == null) ? 0 : getTagSet().hashCode());
hashCode = prime * hashCode + ((getPrivateIpAddresses() == null) ? 0 : getPrivateIpAddresses().hashCode());
hashCode = prime * hashCode + ((getInterfaceType() == null) ? 0 : getInterfaceType().hashCode());
return hashCode;
}
@Override
public boolean equals(Object obj) {
if (this == obj) return true;
if (obj == null) return false;
if (obj instanceof NetworkInterface == false) return false;
NetworkInterface other = (NetworkInterface)obj;
if (other.getNetworkInterfaceId() == null ^ this.getNetworkInterfaceId() == null) return false;
if (other.getNetworkInterfaceId() != null && other.getNetworkInterfaceId().equals(this.getNetworkInterfaceId()) == false) return false;
if (other.getSubnetId() == null ^ this.getSubnetId() == null) return false;
if (other.getSubnetId() != null && other.getSubnetId().equals(this.getSubnetId()) == false) return false;
if (other.getVpcId() == null ^ this.getVpcId() == null) return false;
if (other.getVpcId() != null && other.getVpcId().equals(this.getVpcId()) == false) return false;
if (other.getAvailabilityZone() == null ^ this.getAvailabilityZone() == null) return false;
if (other.getAvailabilityZone() != null && other.getAvailabilityZone().equals(this.getAvailabilityZone()) == 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.getOwnerId() == null ^ this.getOwnerId() == null) return false;
if (other.getOwnerId() != null && other.getOwnerId().equals(this.getOwnerId()) == false) return false;
if (other.getRequesterId() == null ^ this.getRequesterId() == null) return false;
if (other.getRequesterId() != null && other.getRequesterId().equals(this.getRequesterId()) == false) return false;
if (other.isRequesterManaged() == null ^ this.isRequesterManaged() == null) return false;
if (other.isRequesterManaged() != null && other.isRequesterManaged().equals(this.isRequesterManaged()) == false) return false;
if (other.getStatus() == null ^ this.getStatus() == null) return false;
if (other.getStatus() != null && other.getStatus().equals(this.getStatus()) == false) return false;
if (other.getMacAddress() == null ^ this.getMacAddress() == null) return false;
if (other.getMacAddress() != null && other.getMacAddress().equals(this.getMacAddress()) == false) return false;
if (other.getPrivateIpAddress() == null ^ this.getPrivateIpAddress() == null) return false;
if (other.getPrivateIpAddress() != null && other.getPrivateIpAddress().equals(this.getPrivateIpAddress()) == false) return false;
if (other.getPrivateDnsName() == null ^ this.getPrivateDnsName() == null) return false;
if (other.getPrivateDnsName() != null && other.getPrivateDnsName().equals(this.getPrivateDnsName()) == false) return false;
if (other.isSourceDestCheck() == null ^ this.isSourceDestCheck() == null) return false;
if (other.isSourceDestCheck() != null && other.isSourceDestCheck().equals(this.isSourceDestCheck()) == false) return false;
if (other.getGroups() == null ^ this.getGroups() == null) return false;
if (other.getGroups() != null && other.getGroups().equals(this.getGroups()) == false) return false;
if (other.getAttachment() == null ^ this.getAttachment() == null) return false;
if (other.getAttachment() != null && other.getAttachment().equals(this.getAttachment()) == false) return false;
if (other.getAssociation() == null ^ this.getAssociation() == null) return false;
if (other.getAssociation() != null && other.getAssociation().equals(this.getAssociation()) == false) return false;
if (other.getTagSet() == null ^ this.getTagSet() == null) return false;
if (other.getTagSet() != null && other.getTagSet().equals(this.getTagSet()) == false) return false;
if (other.getPrivateIpAddresses() == null ^ this.getPrivateIpAddresses() == null) return false;
if (other.getPrivateIpAddresses() != null && other.getPrivateIpAddresses().equals(this.getPrivateIpAddresses()) == false) return false;
if (other.getInterfaceType() == null ^ this.getInterfaceType() == null) return false;
if (other.getInterfaceType() != null && other.getInterfaceType().equals(this.getInterfaceType()) == false) return false;
return true;
}
}