public void setSecurityGroups(java.util.Collection<IpamPublicAddressSecurityGroup> securityGroups) {
        if (securityGroups == null) {
            this.securityGroups = null;
            return;
        }

        this.securityGroups = new com.amazonaws.internal.SdkInternalList<IpamPublicAddressSecurityGroup>(securityGroups);
    }
<p>
Security groups associated with the resource that the IP address is assigned to.
</p>

@param securityGroups
       Security groups associated with the resource that the IP address is assigned to.
aws-java-sdk-ec2/src/main/java/com/amazonaws/services/ec2/model/IpamDiscoveredPublicAddress.java